- This topic is empty.
April 27, 2014 at 3:14 am #22854
I’m not sure this is the best place to post as my actual problem is, I suspect, an apache issue related
to Samer’s web app but I post here as this is basically a list of instructions to
setup an BBB Opensprinkler system from scratch.
I tried to use the preconfigured software image for the OpenBeaglebone Black but was unable to get my
wireless adapter to work (not sure what’s going on there,it would not even recognise it using ‘lsusb’).
The adapter works fine using the downloaded image so I thought I’d setup the Opensprinkler software
I am using a local install, not your hosted app.
The steps I followed are:
–Install fresh Ubuntu from http://elinux.org/BeagleBoardUbuntu#BeagleBone.2FBeagleBone_Black (raw BBB microSD image).
–Setup wireless (Ralink5370 using rt2800usb)
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git – already the newest version
sudo apt-get install python
— Install Mobile app as per http://rayshobby.net/?p=6409
sudo apt-get install apache2 php5 libapache2-mod-php5
sudo mkdir -m 777 /var/www/sprinklers
sudo git clone https://github.com/salbahra/OpenSprinkler-Controller.git /var/www/sprinklers/
–Problem is that url http://192.168.0.210/sprinklers gives me:
The requested URL /sprinklers was not found on this server.
Apache/2.4.7 (Ubuntu) Server at 192.168.0.210 Port 80
There are no relevant messages in the apache log. Any idea what’s going wrong?
CPApril 27, 2014 at 1:13 pm #26583
Why use the web app? Native apps are available from any App Store (iOS, Google, Amazon, Windows 8, and BlackBerry QNX)April 28, 2014 at 12:48 pm #26584
I wasn’t aware the web app is no longer supported. I was trying to reproduce the functionality of the preconfigured image. In any case, no issues with using the native app.
However, using the OSBo setup described previously and the Android version of OpenSprinkler Sprinklers app (updated tonight 28/4) scanning for device I get ‘No new devices detected on your network’. Manually entering a New Device I enter Name=Home, IP=local ip address, Password=pw . I get ‘Check IP/Port and try again’. What am I doing wrong?
Happy to provide more information as required.April 28, 2014 at 5:57 pm #26585
Unless if you’ve changed the Python program to use port 80, keep in mind that it runs on port 8080 by default. So when putting the ip address in the app, remember you need to specify the port number, such as 192.168.x.x:8080.April 29, 2014 at 12:11 pm #26586
OK, got it working. For completeness here is what I did…
So it is communicating with the Interval Program on port 8080- it is NOT using the Mobile App on port 80.
All documentation states the Interval program needs to be installed – it needs to be installed and be running
(Sorry, this may have been a bit obvious but I didn’t get from the docco that the Interval program had to be running).
Running the interval program manually by “sudo python ospi.py” generated a few errors, one of which was
“No GPIO module was loaded”
— For this error you need to install the Adafruit Beaglebone IO library to access to the GPIO, from website
sudo apt-get install build-essential python-dev python-setuptools python-pip python-smbus
sudo pip install Adafruit_BBIO
Test your installation using the commands on the website and follow the ‘Starting the program automatically’ instructions
when all is well.
Now, running the Interval Program manually I get the following warnings:
[email protected]:~/OSPi$ sudo python ospi.py
Ignoring exception while loading the monthly_adj plug-in.
name ‘Scheduler’ is not defined
Starting timing loop
I’m not sure about those couple of warnings But all appears to work OK.
Thank you for your assistance Ray, I’m certain that you have this information somewhere on the OpenSprinkler website
but the information is a bit ‘dispersed’. Hopefully this post will help any BBB newbs (& Pi newbs as well) out there
trying to get this going.
I want to reiterate what is regularly stated by posters, this is a great project with a great front end by Samer.
Thanks again and CheersMay 1, 2014 at 1:16 pm #26587
I’m certain that you have this information somewhere on the OpenSprinkler website but the information is a bit ‘dispersed’
You are absolutely right, I need to find a more organized way to present everything. One difficulty is that there are frequent changes and I am falling behind updating the website.
Looks like the wiki page has some detailed setup instructions by Nayr and Oarsman:
Feel free to modify the page to append additional instructions.
- You must be logged in to reply to this topic.