SIP
api and other data - Printable Version

+- SIP (https://nosack.com/sipforum)
+-- Forum: SIP (Sustainable Irrigation Platform) (https://nosack.com/sipforum/forumdisplay.php?fid=1)
+--- Forum: Installation and set up questions (https://nosack.com/sipforum/forumdisplay.php?fid=2)
+--- Thread: api and other data (/showthread.php?tid=156)



api and other data - danny_aka_rudy - 2019 Jun 07

Is there a way to request other information from the api?  For instance whether or not manual mode is enabled?

I've reviewed the API doc and saw that I can change manual mode from the api but not sure how to request what the setting currently is from the api.


RE: api and other data - dan - 2019 Jun 07

You would need to use the API for the mobile_app plugin i.e. [url of SIP]/jc.

This will return a json object containing current settings. The "mm" item is the manual mode: 0 = off, 1 = on.

See the file gv_reference.txt in the sip folder for descriptions of the various variables SIP uses.

other mobile_app options are:
    '/jo', 'plugins.mobile_app.options',
    '/jc', 'plugins.mobile_app.cur_settings',
    '/js', 'plugins.mobile_app.station_state',
    '/jp', 'plugins.mobile_app.program_info',
    '/jn', 'plugins.mobile_app.station_info',
    '/jl', 'plugins.mobile_app.get_logs',
    '/sp', 'plugins.mobile_app.set_password'])