Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
every day Programm 1 starts twice
#1
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
2017-06-20    09:11:31    (ws) Terrasse    01:30    1
2017-06-20    09:06:31    (vt) Himbeeren    05:00    1
2017-06-20    08:51:31    (bn) Büsche Nord    15:00    1
2017-06-20    08:21:31    (ge) Liguster Kirschlorbeer Obst    30:00    1
2017-06-20    08:20:00    (ws) Terrasse    01:30    1
2017-06-20    08:15:00    (vt) Himbeeren    05:00    1
2017-06-20    08:00:00    (bn) Büsche Nord    15:00    1
2017-06-20    07:30:00    (ge) Liguster Kirschlorbeer Obst    30:00    1
2017-06-20    06:35:00    (gn) Wiese Süd    30:00    2
2017-06-20    06:20:00    (bl) Wiese Nord    15:00    2
2017-06-20    06:00:00    (rt) Wiese West    20:00    2


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
Reply
#2
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
Reply
#3
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
Reply
#4
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
Reply
#5
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
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)