Hello,
I am trying to get started with EasyIOT, so I've installed the server and followed the Automation example on
iot-playground.com/blog/2-uncategorised/...er-automation-part-i
The cron entry is set to * * * * *, so I expect the programme to run periodically.
When I enable the programme, it prints out the setup message, but I never get the console message from the Run function.
Programme compiles fine, and it seems to update the first repeat time correctly in programme.xml
But nothing happens when the "NextOccurence" time comes (and the entry in programme.xml doesn't get updated).
I've tried wheezy and jessie, easyiot 0.8 and 0.9, same problem. cron daemon is running.
Any idea how I can troubleshoot this?
Thanks!
dochego wrote: Hello,
I am trying to get started with EasyIOT, so I've installed the server and followed the Automation example on
iot-playground.com/blog/2-uncategorised/...er-automation-part-i
The cron entry is set to * * * * *, so I expect the programme to run periodically.
When I enable the programme, it prints out the setup message, but I never get the console message from the Run function.
Programme compiles fine, and it seems to update the first repeat time correctly in programme.xml
But nothing happens when the "NextOccurence" time comes (and the entry in programme.xml doesn't get updated).
I've tried wheezy and jessie, easyiot 0.8 and 0.9, same problem. cron daemon is running.
Any idea how I can troubleshoot this?
Thanks!
Linux CRON job is not related to EasyIoT sever CRON job. If you are using * * * * * it should run every minute.
Thanks for the reply. I figured that easyiot's cron was separate from linux's, and I understand that it should be running every minute with the entry I have.
My problem is that it doesn't: It creates an entry in programme.xml with a NextOccurrence one minute after programme start (so that seems to be correct). It then never runs the programme again, or updates the entries for Last/NextOccurrence in programme.xml.
dochego wrote: Thanks for the reply. I figured that easyiot's cron was separate from linux's, and I understand that it should be running every minute with the entry I have.
My problem is that it doesn't: It creates an entry in programme.xml with a NextOccurrence one minute after programme start (so that seems to be correct). It then never runs the programme again, or updates the entries for Last/NextOccurrence in programme.xml.
How many automation programs do you use? Try to use only one automation program to test and disable and enable this program.