2020 Jun 04, 08:15 PM
Hi Johan,
You have a very interesting situation. First off, congratulations on writing a plugin!
There is a file in the SIP folder named gv_reference.txt which lists the variables SIP uses with a brief description of each.
You can set a 24 hr delay for programs by setting the gv.sd[u"rd"] variable (rain delay) to 24.
As far as getting the start time for the next program, there are a couple of things to check:
SIP stores the irrigation schedules in the file SIP/data/programData.json. That may be a good place to start. The start times are in minutes past midnight. You can calculate minutes past midnight with for example:
When SIP starts, it loads the programData file into the variable gv.pd.
When a program is scheduled to run the start time is stored in the variable gv.rs
I hope this is helpful.
Let me know if you have further questions. I really enjoy helping out with unique applications like yours.
Dan
You have a very interesting situation. First off, congratulations on writing a plugin!
There is a file in the SIP folder named gv_reference.txt which lists the variables SIP uses with a brief description of each.
You can set a 24 hr delay for programs by setting the gv.sd[u"rd"] variable (rain delay) to 24.
As far as getting the start time for the next program, there are a couple of things to check:
SIP stores the irrigation schedules in the file SIP/data/programData.json. That may be a good place to start. The start times are in minutes past midnight. You can calculate minutes past midnight with for example:
Code:
time_now = time.localtime()
min_past_midnight = (time_now.tm_hour * 60) + time_now.tm_min
When SIP starts, it loads the programData file into the variable gv.pd.
When a program is scheduled to run the start time is stored in the variable gv.rs
I hope this is helpful.
Let me know if you have further questions. I really enjoy helping out with unique applications like yours.
Dan
<p><br></p>