Feed on
Posts
Comments

Good news to the OpenSprinkler Pi users: the same interval program firmware that runs on the latest OpenSprinkler has now been ported to OpenSprinkler Pi! This is due entirely to the generous contributions by Dan Kimberling, who ported the OpenSprinkler’s Arduino code to Python. The code is available for download at Dan’s GitHub repository. Instructions can be found at the Rayshobby Wiki page:

(Note: the grayed-out instructions below are obsolete and are only kept here for archiving purpose. Please follow the instructions on the Wiki page above for how to install and use the latest software. Thanks.)


For anyone who is unfamiliar with RPi, here are some basic instructions to follow:

  • First, ssh to your RPi (or connect your RPi to a monitor and open a Terminal), and type in run the following command in one single line(i.e. the ‘wget’ command, space, and the very long link): wget https://github.com/rayshobby/opensprinkler/raw/master/OpenSprinkler%20Pi/software/demos/interval_program/ospi.tar.gz
  • Next, run tar zvxf ospi.tar.gz. This will unzip the file to a subfolder named OSPi in your current directory.
  • Now, cd OSPi, and then run sudo python ospi.py (note that you will need to type in your RPi account password). This will start the web server.
  • Open a browser on your computer or any device that’s connected to the same network as your RPi, and type in your RPi’s IP address, followed by colon, and the default port number 8080. For example, for my RPi, the address is http://192.168.1.147:8080. You should now see the homepage of the interval program demo. Note that the port number can be changed to other values, in which case you need to check the source files to figure out how to make the change (or post a message on the forum and I am sure someone will help you).


interval_program_ospiospi_header

This demo program is the same as OpenSprinkler 1.8.2 firmware. So you can follow the OpenSprinkler Online User Manual for usage instructions. I believe all features of the firmware are supported. Keep in mind that this is still work in progress, so there are glitches and bugs that will be ironed out over time. If you are a developer, you are welcome to improve the code or help fixing bugs. The backbone of the software is based on web.py, a popular and easy-to-use web framework for Python.

Also keep in mind that if you have RPi rev. 2 (which is the current model), you need to open ospi.py and edit a port number. Details can be found in the README.txt file. P.S., it’s generally a good idea to read the README.txt first before you start doing anything.

These will be the basics to get you started. If you have any questions, feel free to post a message on the forum.

Finally, a big thank-you again to Dan Kimberling for his time and efforts in making this available to the public. This is an example of the true spirit of open-source development and community support. I am very excited to see additional user contributions to the OpenSprinkler Pi project!

14 Responses to “OpenSprinkler Interval Program is now available for OSPi”

  1. Izzy says:

    This is great news, great product and now software to go along with it!

  2. Chad says:

    I have it up and running and installed. Works great, I did find a few bugs around logging and the automated programs running. I don’t see any logging happening and the automated programs don’t seem to run, when I run a manual or run once program they work great. Seems like something is broken with the time. The red line on the program preview never moves.

  3. danimal1228 says:

    Running great. A few minor issues but its exactly what I needed. Quick question, I want to update the OSPi Interval program, do I just install over my existing version? Will my settings be retained? Or are there just a few files that I need to update? Thanks

    • ray says:

      @danimal1228: I assume the settings will be retained since they are stored in files (as long as you don’t modify the data files it should be fine). That being said, the best place to ask this question is to post it on the forum (http://rayshobby.net/phpBB3). Dan (who wrote the program) or someone who is familiar with it can better answer your questions. Thanks.

  4. JW says:

    Where is the proper place to post bugs in the Interval Program?

    The run once program counts down the timer for all stations instead of just the running station. This is a particular problem as I am trying to set the run once program based on weather criteria and then activate it with a http get to an opensprinkler pi.

  5. Russ says:

    Confession: I am a newbie and struggling a bit with this.
    I got the RPi setup and running and loaded the apache server and php. I got to the “New Install” screen, entered in the information but when I click Submit I get a message “Settings have NOT been saved. Check IP and port settings and try again.” I have checked the IP address and it is the same address I used on my web browser to get to the page in the first place. I am assuming that the port is 80 but I have tried adding it to the IP like this 192.168.1.119:80. I have also tried port 8080 with success.
    As for the other fields I have entered a username and password of my choosing and also entered the open sprinkler password as “opendoor”. I also left the passfile and cachefile settings at their defaults.

    Any idea what I might be doing wrong?

  6. Russ says:

    Oops again – in case you are wondering what I am talking about, forget it I posted to the wrong forum.

  7. […] OpenSprinkler Pi any version running Dan’s interval_program (equivalent to firmware […]

  8. Jeff says:

    How do you make it persistent, so that it starts every time the Raspberry Pi boots?

  9. Excellent goods from you, man. I have understand
    your stuff previous to and you’re just too great. I really like what you’ve acquired here, certainly
    like what you’re saying and the way in which you say it.
    You make it entertaining and you still care for to keep it smart.
    I can not wait to read much more from you. This is actually a wonderful website.

    My webpage best chef knife

  10. Rosaria says:

    Hey there, You have done an excellent job. I’ll certainly digg it and personally recommend to my friends.
    I am sure they will be benefited from this site.