Posts: 6
Threads: 1
Joined: Sep 2015
Reputation:
0
How can I get information about the state of sprinkler other than simply on/off. In particular, how much time before the sprinkler will be turned off?
Thanks,
-Chris
==============================
"Be happy while you're living, for you're a long time dead." -Scottish Proverb
Chris Heegard aka Gatomon
==============================
Posts: 640
Threads: 18
Joined: Aug 2015
Reputation:
22
try [sip url]/api/status
look for "remaining:" it will give you the time remaining in seconds.
Posts: 6
Threads: 1
Joined: Sep 2015
Reputation:
0
Dan,
Just what I need. Maybe you should add that to the SIP GET document...
Thanks,
-Chris
==============================
"Be happy while you're living, for you're a long time dead." -Scottish Proverb
Chris Heegard aka Gatomon
==============================
Posts: 6
Threads: 1
Joined: Sep 2015
Reputation:
0
Similarly, is there a way to get the status of the system such as enabled/disabled, manual mode, etc.?
Thanks,
-Chris
==============================
"Be happy while you're living, for you're a long time dead." -Scottish Proverb
Chris Heegard aka Gatomon
==============================
Posts: 640
Threads: 18
Joined: Aug 2015
Reputation:
22
Not via http.
you would need to access the Python code for most of the internal status.
See the file gv_reference.txt in the SIP directory for a full list.
Dan
Posts: 640
Threads: 18
Joined: Aug 2015
Reputation:
22
Actually, after giving this a little more thought, you might be able to use the output from the mobile_app plugin. It outputs most of SIP's current status in json format. Or you might be able to modify the code and create a plugin that can provide whatever data you need.
Dan
Posts: 6
Threads: 1
Joined: Sep 2015
Reputation:
0
Thanks! The mobile_app plugin hits the spot...
-Chris
==============================
"Be happy while you're living, for you're a long time dead." -Scottish Proverb
Chris Heegard aka Gatomon
==============================
Posts: 640
Threads: 18
Joined: Aug 2015
Reputation:
22
It sounds like it is looking for the login password.
You can try adding the password to the query string (?pw=xxx) or disabling the password from the Options page under "Change password" check the "disable security" box. SIP's password is not very secure anyway.