Menu

RuleFactoryExample - I don't get email notification

Help
Julien
2015-10-25
2015-11-22
  • Julien

    Julien - 2015-10-25

    Hello,

    I installed OpenGTS and it works fine. If I check it (bin/checkInstall.sh -sendMail xxxx) I get no errors, no warning and I get an email.

    Yet, I would like email notification when speed is over 50 km/h for example. I followed step by step the instructions included in RuleFactoryExample.java

    1- In this file I changed SEND-NOTIFICATION=false --> SEND-NOTIFICATION=true and I don't change anything else
    2. Project rebuilt
    3. I edited StartupInit.java.conf and I changed :
    if (!Device.hasRuleFactory()) {
    // To add the RuleFactoryExample module:
    // Device.setRuleFactory(new RuleFactoryExample());
    to : --> if (!Device.hasRuleFactory()) {
    // To add the RuleFactoryExample module:
    Device.setRuleFactory(new RuleFactoryExample()); I'm not sure that's what I have to do ???
    4. config.conf ---> startupInit.Device.NotificatioFieldInfo=true
    5. bin/dbAdmin.pl -tables=ca --> ok
    5. the notifications fields are now visible on the vehicle admin page (Rule selector...)
    6. In rule selector field I tried isStopped then overSpeed(50)

    I never get email notification. yet I get email for lost password and for report.

    Four days, I try to find my error, I'm desperate !!!

    It would be nice if I could get some help!

    Thanks
    Julien

     
  • Joseph Arcillas

    Joseph Arcillas - 2015-11-20

    Have you tried checking gprmc logs?

     
  • tea4two

    tea4two - 2015-11-22

    Hi Julien,

    execute bin/checkInstall.sh to see if any configuration error are present.

    Regards,
    -Pierluigi

     

Log in to post a comment.