Forum Replies Created
-
AuthorPosts
-
djagerifParticipantI am getting this at the moment. In the second one I have all three stations running.
Ingo
September 11, 2013 at 12:11 pm in reply to: Python Interval Program now has "Ignore rain" option #25526
djagerifParticipantLook in /data/sd.json and check to see if “htp” is what you intend it to be. Mine pointed to the wrong port and once I set it manually it worked. I run mine on 8080.
pi@raspberrypi:~/OSPi/data$ cat sd.json
{“en”: 1, “seq”: 0, “mnp”: 32, “rsn”: 0, “htp”: 8080, “nst”: 32, “rdst”: 0, “loc”: “Irene,ZA”, “tz”: 56, “rs”: 0, “tu”: “C”, “rd”: 0, “mton”: 0, “lr”: “100”, “sdt”: 0, “mas”: 8, “bsy”: 1, “lg”: “checked”, “wl”: 100, “nopts”: 13, “pwd”: “b3BlbmRvb3I=”, “ipas”: 0, “urs”: 1, “rst”: 1, “mm”: 0, “mo”: [255, 255, 255, 255], “rbt”: 0, “mtoff”: 0, “nprogs”: 4, “nbrd”: 4}
pi@raspberrypi:~/OSPi/data$Ingo
djagerifParticipantStrange, earlier releases never used to display this.
Thanks,
Ingo
djagerifParticipantI don’t know how the web stuff works but I would just click on F and it toggles to C and vice versa. Saving it is a different story.
How about a cookie or something that remembers you preference?
Ingo
djagerifParticipantThanks, it works like a charm.
PS.If you have any changes in ospi_addon.py then it will be overwritten, remember to copy this file back as well.
Dan, Is there way to select between C and F for the CPU temperature and have the setting saved somewhere?
Ingo
djagerifParticipantNot as far as I can tell. Dan did a pretty good job of emulating the OS Micro so it’s pretty straight forward. Just keep in mind the functions not implemented at the moment like HTTP port, Location etc. The best thing about OSPi is the fact that he introduced the ‘ospi_addon.py’ extension where I have all my custom code without having to modify the base ‘ospi.py’ program.
Ingo
djagerifParticipantPlease don’t remove the DOCTYPE statement as this is the only way I can differentiate between OS and OSPi. Rather let the Client handle the formatting differences because the output is read via HTML Browser and you should actually always format the text accordingly. The fact that a browser can display normal text is just a bonus.
Ingo
djagerifParticipantI like the fact that if a station is running, and you go to Manual Mode, it keeps running for the remainder of the program time.
Ingo
djagerifParticipantHi Samer,
I will check the tooltips today and give feedback. One thing I noticed just by accident is that under preview my Master station is displayed with a too short interval. It runs fine but the display is not correct. it looks like 14 minutes. Dan did have an issue where the Master Offset in his Interval program is slightly different to the Micro version, perhaps you might need to do the same ‘fix’.
Ingo
djagerifParticipantWould it be possible to have a ToolTip when you hover over the zone bar? For 32+ zones the colours start to look too similar to identify easily.
Ingo
djagerifParticipantHow about extending the Rpi header and add the following for your Zone Indicator requirement?
http://www.hobbytronics.co.uk/raspberry-pi/tft-serial-display-18
djagerifParticipant32 stations doesn’t fit too well in the Log Graph option but it’s a great addition to an already great program.
Ingo
djagerifParticipantNice work!!
I would love to do this as well, just to add a Rain Sensor for one 🙂
djagerifParticipantYou make a good point. Perhaps it should be looked at differently EG. Have any character you want except
and .
djagerifParticipantAlso, if you want to reference something back in the ospi.py script then do the following:
custpg += ‘n’
djagerifParticipantNo worries, I found it. It’s the watcher app running in a cronjob.
* * * * * cd /var/www/sprinklers; php /var/www/sprinklers/watcher.php
djagerifParticipantCan’t wait…
djagerifParticipantUnfortunately not on my IE 10 or Chrome browsers. I tested both OS and OSPI. See below for OS results:
djagerifParticipantHi Dan,
Not a problem. You are welcome to PM me as well if you need more testing done.
Ingo
djagerifParticipantDan,
I just downloaded the latest ospi.py and noticed that the Master still is not activated when I manually activate a zone. See below.
Ingo
djagerifParticipantThanks Dan.
Ingo
djagerifParticipantI second that.
Perhaps have Ray make a ‘sticky’ (maybe read-only as well) post with the list of requested additions and also include differences between OS, OSPi and ‘hosted’ webapp features. You might even do it currently with the first post of the WebApp but no one really reads page one of a 33 page thread.
As these get updated we will always have one place to look at for the latest information. Bugs and new requests go into the existing, or new discussions and will end up in the sticky post when added.
djagerifParticipantEither way for the weather icon looks fine. Having it at the top uses up valuable space though but I also prefer it at the top. Perhaps add it as a selectable option so the user can decide how the layout should look.
When at the top, perhaps add some more info like your normal Clock Widgets. See below
Ingo
djagerifParticipantI like the green status bar led and was wondering how would multiple active stations be presented?
djagerifParticipantThanks for making me investigate further. By changing the ospi.py urls variable to a ‘list’ variable I am now able to extend the list from the custom.py script.
The ospi.py script change below, notice just the urls variable change and the addition of the custom script section.
urls = [
'/', 'home',
'/cv', 'change_values',
'/vo', 'view_options',
'/co', 'change_options',
'/vs', 'view_stations',
'/cs', 'change_stations', # name and master
'/sn(d+?Z)', 'get_station', # regular expression, accepts any station number
'/sn(d+?=d(&t=d+?Z)?)', 'set_station', # regular expression, accepts any digits
'/vr', 'view_runonce',
'/cr', 'change_runonce',
'/vp', 'view_programs',
'/mp', 'modify_program', # open 'Modify program' window
'/cp', 'change_program',
'/dp', 'delete_program',
'/gp', 'graph_programs',
'/vl', 'view_log',
'/cl', 'clear_log',
'/lo', 'log_options1',
]
#### Load Custom Import file if it exists ####
try:
with open('./custom.py'):
import custom
except IOError:
print 'Custom Imports not found.'
And in the custom.py script I have the following:
import ospi
ospi.urls.extend()
class custom_1:
"""View all the options above and also station names."""
def GET(self):
custpg = 'n'
custpg += 'n'
custpg += 'n'
custpg += 'n'
return custpg
class custom_2:
""" Custom Script 2 """
def GET(self):
custpg = 'n'
#Insert Custom Code here.
return custpg
class custom_3:
""" Custom Script 3 """
def GET(self):
custpg = 'n'
#Insert Custom Code here.
return custpg
-
AuthorPosts