every day Programm 1 starts twice - Printable Version +- SIP (https://nosack.com/sipforum) +-- Forum: SIP (Sustainable Irrigation Platform) (https://nosack.com/sipforum/forumdisplay.php?fid=1) +--- Forum: Report a problem (https://nosack.com/sipforum/forumdisplay.php?fid=9) +--- Thread: every day Programm 1 starts twice (/showthread.php?tid=85) |
every day Programm 1 starts twice - donprosko - 2017 Jun 20 Hi, I have two programs with following settings: Software version: 3.2.20 (2017-06-08) enabled Plugins: mobile_app mqtt mqtt_schedule mqtt_zones relay_board signaling_examples system_update Relay Board settings: 9 Low is checked Station handling: sequential is checked Individual duration is checked Extension boards: 1 station delay: 0 Use Rain Sensor (normally closed) is checked Stations 1 ... 8 are valves Stations 9 is the master (pump) Program 1: Every Weekday Run: (ge) Liguster Kirschlorbeer Obst (bn) Büsche Nord (vt) Himbeeren (ws) Terrasse Starting: 07:30 with individual station durations for 00 hrs 51 mins 30 secs until 08:21 Program 2: Every 2 days Run: (rt) Wiese West (bl) Wiese Nord (gn) Wiese Süd Starting: 06:00 with individual station durations for 01 hrs 05 mins 00 secs until 07:05 I my opinion each program should start maximal only once a day. But every day Programm 1 starts twice. First on 07:30:00 as I wished and then a unknowable second run at 08:21:31 . e.g. the protocol of today: Code: Date Start Time Station Duration Program for tomorrow the schedule shows only a simple run but I am sure than the 2nd run will come like every day in the past. As you see there is no issue with Programm 2 . I'm a little bit skilled in Python but I don't see any specific parts in coding that maybe could be the problem. Please, can someone support me? BR donProsko RE: every day Programm 1 starts twice - dan - 2017 Jun 20 Looks like there may be a problem with the way SIP handles "Single pass" programs. I would suggest you change program 1 to be "recurring" and set it to recur every 23:59. Click to enlarge. Let me know if this works for you. Dan RE: every day Programm 1 starts twice - donprosko - 2017 Jun 20 Hi Dan, I changed the settings of Programm 1. This are the actual settings: Program 1: Every Weekday Run: (ge) Liguster Kirschlorbeer Obst (bn) Büsche Nord (vt) Himbeeren (ws) Terrasse Starting: 07:30 with individual station durations for 00 hrs 51 mins 30 secs until 08:21 Recurring every 23 hrs 59 mins until 08:30 Program 2: Every 2 days Run: (rt) Wiese West (bl) Wiese Nord (gn) Wiese Süd Starting: 06:00 with individual station durations for 01 hrs 05 mins 00 secs until 07:05 We will see tomorrow what will happened.... short question: You propose "Recurring every 23 hrs 59 mins". So, "Recurring every 24 hrs 00 mins" is not a good idea? THX & BR donProsko RE: every day Programm 1 starts twice - donprosko - 2017 Jun 23 Hi Dan, with changing Programm 1 from SINGLE PASS to RECURRING the issue disappeared but we should fix that in coding. When I have a little bit time left I will clone SIP and my settings to a test RasPi and trace the running code. In my Python projects I used the logging package. What do you think about implementing that in SIP? BR donProsko RE: every day Programm 1 starts twice - dan - 2017 Jun 23 Glad that helped. The single pass feature does need work. I have avoided using the error logging module because of the limited number of write cycles that the SD card can have. I even encourage users to add a flash drive to the system to help extend the life of the SD card: https://github.com/Dan-in-CA/SIP/wiki/Flashdrive |