OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) sprinklers_pi – An alternative sprinkler control program Re: Re: sprinklers_pi – An alternative sprinkler control program

#24966

eddiek2000
Member

@cmoore wrote:

I notice that the github repository has all the individual files under the OSPi tree, but then it also has ospi.tar.gz which seems to contain the same files. Why the two different copies? It seems like it would be really easy for those to get out of sync. In fact if I diff the two versions there are a lot of differences, but at first glance they seem to be trivial (like end-of-line markers being different). Maybe it would make sense to get rid of the ospi.tar.gz and just let people pull the source tree?

This thread is about “sprinklers_pi” an alternative control program for the OSPi hardware platform. I think you are confusing the 2. See first post:

@rszimm wrote:

Hi there,
I’ve created an alternative control software module to control the Raspberry Pi OpenSprinkler system. It’s entirely self contained and doesn’t require python, a web server, or any other heavy software to operate. It can also be compiled to run on the Atmel AVR / Arduino platforms, so theoretically it should run on the AVR OpenSprinkler as well.

I created this a few months back before I had seen the web code created by Samer. The look and feel are pretty similar mainly due to the use of the same mobile web library (jQuery Mobile).

Here are the features:

  • Fully contained system with control logic and web serving.[/*:3mh2r6lp]
  • Same code can be compiled to run on the Atmel/AVR/Arduino platform.[/*:3mh2r6lp]
  • Web based control (including mobile Android iOS)[/*:3mh2r6lp]
  • Automatic adjustment of intervals based on weather conditions. (weather underground API)[/*:3mh2r6lp]
  • Manual Control[/*:3mh2r6lp]
  • Scheduled Control[/*:3mh2r6lp]
  • Quick Schedule[/*:3mh2r6lp]
  • Named Zones[/*:3mh2r6lp]
  • Full Graphing feature of historic logs[/*:3mh2r6lp]
  • Ability to run with OpenSprinkler module or direct relay outputs.[/*:3mh2r6lp]

Plus I’m working on a few other things…

Here are a few screen shots from the software:


Installation instructions:

  1. Start with a generally clean instance of Raspberry Pi Raspbian system. If you have a web server installed, you’ll want to avoid port conflicts (i.e. make sure it’s not running on 8080— the default for this software). If you’ve already installed the python interval program, disable it while you’re running this.
  2. Install the wiring pi module. Details are here: http://wiringpi.com/download-and-install/
  3. Install the sqlite3 library (technically optional, but why not do it anyway?), and the build tools
    sudo apt-get install libsqlite3-dev build-essential
  4. Download the source tarball here: http://stuff.intelligent-isi.com/sprinklers_pi/sprinklers_pi-1.0.1.tar.gz or type:
    wget http://stuff.intelligent-isi.com/sprinklers_pi/sprinklers_pi-1.0.1.tar.gz
  5. Unpack the source tarball:
    tar -xzvf sprinklers_pi-1.0.1.tar.gz
  6. Build and install the module:
    cd sprinklers_pi-1.0.1
    make
    sudo make install

That’s it! If you want to start it, simply reboot or just run the following:

sudo /etc/init.d/sprinklers_pi start

If something goes wrong on startup you can get some diagnostic information at /var/log/sprinklers_pi.

Once you’ve started things up, browse to port 8080 with a web browser. The system starts up in demo mode (i.e. it won’t actually switch outputs). To change the output type go to the Settings and change the Output type to “OpenSprinkler” (assuming you’re using the OpenSprinklerPi module).

For those who are particularly adventurous, the sprinkling logs are stored in sqlite3 database format, so if you really care, you can query them with SQL using the database at /usr/local/etc/sprinklers_pi/db.sql

I’m going to get the source up somewhere like github over the next couple days…