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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Have you tried checking gprmc logs?
Hi Julien,
execute bin/checkInstall.sh to see if any configuration error are present.
Regards,
-Pierluigi