OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Interval – Plugin development
- This topic is empty.
-
AuthorPosts
-
May 13, 2014 at 7:16 pm #26658
scottshParticipantJust 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 yetKnown 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.)May 15, 2014 at 4:29 pm #26659
scottshParticipantAnother set of updates if you are following along at home:
Bugs
– Fixed minor UI save/load issues with the weather settings pageFeatures
– 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.May 17, 2014 at 12:22 pm #26660
LambyParticipantMay 20, 2014 at 2:27 am #26661
SamerKeymasterI 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
May 20, 2014 at 3:21 am #26662
scottshParticipantOops 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
May 20, 2014 at 4:03 am #26663
SamerKeymasterYes 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!
May 20, 2014 at 12:32 pm #26664
LambyParticipantHi,
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
May 21, 2014 at 4:08 pm #26665
scottshParticipant@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.
May 21, 2014 at 4:30 pm #26666
scottshParticipant@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()
May 21, 2014 at 5:38 pm #26667
SamerKeymasterThank 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!
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Interval – Plugin development