OpenSprinkler Forums Hardware Questions OpenSprinkler Beagle (OSBo) Setting up BBB from Scratch

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #22854

    clivep
    Participant

    Hi 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 version

    sudo 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 80

    There are no relevant messages in the apache log. Any idea what’s going wrong?

    CP

    #26583

    Samer
    Keymaster

    Why use the web app? Native apps are available from any App Store (iOS, Google, Amazon, Windows 8, and BlackBerry QNX)

    #26584

    clivep
    Participant

    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.

    #26585

    Ray
    Keymaster

    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.

    #26586

    clivep
    Participant

    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
    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:
    [email protected]:~/OSPi$ sudo python ospi.py
    Ignoring exception while loading the monthly_adj plug-in.
    name ‘Scheduler’ is not defined
    plugins loaded:

    Starting timing loop

    http://0.0.0.0:8080/

    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

    #26587

    Ray
    Keymaster

    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:
    http://rayshobby.net/mediawiki/index.php?title=Set_Up_BBB
    Feel free to modify the page to append additional instructions.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums Hardware Questions OpenSprinkler Beagle (OSBo) Setting up BBB from Scratch