OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Sprikler PHP code doest not work for opensprinkler pi
- This topic has 7 replies, 3 voices, and was last updated 10 years ago by Dan in CA.
-
AuthorPosts
-
December 26, 2014 at 1:51 am #35066
AbhijitParticipantHello Team,
We have used OpenSprinkler with Webapp that present in below url https://github.com/salbahra/Sprinklers-PHP
But this code not working for OpenSprinkler PI
I am needing to work OpenSprinkler PI through PHP code
How should we do that ?
Please advice .December 26, 2014 at 1:54 am #35067
SamerKeymasterUnfortunately, the PHP application is no longer being developed and has been that way for almost two years now.
If you wish to try and use the PHP app with OpenSprinkler Pi, you will need to use an older version of the Pi software which Dan has available here
December 26, 2014 at 2:12 am #35069
AbhijitParticipantHello Sameer,
I just check dan code this are all python code . Can you please explain step how should we used opensprikler pi in webapp in php
Thanks
Abhijit S
December 26, 2014 at 2:22 am #35070
SamerKeymasterAs I mentioned earlier, the PHP app is no longer developed or supported.
I recommend you use the applications available in the app stores to interface with your OpenSprinkler Pi using Dan’s latest software. This includes browsers such as Google Chrome and Mozilla Firefox.
December 26, 2014 at 6:51 am #35071
AbhijitParticipantHello Samer,
I have used this link code https://github.com/salbahra/Sprinklers for integrating webapp for opensprinkler-pi with passing IP address and password.
My Query is
In any way to only integrate specific station in opensprinkler-pi. like with passing IP, password and station numberThanks
Abhijit SDecember 26, 2014 at 2:03 pm #35072
SamerKeymasterThe Pyhton code has many HTTP commands available to modify program and stations via GET HTTP requests.
For more information on these commands please visit the documentation: http://rayshobby.net/wordpress/wp-content/uploads/2011/10/Firmware1.8HTTPGETcommands.pdf
Please note the above document is technically for the OpenSprinkler Arduino firmware however the Pi is based on the firmware and shares the same commands with a few exceptions.
December 29, 2014 at 12:15 am #35088
AbhijitParticipantHello ,
We used raspberry pi http://XX.XXX.XXX.XXX:8080/. As per documentation when i am used http://XX.XXX.XXX.XXX:8080/sn1 command then i am redirect to http://XX.XXX.XXX.XXX:8080/ nothing data get
January 2, 2015 at 7:00 pm #35124
Dan in CAParticipantThere was a change to the code a while back made by another developer. You need to use http://XX.XXX.XXX.XXX:8080/sn?sid=1 to get the status of station 1.
You can also do http://XX.XXX.XXX.XXX:8080/sn?sid=1&set_to=1 to turn the station on or http://XX.XXX.XXX.XXX:8080/sn?sid=1&set_to=0 to turn the station off.
Dan
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Sprikler PHP code doest not work for opensprinkler pi