Forum Replies Created

Viewing 20 posts - 251 through 270 (of 270 total)
  • Author
    Posts
  • in reply to: interval program problem: gv.lg = gv.sd[‘lg’] #25133

    Dan in CA
    Participant

    It looks like the sd.json file in the OSPi/data directory is missing a couple of logging related keys. If you saved your setting by backing up and then restoring the files in the data directory, or just replaced the ospi.py file that could cause this problem 😳

    You should be able for fix the problem by editing the sd.json file. It is just a text file. Add the following:
    , “lg”: “”, “lr”: “100”
    just before the final curly brace , }

    You could also just replace the file with the the one from the update but you will loose some of your settings.

    In the July 21st update of the ospi.py file I added some error checking which should have eliminated the error.

    Dan

    in reply to: Just curious, does the opensprinkler pi actually use… #25131

    Dan in CA
    Participant

    At this point the Python interval program does not use the RTC. It will probably be added at some point.

    The purpose of the RTC is to provide a stable time source when there is not an internet connection.

    Dan

    in reply to: OSPi Interval – Data Backup and Restore #24902

    Dan in CA
    Participant

    Keep in mind that with some updates it is only necessary to replace the ospi.py Python file and it is not necessary to backup and restore the config files.
    In other updates there have been changes to various other files and it is best to do a full re-install. This will likely be the case when the parallel/sequential option is added.

    I just discovered that it is easy to auto detect the Pi board rev and have implemented code to set the GPIO pin configuration automatically. This eliminates the need to manually edit the code tor use with Rev 1 boards.

    Dan

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

    Dan in CA
    Participant

    Hi,

    I’m currently working on the Run once program code to add some missing master (station/valve/zone) functionality. I’ll look at this issue also.

    Thanks for reporting it.

    I must say that Ray has managed to cram a lot of features into a small amount of micro controller code. You don’t really appreciate it until you try to replicate it.

    Dan

    in reply to: Activate Master? Option #24788

    Dan in CA
    Participant

    Hi Ingo,

    This problem has several parts to it. I am working on it as quickly as my time allows.
    It may take another day or so to fix completely. I’ll post a message here when a new update has been posted with the fix.

    Sorry for the problems but this is still under development.

    Dan

    in reply to: Activate Master? Option #24785

    Dan in CA
    Participant

    It’s a bug alright.

    I’ll work on a fix.

    Dan

    in reply to: Activate Master? Option #24784

    Dan in CA
    Participant

    djagerif,

    Could be a bug. I’ll check.

    How are you switching the zone on? by a program or manual?

    Dan

    in reply to: Strange discrepancy with program and preview #24799

    Dan in CA
    Participant

    Hi Andrew,

    I just checked the preview on my OSPi and it seems to be displaying correctly.

    I have the latest update installed.

    Dan

    in reply to: Custom Additions to Interval Program for OSPi? #24606

    Dan in CA
    Participant

    djagerif,

    Sorry no one got back to you in a timely manner. Although I wouldn’t have had a good answer for you.

    What you worked out is something I was planning to investigate because I want to add some additional features without modifying the ospi.py program itself. I will add the code for importing a custom module to ospi.py and include a file named ospi_addon.py in the distribution so that anyone who wants to add custom features will have a starting point.

    This is a great addition to the project. Thanks for your contribution.

    Dan

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

    Dan in CA
    Participant

    Hi all,

    I’ve been offline for a few days. Traveled to Arizona and got to observe some dry farming methods that use little or no irrigation at all. When we arrived in AZ the temperature was predicted to be 120 deg.F (48.9 deg. C) but it didn’t reach that and there were thunder showers.

    I am looking through the posts from the last week or so and will try to fix any open bugs. I will also be working on adding the sequential option that is in version 1.8.3 of the OS firmware.

    The next update will also include aradke’s suggestion for adding the faveicon. All that required was is to download the icon file and place it in the icons directory under OSPi/static/images then add the following line to the “home” class in ospi.py.


    homepg += 'n'

    The last update was supposed to get posted to Ray’s Github account. I am just learning to use Github and things should work better going forward.

    Thanks to salbahra for all the help with bugs.

    Dan

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

    Dan in CA
    Participant

    The latest update on GitHub should have the hang bug fixed.

    Dan

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

    Dan in CA
    Participant

    I have already taken out the “print nstlst” line.
    I was using it to help figure out how to implement the last run log for manual mode operations with an optional timer value. I think I have that working now even if you start more that one station.

    I’m also testing a fix for a bug that does not clear the station status on the main page after running several irrigation programs. I won’t be sure how that works until tomorrow morning. Every time I test it manually it works as it should.

    Dan

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

    Dan in CA
    Participant

    cmwahlqu,

    The -1 in the number of log records indicates that the log file has a problem. Click the “Delete All” button to clear the file.

    If you start the interval program manually and then log out of the pi, the program will stop running. See the last instruction in the readme on GhtHub:
    https://github.com/rayshobby/opensprinkler/tree/master/OpenSprinkler%20Pi/software/demos/interval_program
    Once you have the interval program setup to start automatically and run as root, your irrigation programs should run as expected.

    Simon,

    The “Unaurthorized” message indicates that you did not enter the password (opendoor) before clicking the Submit Changes” button.

    Dan

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

    Dan in CA
    Participant

    Thanks for the bug reports. I will see what I can do.

    Regarding the daylight time situation, I thought that might be a problem. Maybe the best thing would be to remove it. Even in locations that use daylight time there is really no reason for an irrigation schedule to change. It can just stay on standard time.

    Dan

    in reply to: Raspi as Wifi Bridge, Logger and Web Server #24485

    Dan in CA
    Participant

    Thanks for sharing Kenbob.

    No need to apologize for your programming experience. You are figuring things out, tweaking the code to make it do what you want and hopefully having some fun along the way. That’s what counts.

    I have downloaded the zonecheck.zip file and will check it out. The Sprinklers.php was written by David B. Gustovson and I am not that familiar with PHP.

    I’m sure your efforts on this will be helpful to others.

    Thanks again.

    Dan

    in reply to: Raspi as Wifi Bridge, Logger and Web Server #24483

    Dan in CA
    Participant

    That’s really cool!

    I was wondering if you could share the changes you made to the zonecheck.py scripts. I wrote that a while back when I was just getting started with Python programming and did not include any error checking. I’m sure your updates would be useful for other users as well.

    Dan

    in reply to: Rayshobby Wiki Page #24461

    Dan in CA
    Participant

    Hi Ray,

    The Wiki is a great Idea!
    I have a post about using a flash drive for storing log file on the Pi but when I tried repeatedly to create an account so I could post it, I got the following error.

    A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:

    (SQL query hidden)

    from within function “User::addToDatabase”. Database returned error “1142: INSERT command denied to user ‘dbo465905316’@’74.208.180.188’ for table ‘user’ (db465905316.db.1and1.com)”

    I hope it gets fixed soon.

    Dan

    in reply to: Unable to Change Password on Interval Program #24472

    Dan in CA
    Participant

    Hi kenbob,

    I see the problem.
    If you are into some Python hacking, change line 449 from this:

    if qdict !=” and qdict == qdict: save(‘pwd’, base64.b64encode(qdict))

    to this:

    if qdict !=” and qdict == qdict: sd = base64.b64encode(qdict)

    Just the part after the colon has changed. The program no longer uses the pwd.txt file.

    I will be submitting an updated version of the program in the next day or so. The updated version will also include a logging capability.

    Dan

    in reply to: Using a Raspberry Pi with OpenSprinkler #23203

    Dan in CA
    Participant

    The combination of Raspberry Pi and OpenSprinkler seems to be working quite well.

    I posted the steps I used to get the pi and OpenSprinkler working together on my blog. At this point the Pi serves the JaveScript files and icons for the UI and handles logging of irrigation events.

    I am in the process of writing a python module for interacting with OpenSprinkler. It will allow to write python programs which can be run on the Pi or other computer on the network that will be able to check and set irrigation schedules on OpenSprinkler. So far I have python functions that can change the Water Level %, set Rain Delay, read and change Run-Once Program settings and do things like set manual mode, reboot, and dis/enable OpenSprinkler. Once the module is ready I will be able to start working on some programs that tweak irrigation schedules based on evapotranspiration (ET) estimates from a local weather station. I will post here when the python module is available.

    Dan

    in reply to: Rain Delay check via internet #23228

    Dan in CA
    Participant

    Here is a resource that might be useful:
    http://www.usbr.gov/waterconservation/docs/SmartController.pdf

    It examines weather based irrigation systems. Be sure to check out the section “Weather-Based Irrigation Control System Principles” starting on page 7 of the document (page 17 in the PDF).

    Dan

Viewing 20 posts - 251 through 270 (of 270 total)