EasyIoT Server Win v0.9 - Cron Bug

8 years 5 months ago #2557 by EasyIoT

timpur wrote: Ive done that many many times and it executed once and only once.

so after recompiling the automation program or disable/enable
the setup() runs fine and the Run() only runs once ....


I can't replicate your problem. This is problem, because every installation of EasyIoT Server is different. That's why we introduce EasyIoT Cloud. Beside that EasyIoT Cloud is more advanced than EasyIoT Server.

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

8 years 5 months ago #2564 by timpur
So there isn't a bug in the windows 0.9 zip ?

Thank you and ill be looking into migrating over to the cloud :)

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

8 years 4 months ago #2698 by Ruettimann
Hi, I have exactly the same behavior:

Here are my Settings:
- Raspberry Pi B+
- Raspbian 7
- EaysIoT v0.9

Cron: * * * * *
public void Setup(){
}

public void Run(){
// Console.WriteLine("Run");
ModuleParameter s = ModuleHelper.GetProperty(Domains.VIRTUAL, "N2S0", "Sensor.DigitalValue");
ModuleParameter sm = ModuleHelper.GetProperty(Domains.VIRTUAL, "N5S0", "Sensor.AnalogValue");
if (s.Value == "1"){
//Console.WriteLine("sunshine=" + s.Value);
int tsm = Int32.Parse(sm.Value);
tsm = tsm + 1;
//Console.WriteLine("out=" + tsm);
DriverHelper.ProcessCommad(Domains.VIRTUAL, "N5S0", "ControlLevel", tsm.ToString());
}
}


root@temstation:/opt/easyiot# cat config/programs.xml | tail -20
// Console.WriteLine("Run");
ModuleParameter s = ModuleHelper.GetProperty(Domains.VIRTUAL, "N2S0", "Sensor.DigitalValue");
ModuleParameter sm = ModuleHelper.GetProperty(Domains.VIRTUAL, "N5S0", "Sensor.AnalogValue");
if (s.Value == "1"){
//Console.WriteLine("sunshine=" + s.Value);
int tsm = Int32.Parse(sm.Value);
tsm = tsm + 1;
//Console.WriteLine("out=" + tsm);
DriverHelper.ProcessCommad(Domains.VIRTUAL, "N5S0", "ControlLevel", tsm.ToString());
}
} </SourceCode>
<Errors>[]</Errors>
<CodeOk>true</CodeOk>
<Enabled>true</Enabled>
<LastOccurrence>-</LastOccurrence>
<NextOccurrence>2015-12-23 18:15</NextOccurrence>
</ProgramContainer>
</Programs>
</ProgramGroup>
</ArrayOfProgramGroup>

root@temstation:/opt/easyiot# tail -20 /tmp/easyiot.log
2015-12-23T18:14:28.4166890+01:00 INFO EasyIoTWebinterface EasyIoTConfig Webinterface IsAdmin /Api/EasyIoT/Config/Webinterface/IsAdmin//?_=1450877835888
2015-12-23T18:14:30.7084440+01:00 INFO EasyIoTWebinterface EasyIoTConfig AutomationGroup List /Api/EasyIoT/Config/AutomationGroup/List/?_=1450877835889
2015-12-23T18:14:32.3780270+01:00 INFO EasyIoTWebinterface EasyIoTConfig AutomationGroup List /Api/EasyIoT/Config/AutomationGroup/List/?_=1450877835890
2015-12-23T18:14:35.5030960+01:00 INFO EasyIoTWebinterface EasyIoTConfig AutomationProgram 5 /Api/EasyIoT/Config/AutomationProgram/5/SetEnabled/0/
2015-12-23T18:14:35.5389100+01:00 INFO EasyIoTWebinterface EasyIoTConfig AutomationGroup List /Api/EasyIoT/Config/AutomationGroup/List/?_=1450877835891
2015-12-23T18:14:37.3206760+01:00 INFO EasyIoTWebinterface EasyIoTConfig AutomationProgram 5 /Api/EasyIoT/Config/AutomationProgram/5/SetEnabled/1/
2015-12-23T18:14:37.3594220+01:00 INFO EasyIoTWebinterface EasyIoTConfig AutomationGroup List /Api/EasyIoT/Config/AutomationGroup/List/?_=1450877835892
2015-12-23T18:14:46.7819670+01:00 INFO EasyIoTWebinterface EasyIoTConfig AutomationGroup List /Api/EasyIoT/Config/AutomationGroup/List/?_=1450877835893
2015-12-23T18:14:48.8371570+01:00 INFO EasyIoTWebinterface EasyIoTConfig Module List /Api/EasyIoT/Config/Module/List//?_=1450877835894
2015-12-23T18:14:49.2907090+01:00 INFO EasyIoTWebinterface EasyIoTConfig Group List /Api/EasyIoT/Config/Group/List/?_=1450877835895
2015-12-23T18:15:00.4059390+01:00 INFO Virtual N5S0 Sensor.AnalogValue 65 -
2015-12-23T18:27:02.2313060+01:00 DEBUG MySensors Read: 2-2-0 s=1,c=1,t=0,pt=7,l=5:11.0
2015-12-23T18:27:02.2325100+01:00 INFO MySensors N2S1 Sensor.Temperature 11.0 -


thanks

chris

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

8 years 3 months ago #2699 by Ruettimann
Hi Timpur

It seems, cron in v0.9 is broken on Raspberry pi installations. cron jobs are fired once and never again.
to bad, it is a nice software.
I am a fan of easyIoT, but now I can not run it with my environments, I need cron.
I really hope, somebody is fixing that.
best regards
chris

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

8 years 3 months ago #2704 by EasyIoT
Hi,

stop EasyIoT server and and replace EasyIoT.exe with file in attachment (unzip first). Automation cron should work correctly with this patch.



File Attachment:

File Name: EasyIoT_20151227.zip
File Size:30 KB
Attachments:
The following user(s) said Thank You: Ruettimann, timpur

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

8 years 3 months ago #2706 by Ruettimann
YOU MADE MY YEAR!!!

I tested the fix this minutes, and it is working like a charm now!

I did a small donation to say thank you, I really like this project ... and its great documentation.

cu
chris

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

Time to create page: 0.670 seconds

Forum latest

  • No posts to display.