Crontab + Automation public void Run(): Don't work

9 years 2 months ago #2101 by EasyIoT

osalval wrote: After some test I confirm that only one automation CRON can work every day.
It seems it is a API problem.
Even I tested to have only one program in one Automation Group and nothing, only works first of it on execute by time schedule


Download following file and replace EasyIoT.exe in easyiot folder. It should work.
File is compiled for latest beta v0.9b1.

iot-playground.com/swdownload/betaV0_9/EasyIoT.exe

Be sure to stop server before replace file.
The following user(s) said Thank You: osalval

Please Log in or Create an account to join the conversation.

9 years 2 months ago #2106 by osalval
Thank you

Testing from now...........

Please Log in or Create an account to join the conversation.

9 years 2 months ago - 9 years 2 months ago #2111 by djatie
I use raspberry B+

Test Now
Then....

i create 4 cron job for 1 GPIO
16on -> 1 13 * * * <== gpio on
160ff -> 2 13 * * * <== gpio no respon
16on -> 3 13 * * * <== gpio no respon
16off -> 4 13 * * * <== gpio no respon

i create 4 cron job for 2 GPIO
15on -> 10 13 * * * <== gpio on
150ff -> 15 13 * * * <== gpio no respon
16on -> 10 13 * * * <== gpio on
16off -> 20 13 * * * <== gpio no respon

i change minutes for cron on and off between 3-10 minutes
sometime its work but some tome its not

now test for long time more than 1 hour

Please Log in or Create an account to join the conversation.

9 years 2 months ago #2113 by osalval
So far so good :)
The following user(s) said Thank You: djatie

Please Log in or Create an account to join the conversation.

9 years 2 months ago #2118 by djatie

osalval wrote: So far so good :)


This my script, may i forgot somthing?


/*
This code is running one time when program is enabled
*/
public void Setup()
{
}

/*
This code is running periodicaly when program is enabled.
Cron job detirmine running period.
*/
public void Run()
{
DriverHelper.ProcessCommad(Domains.RPIGPIO, "Pin_P1_16", "ControlOn","");
}



for off i use this

{
DriverHelper.ProcessCommad(Domains.RPIGPIO, "Pin_P1_16", "ControlOff","");
}

Please Log in or Create an account to join the conversation.

9 years 2 months ago - 9 years 2 months ago #2125 by osalval
Hello,
I am not using RPIGPIO driver, by now, but it seems OK.

I think you can have one Automation program and several programs on it, one per Cron settings, or only one program with System.Threading.Thread.Sleep(x); separating every event.

Please Log in or Create an account to join the conversation.

Time to create page: 0.184 seconds

Forum latest

  • No posts to display.