My original goal was to have one interface for all the home automation tools that I am trying to put together; however, after installing OptiRain Open there really is no point. The software works great and since I already had apache and php on my pi, I just needed to add OptiRain Open.

The software is currently free and open to anyone that requests it. Jim from QuickSmart, is very quick at returning emails.

What I did to get it working on my Pi:

sudo apt-get install php5-sqlite
cd /var/www/{whatever if you want it in a subdirectory}
cd {whatever directory}/optirain/phpincludes
nano or_credentials.php 

You will want to include the subdirectory in the $install directory.
$installdir = "sprink/optirain"; //this is specific to my installation

The last thing you need to do before accessing the page on your web browser is to check the file ownership and permissioning.  In my case, for the Raspberry Pi the files should all be owned by  “www-data”.

For bonus fun, I wanted to have an icon on my iPad.  So I found an image on Google and added <link rel="apple-touch-icon" href="/sprink/optirain/images/sprinkler.png"/> to or_main.php head tags.


Comments

  1. Frank -

    I am getting errors on my pi:

    [email protected] ~ $ sudo apt-get install php5-sqlite
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    The following extra packages will be installed:
    apache2-mpm-prefork libapache2-mod-php5filter libonig2 libqdbm14 php5-common
    Suggested packages:
    php-pear
    The following packages will be REMOVED:
    apache2-mpm-worker
    The following NEW packages will be installed:
    apache2-mpm-prefork libapache2-mod-php5filter libonig2 libqdbm14 php5-common
    php5-sqlite
    0 upgraded, 6 newly installed, 1 to remove and 135 not upgraded.
    Need to get 3,298 kB of archives.
    After this operation, 9,073 kB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main apache2-mpm-prefork armhf 2.2.22-12
    404 Not Found
    Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main php5-common armhf 5.4.4-12
    404 Not Found
    Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libonig2 armhf 5.9.1-1 [130 kB]
    Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main libapache2-mod-php5filter armhf 5.4.4-12
    404 Not Found
    Get:2 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libqdbm14 armhf 1.8.78-2 [119 kB]
    Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main php5-sqlite armhf 5.4.4-12
    404 Not Found
    Fetched 249 kB in 1s (154 kB/s)
    Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/a/apache2/apache2-mpm-prefork_2.2.22-12_armhf.deb 404 Not Found
    Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/p/php5/php5-common_5.4.4-12_armhf.deb 404 Not Found
    Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/p/php5/libapache2-mod-php5filter_5.4.4-12_armhf.deb 404 Not Found
    Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/p/php5/php5-sqlite_5.4.4-12_armhf.deb 404 Not Found
    E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?

    Reply
    • Thomas -

      2 questions:
      1. Have you updated and upgraded recently? (sudo apt-get update && sudo apt-get upgrade -y)
      2. Any internet connection issues?

      Reply
  2. arnold99 -

    I wrote a letter to QuickSmart,. But there is no answer from them. You can give the link to optirain open?

    Reply
    • Thomas -

      Unfortunately, my controller is no longer working and I had to email them recently about repair costs. I did get a quick reply email from jiml (-at-) quicksmart.com so you could try that email address.

      Their software was at http://www.quicksmart.com/qs_software.html but I am having a hard time loading their site currently.

      Reply

Leave a Reply