Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best method to postpone program
#2
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:


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>
Reply


Messages In This Thread
Best method to postpone program - by johan456 - 2020 Jun 04, 05:45 PM
RE: Best method to postpone program - by dan - 2020 Jun 04, 08:15 PM
RE: Best method to postpone program - by dan - 2020 Jun 05, 03:05 PM
RE: Best method to postpone program - by johan456 - 2020 Jun 07, 06:25 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)