-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible to read multiple status stored in .xml file? #75
Comments
I i have the same request? any solution? |
I've had a similar need trying to read status from my OpenSprinkler. The best way I could think up was to use a PHP script to read the values. If the output is always the same, except for the 1/0 variables you could use substr to interpret the values. It outputs like this Then this script looks for the 8th character, length 1. And returns that value when you go to this php file on your web server:
I know this solution requires lots of counting, but as long as the output doesn't change its structure this does work. You would need 1 PHP script per http device, 1 status per device. And you would need to alter the value 8 to which ever position value you are looking for, count it out and then put in that number. But its just a suggestion |
I've a status.xml file that contain multiple status values, like this:
It is possible to read the 1|0 inside
<natOut> <natIn>
?Thanks.
The text was updated successfully, but these errors were encountered: