OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) Interval – Plugin development

  • This topic is empty.
Viewing 10 posts - 26 through 35 (of 35 total)
  • Author
    Posts
  • #26658

    scottsh
    Participant

    Just FYI – I pushed several updates to the auto-program plug-in.

    Bugs
    – Fixed algorithm errors that resulted in incorrect durations.
    – Fixed small issues with data validation
    – Fixed issue with invalid WU URLs (bad dates!)
    – Fixed a major bug that prevented automatic operation (!!!)

    Features
    – Added ability to check WU for any rain today, and if so, to set the ‘rs’ or Rain Sensor active bit. Note this is only used if there is not a Rain Sensor configured.
    – Added UI to configure between english or imperial units; back-end code is not implemented yet

    Known issues
    – Unit settings are not used, saved or reloaded properly
    – Drip irrigation zone data is not calculated properly by the algorithms (gal/hr incorrectly treated as in/hour.)

    #26659

    scottsh
    Participant

    Another set of updates if you are following along at home:

    Bugs
    – Fixed minor UI save/load issues with the weather settings page

    Features
    – Added back-end code to allow switching between metric and imperial units for the UI display. The zone settings page is now displaying properly.

    Known issues
    – Disabled the Drip irrigation option for now to prevent selection until the back-end code is working
    – Despite unit setting to metric, the pull from wunderground is still in inches.

    #26660

    Lamby
    Participant

    @scottsh wrote:

    Another set of updates if you are following along at home:

    Yep – thanks!

    #26661

    Samer
    Keymaster

    I wanted to try this out and did a git clone of your repo as it is now (85ea9aedd79770c65916e895cdd0a32a9d238da1). This is the error I am getting on first run:

    No GPIO module was loaded from GPIO Pins module
    Ignoring exception while loading the auto_program plug-in.
    name 'sched' is not defined
    Setting water level to 100%
    Ignoring exception while loading the wx_settings plug-in.
    [Errno 2] No such file or directory: './data/auto_settings.json'
    Ignoring exception while loading the zone_settings plug-in.
    name 'sched' is not defined
    plugins loaded:

    http://0.0.0.0:8080/
    Starting timing loop
    #26662

    scottsh
    Participant

    Oops fixed a problem when the settings file didn’t exist (which it would on first-time startup.) I keep forgetting to test a fresh install.

    It should be fixed now – thanks!

    I don’t understand the ‘No GPIO module was loaded…’ message though? Did you expect that?

    Also, like Dan’s monthly program, I also need the apscheduler python module.

    Scott

    #26663

    Samer
    Keymaster

    Yes I did, sorry for the confusion. I test the software on my Mac (easier/quicker) and also I don’t have a Raspberry Pi :P.

    My intention is to test against my mobile app (make sure everything works).

    Thanks!

    #26664

    Lamby
    Participant

    Hi,

    I am not sure what I am missing. I can’t seem to get a page to render. All I get is a blank page with the word “None”.

    I have a plugin in the plugin directory and get:
    plugins loaded:

    So the plugin loads, and the test string prints out and I get “HTTP/1.1 GET /sunset” – 200 OK”

    It is pretty simple code (I have stripped everything back to try to get the web page to load)

    #!/usr/bin/env python

    #from gpio_pins import *
    from urls import *
    import web, json, time, gv

    urls.extend() # Add a new url for this plugin.

    class sunset:
    def __init__(self):
    self.render = web.template.render('templates/')

    def GET(self):
    print "testing Sunset"

    and




    Sunset.html


    OpenSprinkler Sunset Settings




    Location of your OpenSprinkler


    (This is in Latitude and Longitude, you can find this on <a
    href="http://mygeoposition.com/">http://mygeoposition.com/)



    Latitude
    Longitude



    #26665

    scottsh
    Participant

    @salbahra wrote:

    Yes I did, sorry for the confusion. I test the software on my Mac (easier/quicker) and also I don’t have a Raspberry Pi :P.

    My intention is to test against my mobile app (make sure everything works).

    Thanks!

    I use your mobile app as well – all the time in fact. It’s excellent and it works great alongside my plugin.

    One feature I’d like to see would be the ability to display the history log. I’m not sure if this is feasible or not.

    By the way, if this drives you to want to change the logging away from a CSV file to something else, I think Dan is open to it and I’d be willing to contribute to that as well. I have the CSV working for me, but it does feel a little unwieldy.

    #26666

    scottsh
    Participant

    @Lamby wrote:

    Hi,

    I am not sure what I am missing. I can’t seem to get a page to render. All I get is a blank page with the word “None”.

    I think at the end of your Get method you need to include a return that causes page to render.


    return self.render.sunset()
    #26667

    Samer
    Keymaster

    Thank you! I actually badly want to pull logging data in since I already have the UI built.

    The hold up is on the Arduino side. I want to try and make the method is similar for both Pi and Arduino user’s so it works well across the board.

    Awesome work on the plugin!

Viewing 10 posts - 26 through 35 (of 35 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) Interval – Plugin development