OpenSprinkler › Forums › OpenSprinkler Mobile and Web App › API: Logs manual mode and water level › Reply To: API: Logs manual mode and water level
August 13, 2015 at 12:53 pm #39862
Here is the function I use to resolve the program name: https://github.com/OpenSprinkler/OpenSprinkler-App/blob/master/www/js/main.js#L7017-7029
You will notice the PID 255 or 99 mean a manual program and PID of 254 or 98 is a run-once program.
For the water level, it uses the same request however you add a type=wl to the URL. We will update the API document to reflect these items