Forum Replies Created

Viewing 25 posts - 1 through 25 (of 55 total)
  • Author
    Posts
  • in reply to: port forwarding question #25688

    kkpwrh2o
    Member

    I typed it wrong on my post but have been entering it correctly in the App though. Thanks

    BTW, how would one know if they entered the wrong password in the App. I am assuming I have the wrong p/w because I keep getting the “CheckIP/port entry” error msg.
    KK

    in reply to: port forwarding question #25686

    kkpwrh2o
    Member

    Greetings,

    Having a similar situation in that I can see the “inside: IP addr for my OSPi, can see that port 80 is visible via WhatIsMyIP on the “outside” IP, yet can’t get the app of to see the OSPi using either IP. Don’t think I have changed the password. Is there somewhere to check to ensure the password is the default, or reset the password to the default “open-door” p/w?

    Thanks,
    KK

    in reply to: can’t autostart ospi.py…rc.local or init.d #25472

    kkpwrh2o
    Member

    Tommy,

    Congrats on getting it running!

    I know that frustration of not having it work right and then the coolness of figuring out the problem and finally getting it all up and running.

    Just fixed the time setting on mine that was kicking my butt for a coupe of weeks. Everything works as advertised now. Sweet!

    Kevin

    in reply to: creative minds needed #25484

    kkpwrh2o
    Member

    This sounds like a Google job interview question 🙂

    in reply to: Python interval program update 8/25/13 #25452

    kkpwrh2o
    Member

    Denny,

    Now that I finally have my system running smoothly (and automatically) my next step is to add the garage door open/close/status/rain sensor mod.

    Being able to perform Interval Program updates without redoing the garage door code each time will be a welcome addition.

    Hoping Dan , you, and our forum wizards can make some more magic in this area.

    Meanwhile I’ll get started on the hardware portion of the mod.

    Regards,
    Kevin

    in reply to: Manual operation with count down timer feature request #25476

    kkpwrh2o
    Member

    All,

    Thanks for the advice. I’ll use the run once program.

    Regards,
    Kevin

    in reply to: Python interval program update 8/25/13 #25447

    kkpwrh2o
    Member

    Craig,

    Thanks for the benchmark on your temp. My RPi is located in the previous sprinkler controller box inside a west facing garage. It was up to 154F the other day. I opened the box and it dropped to 145F.

    Regards,
    Kevin

    in reply to: Python interval program update 8/25/13 #25442

    kkpwrh2o
    Member

    As mentioned in the previous post, I ran into this issue when I tried to change the GMT

     at /co
    '16' is not in list

    Python /home/pi/OSPi/ospi.py in GET, line 567
    Web GET http://10.0.1.21:8080/co
    Traceback (innermost first)

    /home/pi/OSPi/ospi.py in GET
    oidx = onumlst.index(key[1:]) ...
    â–¶ Local vars
    /home/pi/OSPi/web/application.py in handle_class
    return tocall(*args) ...
    â–¶ Local vars
    /home/pi/OSPi/web/application.py in _delegate
    return handle_class(cls) ...
    â–¶ Local vars
    /home/pi/OSPi/web/application.py in handle
    return self._delegate(fn, self.fvars, args) ...
    â–¶ Local vars
    /home/pi/OSPi/web/application.py in process
    return self.handle() ...
    â–¶ Local vars
    Request information

    INPUT
    Variable Value
    cpw
    ''
    htp
    '80'
    loc
    '63368'
    mas
    '6'
    npw
    ''
    o1
    '32'
    o12
    '80'
    o13
    '0'
    o15
    '0'
    o16
    'on'
    o17
    '0'
    o18
    '6'
    o19
    '0'
    o20
    '0'
    o22
    'on'
    o23
    '100'
    th
    '-4'
    tq
    '00'
    COOKIES
    No data.
    META
    Variable Value
    app_stack
    []
    fullpath
    u'/co?o1=32&th=-4&tq=00&o12=80&o13=0&htp=80&o15=0&o16=on&o17=0&o18=6&mas=6&o19=0&o20=0&o22=on&o23=100&loc=63368&npw=&cpw='
    headers
    []
    home
    u'http://10.0.1.21:8080'
    homedomain
    u'http://10.0.1.21:8080'
    homepath
    u''
    host
    u'10.0.1.21:8080'
    ip
    u'10.0.1.51'
    method
    u'GET'
    output
    u''
    path
    u'/co'
    protocol
    u'http'
    query
    u'?o1=32&th=-4&tq=00&o12=80&o13=0&htp=80&o15=0&o16=on&o17=0&o18=6&mas=6&o19=0&o20=0&o22=on&o23=100&loc=63368&npw=&cpw='
    realhome
    u'http://10.0.1.21:8080'
    status
    '200 OK'
    ENVIRONMENT
    Variable Value
    ACTUAL_SERVER_PROTOCOL
    'HTTP/1.1'
    HTTP_ACCEPT
    'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
    HTTP_ACCEPT_ENCODING
    'gzip, deflate'
    HTTP_ACCEPT_LANGUAGE
    'en-us'
    HTTP_CONNECTION
    'keep-alive'
    HTTP_HOST
    '10.0.1.21:8080'
    HTTP_REFERER
    'http://10.0.1.21:8080/vo'
    HTTP_USER_AGENT
    'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5 Safari/536.30.1'
    PATH_INFO
    '/co'
    QUERY_STRING
    'o1=32&th=-4&tq=00&o12=80&o13=0&htp=80&o15=0&o16=on&o17=0&o18=6&mas=6&o19=0&o20=0&o22=on&o23=100&loc=63368&npw=&cpw='
    REMOTE_ADDR
    '10xxxxxx
    REMOTE_PORT
    'xxxxx'
    REQUEST_METHOD
    'GET'
    REQUEST_URI
    '/co?o1=32&th=-4&tq=00&o12=80&o13=0&htp=80&o15=0&o16=on&o17=0&o18=6&mas=6&o19=0&o20=0&o22=on&o23=100&loc=63368&npw=&cpw='
    SCRIPT_NAME
    ''
    SERVER_NAME
    'localhost'
    SERVER_PORT
    '8080'
    SERVER_PROTOCOL
    'HTTP/1.1'
    SERVER_SOFTWARE
    'CherryPy/3.2.0 Server'
    wsgi.errors
    ', mode 'w' at 0xb6d5b0d0>
    wsgi.input

    wsgi.multiprocess
    False
    wsgi.multithread
    True
    wsgi.run_once
    False
    wsgi.url_scheme
    'http'
    wsgi.version
    (1, 0)
    You're seeing this error because you have web.config.debug set to True. Set that to False if you don't want to see this.

    The GMT offset of -5 is what I need, but I am wondering about the resulting error page above?

    Thanks,
    Kevin

    in reply to: Python interval program update 8/25/13 #25441

    kkpwrh2o
    Member

    Update

    Dan,

    My program ran last night 5 hour early automatically….(That is progress)

    Given my GMT is -5, I tried an experiment and reprogrammed the Interval timer for a start time 5 hours ahead of the current time. Wa la! The sprinklers ran at the time I set them to run.

    I went back and double checked the time settings. They all seemed fine in the Interval timer and on Samer’s web app. However knowing I was off the exact amount of my GMT differential, I went into the RPi via SSH using the following:

    sudo raspi-config

    Then selected 4 Internationalisation Options and I2 Change Timezone to set my time zone to US and then Central.

    Saved that in the RPi and programmed the sprinklers for current local time and they came on at the correct time as programmed!!

    So we have this issue fixed!
    Thanks for the help!
    Kevin

    However, ran into this issue when trying to change the GMT offset during my experimenting. See next post.

    in reply to: Python interval program update 8/25/13 #25440

    kkpwrh2o
    Member

    Dan,

    Thanks for the info.

    Checked all those items after your similar advice on another post. RPi time and schedule time preview etc all match.

    Hopefully it will work ok in the AM. If not I have screen shots I will share that should shed some light on the anomaly.

    BTW, love the RPi temp feature too.

    Thanks,
    Kevin

    in reply to: Python interval program update 8/25/13 #25438

    kkpwrh2o
    Member

    Dan,

    Followed your steps and code to the letter…(via SSH) worked like a charm!!! Thank you for making it so straightforward.

    My one program stayed intact and I am running it as I type this post using the new “Run Now” feature. Love the new feature.

    Now the challenge…for some reason I have yet to be able to have the very program that runs fine manually (and is running as I type this) run at the programmed time automatically. I am hoping I will wake up tomorrow AM to the sound of the sprinklers running the automatic program at the appointed time as a result of the update.

    I’ll advise with a followup post.

    Thanks again,
    Kevin

    in reply to: No program auto start on weekly program #25398

    kkpwrh2o
    Member

    Just to keep it apples to apples from my previous post, here is the cut and paste. Manual log has the correct time as well.

    Refresh Options Stations Programs Log
    Firmware version: 1.8.2
    Device time: Sat, 17 Aug 2013 17:24:49 GMT-5:00
    Program Preview Stop All Stations Run-Once Program
    Station Status:

    Front yard: (closed)
    Side N yard: (closed)
    Rear N yard: (closed)
    Rear yard: (closed)
    Side S yard: (closed)
    Pump: Off (Master)
    Garage #1: (closed)
    Garage #2: (closed)

    Operation: on
    Raindelay: off
    Rainsense: n/a
    Water level: 100%
    Log: Front yard ran Manual Mode for 0m12s @ Sat, 17 Aug 2013 16:39:40

    in reply to: No program auto start on weekly program #25397

    kkpwrh2o
    Member

    Dan,

    Thinking time is ok. Copied this from webpage

    Operation: on
    Raindelay: off
    Rainsense: n/a
    Water level: 100%
    Log: Front yard ran Manual Mode for 0m12s @ Sat, 17 Aug 2013 16:39:40

    Date looks good

    Thanks,
    Kevin

    in reply to: No program auto start on weekly program #25395

    kkpwrh2o
    Member

    Dan,

    Date, time, and year appear to be correct on my RPi.

    Here in St. Louis at the time i checked it 16:04. We are on CDT which puts us at -5 UTC

    16:05 + 5 = 21:04

    RPi time

    pi@raspberrypi ~ $ date
    Sat Aug 17 21:04:47 UTC 2013
    in reply to: No program auto start on weekly program #25394

    kkpwrh2o
    Member

    Hi Dan,

    Network connection is fine, as I have been entering the various program OS commands etc (running valves manually) via my laptop or iPhone.

    I’ll check the RPi time and post the results.

    Thanks,
    Kevin


    kkpwrh2o
    Member

    Love this project. Thanks for the detailed info.

    Any impact to the installation code given Dan’s recent software update?

    Thanks,
    Kevin

    in reply to: Starting ospi.py automatically #24716

    kkpwrh2o
    Member

    Ray,

    Changed the port to be forwarded to 8080.

    That was the ticket!! Success!

    Thank You Samer and Ray!! WooHoo!

    in reply to: Starting ospi.py automatically #24715

    kkpwrh2o
    Member

    seems I have already done this at some point, as I get the following “file exists” reply

    fatal: destination path '/var/www/sprinklers' already exists and is not an empty directory

    Perhaps I should delete the directory and let it reinstall?

    in reply to: Starting ospi.py automatically #24713

    kkpwrh2o
    Member

    After resolving a hardware problem, loading the latest ospi.py file, I modified my rc.local file with the above code and rebooted.

    It works!

    I can ssh to it via my iMac, It is running automatically, and I can control all (5) zones with the local home page.

    I have 8080 as the port in the rc.local file, however I am still not able to get the Web app to work.

    When I go to http://rayshobby.net/apps/sprinklers, the app opens but I am unable to add a new device when using my IP addr 71.85.xxx.xxx:8080. After I hit the Submit button I keep getting, “IP Check IP/port and try again”.

    Port 80 is forwarded on my router (and as I read in above posts, it being used by apache by default) so I am thinking that is the port the local OpenSprinkler web page is using.

    It has gotta be something simple at this point to get it running??

    in reply to: Starting ospi.py automatically #24711

    kkpwrh2o
    Member

    Changed my rc.local file to reflect the recommended code above.

    Couple of questions:
    Should my port be 8080 if I want to use Samer’s Sprinkler web app?
    How do I determine ospi is running?

    in reply to: Starting ospi.py automatically #24708

    kkpwrh2o
    Member

    aradke, Thanks a bunch for your continued assistance. I appreciate it greatly.

    Below is my rc.local file.

    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.

    # Print the IP address
    _IP=$(hostname -I) || true
    if [ "$_IP" ]; then
    printf "My IP address is %sn" "$_IP"
    fi
    host=$(hostname -I | sed 's/ *$//g')
    port=:8080
    cd /home/pi/OSPi/
    ## If you aren't sure that the path to python on your Pi is /usr/bin/, use $
    /usr/bin/python ospi.py $host$port
    exit 0

    in reply to: Starting ospi.py automatically #24706

    kkpwrh2o
    Member

    Figured out the password operation and how to change it.

    Customized my sprinkler configuration, GMT time, and zip code. Was able to save all and have it display. So that is working great.

    Only thing left is to have it run automatically.

    in reply to: Starting ospi.py automatically #24705

    kkpwrh2o
    Member

    running manually by

    $ cd OSPi

    sudo python ospi.py

    result

    Starting main loop

    From my iMac pointed browser to

    http://10.0.1.21:8080

    result: Appears to go to Open Sprinkler Web App Yes!!!!!!
    Now if we can figure out how to have it run automatically and me figure out the App password, we will be golden.
    On the RPi screen I can see the various msgs come up from inputs on the App from my other computer. Cool

    in reply to: Starting ospi.py automatically #24704

    kkpwrh2o
    Member

    Re installed apache

    resulting in

    ValueError: 8080 is not a valid IP addr/port

    [FAIL] startpar: service(s) returned failure: rc.local ... failed!

    netsat results after apache re-install with resulting failure above:

    tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      2082/apache2
    udp        0      0 10.0.1.21:123             0.0.0.0:*                          2203/ntpd

    Seems like the rc.local file is looking for an IP addr?

    in reply to: Starting ospi.py automatically #24702

    kkpwrh2o
    Member

    Thanks for all the help guys. Much appreciated.

    I think I am missing a key bit of info.

    The only place I know that I am inputing port info is in the rc.local file

    port=:8080

    is that the way one changes the port for ospi.py?

    When I re-install apache, where then is the port 80 entered and how?

    I’ll wait to hear back so as to follow the advice and do one thing at a time so as to not confuse things further.

    Thanks!

Viewing 25 posts - 1 through 25 (of 55 total)