Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • in reply to: gzip: stdin: not in gzip format #24771

    ITDawg
    Member

    This is what I use to get updates directly to my Pi. I SSH to the Pi, then issue the following wget command so it writes it to the correct file name:

    wget -O ospi.tar.gz https://github.com/rayshobby/opensprinkler/blob/master/OpenSprinkler%20Pi/software/demos/interval_program/ospi.tar.gz?raw=true

    The “-O” (UPPERCASE, not lowercase!!!) tells wget to write the file to ospi.tar.gz file.

    I also copy my config files to a temp directory so I can just copy them back after the update:

    cp OSPi/data/* ospi.current.config/data/

    Then I unzip/untar with:

    tar -xvf ospi.tar.gz
    in reply to: Starting ospi.py automatically #24686

    ITDawg
    Member

    Sounds like your RPi is not getting an IP address or it is not getting one in time for the script… Before the “host=…” line, add “sleep 60” on a new line and see what that does…

    I had that same issue and that’s my current work around…

    in reply to: OSPi network connection for Apple Air Port Extreme #24668

    ITDawg
    Member

    The keyboard issue is because the RPi is not configured by default to use US keyboard layouts. Have you gone through the Raspberry Pi configuration? You can go through it again by entering the following at a terminal prompt:

    sudo raspi-config

    If you are using an older Rasbian distribution, (pre-loaded card) you might want to upgrade and update Raspbian to the latest version. To do so just do:

    sudo apt-get update
    sudo apt-get upgrade

    and wait a few minutes for the upgrade to finish, then restart your PI.

    To make OSPi run in the background, there are some lines to add to your /etc/rc.local startup file. Those instructions can be found at the end of the Readme.txt here: https://github.com/rayshobby/opensprinkler/blob/master/OpenSprinkler%20Pi/software/demos/interval_program/README.txt

    Good Luck!

    in reply to: Rain Delay using old RainWise gauge #24678

    ITDawg
    Member

    Have you integrated that into your OSPi setup? Or does your Davis still function?

    I have not tackled direct coding on the RPi, but, am very interested in giving this a go!

    in reply to: OSPi network connection for Apple Air Port Extreme #24660

    ITDawg
    Member

    Lets just be sure what IP and port you are running on. From a terminal window, enter the following commands:

    hostname -I
    ps -ef | grep -i ospi

    The hostname -I command should return the RPi’s current IP address. Hopefully that is 10.0.1.21 as you expect. It should be recorded in your AE as the Private IP address as you have indicated.
    The ps -ef command will look for processes that contain “ospi” in the name or options. It will also return the grep line since ospi is an option to the grep command. Here is a copy of my Pi running those commands:

    pi@OSPi ~ $ hostname -I
    192.168.1.11
    pi@OSPi ~ $ ps -ef | grep -i osPI
    root 2401 1 0 18:31 ? 00:00:09 /usr/bin/python /usr/ospi/ospi.py 192.168.1.11:8080
    pi 8118 7915 0 21:03 pts/1 00:00:00 grep –color=auto -i osPI
    pi@OSPi ~ $

    From those commands, you can verify the Pi is doing what you expect it is doing…

    Good Luck!

    in reply to: Built-in Rain Delay Function Issue #24642

    ITDawg
    Member

    This is bizarre… Eventhough the home page has all programs crossed through and the Rain Delay time still showing like it is in a rain delay, subsequent programs do indeed appear to run. I am guessing this is just a visual indicator problem and that the logic of the rain delay is code is correct… well, except for the web page update part… 😀

    in reply to: Built-in Rain Delay Function Issue #24641

    ITDawg
    Member

    Update!

    I updated to Dan-in-CA’s latest code from his fork on GitHub. See: https://github.com/Dan-in-CA/opensprinkler/tree/master/OpenSprinkler%20Pi/software/demos/interval_program

    That version cleans up several issues per the Readme.txt:


    * Jun 26 2013
    1. Last run logging is now working for manual mode when an optionsl time value is selected, even if more that one station is started.
    2. Fixed a bug that prevented the home page display from updating when running irrigation programs.
    3. Includes a fix from Samer that allows the program preview time marker to update properly.

    I have been focusing on the RainDelay feature since we received about 2″ in the last couple of days. Earlier today, I set the “Rain Delay” to shortly after 8PM local time today. All worked as desired as no zones activated today. However, at 8:20ish Local time, the Rain Delay feature was still activated.

    Does anyone else see this phenomenon? To test, set your Rain Delay for 1 hour, then check back after the hour has passed and see if it is still in rain delay mode or not.

    Thanks to ALL!

    in reply to: OSPi network connection for Apple Air Port Extreme #24658

    ITDawg
    Member

    I do not have an Airport Extreme, but some googling did find some documentation about port forwarding: https://discussions.apple.com/docs/DOC-3415

    Section 2 is talks about the port forwarding configuration, but don’t skip section 1 to define a static address.

    Here is Section 2:

    2. Setup Port Mapping on the base station.
    AirPort Utility > Select the base station > Edit > Network tab
    Click the "+" (Add) button under Port Mapping.
    Description:
    Public UDP Port(s):

    Public TCP Port(s):

    Private IP Address:

    Private UDP Port(s):

    Private TCP Port(s):

    Click "Save"

    My Notes:
    – You can Ignore the UDP ports, since we are talking TCP to the device.
    – The Public TCP port is the port you use externally such as on the canyouseeme.org site.
    – The private IP and TCP Ports is what you use to talk to it on your local network.

    in reply to: OSPi network connection for Apple Air Port Extreme #24656

    ITDawg
    Member

    Kevin,

    Do you have OSPi running on your Pi when you check it on canyouseeme.org? The OSPi code is what responds to port 80 or port 8080. Make sure you can browse to the Pi from “inside” your network before configuring the router and checking it through canyouseeme.org. It does not matter if the device is attached to copper ethernet or using WiFi for connectivity as far as the router and port forwarding are concerned. If the Pi answers on port 8080 (for example: http://192.168.0.33:8080) then make sure the port forwarding configuration on your router forwards port xxxx (for example 88) to 192.168.0.33, port 8080. Then to access OSPi from outside your network (public Internet) you should browse to (http://publicIP:88) where publicIP is what is reported on canyouseeme.org as “Your IP:”. The outside (public) port does NOT have to match the port that your OSPi actually responds on. You just have to map an accessible, not firewalled port to your inside device via the router’s “port forwarding” service…

    When I use the canyouseeme.org page and I supply the forwarded (external) port, it finds my OSPi just fine, by the way.

    Hope this helps and doesn’t muddy the waters too much!

    in reply to: Program Preview Current Time Line #24640

    ITDawg
    Member

    Further digging on this forum revealed this post:
    viewtopic.php?f=28&t=160&start=10#p922

    Which does correct the problem for me.

    in reply to: OpenSprinkler Interval Program now available for OSPi! #24438

    ITDawg
    Member

    +1 for the fix to the Program Preview current time line. Changing the devtime variable to “devmin=’+str(lt.tm_hour * 60 + lt.tm_min)…” corrected the issue for me as well.

    Also, the favicon mod would be a very nice addition too.

    Hope both of these find their way in the core distribution soon…

Viewing 11 posts - 1 through 11 (of 11 total)