OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) Sprikler PHP code doest not work for opensprinkler pi

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #35066

    Abhijit
    Participant

    Hello 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 .

     

     

     

     

     

    #35067

    Samer
    Keymaster

    Unfortunately, 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

    #35069

    Abhijit
    Participant

    Hello 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

     

     

     

     

     

    #35070

    Samer
    Keymaster

    As 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.

    #35071

    Abhijit
    Participant

    Hello 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 number

    Thanks
    Abhijit S

    #35072

    Samer
    Keymaster

    The 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.

    #35088

    Abhijit
    Participant

    Hello ,

    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

     

     

     

     

    #35124

    Dan in CA
    Participant

    There 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

Viewing 8 posts - 1 through 8 (of 8 total)
  • 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