OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Beagle (OSBo) › Setting up BBB from Scratch
- This topic is empty.
-
AuthorPosts
-
April 27, 2014 at 3:14 am #22854
clivepParticipantHi Ray
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
from scratch.
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)cd $HOME
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git – already the newest versionsudo apt-get install python
–Install Dan’s Interval program
git clone https://github.com/Dan-in-CA/OSPi
cd OSPi
sudo python ospi.py
— http://ip:8080 in a browser appears to work OK— 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:
Not Found
The requested URL /sprinklers was not found on this server.
Apache/2.4.7 (Ubuntu) Server at 192.168.0.210 Port 80There are no relevant messages in the apache log. Any idea what’s going wrong?
CP
April 27, 2014 at 1:13 pm #26583
SamerKeymasterWhy 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
clivepParticipantI 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
RayKeymasterUnless 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
clivepParticipantOK, 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
https://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/installation-on-ubuntu
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:
ubuntu@arm:~/OSPi$ sudo python ospi.py
Ignoring exception while loading the monthly_adj plug-in.
name ‘Scheduler’ is not defined
plugins loaded: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 Cheers
May 1, 2014 at 1:16 pm #26587
RayKeymasterI’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:
http://rayshobby.net/mediawiki/index.php?title=Set_Up_BBB
Feel free to modify the page to append additional instructions. -
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Beagle (OSBo) › Setting up BBB from Scratch