Forum Replies Created

Viewing 25 posts - 51 through 75 (of 100 total)
  • Author
    Posts
  • in reply to: OSPi Incorrect Logs. #25531

    djagerif
    Participant

    I am getting this at the moment. In the second one I have all three stations running.

    Ingo

    in reply to: Python Interval Program now has "Ignore rain" option #25526

    djagerif
    Participant

    Look 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

    in reply to: 304 Not Modified? #25521

    djagerif
    Participant

    Strange, earlier releases never used to display this.

    Thanks,
    Ingo

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

    djagerif
    Participant

    I 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

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

    djagerif
    Participant

    Thanks, 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

    in reply to: HTML API differences beteen OpenSprinkler and OSPi #25314

    djagerif
    Participant

    Not 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

    in reply to: HTML API differences beteen OpenSprinkler and OSPi #25312

    djagerif
    Participant

    Please 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

    in reply to: Python interval program update 8/01/13 #25228

    djagerif
    Participant

    I 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

    in reply to: Mobile Web App with Screenshots (Updated) #24255

    djagerif
    Participant

    Hi 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

    in reply to: Mobile Web App with Screenshots (Updated) #24250

    djagerif
    Participant

    Would 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

    in reply to: My own redesign #25125

    djagerif
    Participant

    How 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

    in reply to: Mobile Web App with Screenshots (Updated) #24226

    djagerif
    Participant

    32 stations doesn’t fit too well in the Log Graph option but it’s a great addition to an already great program.

    Ingo

    in reply to: My own redesign #25121

    djagerif
    Participant

    Nice work!!

    I would love to do this as well, just to add a Rain Sensor for one 🙂

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

    djagerif
    Participant

    You make a good point. Perhaps it should be looked at differently EG. Have any character you want except and .

    in reply to: OSPi interval program – ospi_addon problems #24904

    djagerif
    Participant

    Also, if you want to reference something back in the ospi.py script then do the following:

    custpg += ‘n’

    in reply to: Mobile Web App polling? #24906

    djagerif
    Participant

    No worries, I found it. It’s the watcher app running in a cronjob.

    * * * * * cd /var/www/sprinklers; php /var/www/sprinklers/watcher.php
    in reply to: Mobile WebApp User Management. #24824

    djagerif
    Participant

    Can’t wait…

    in reply to: OSPi Interval and Mobile WebApp Station names. #24816

    djagerif
    Participant

    Unfortunately not on my IE 10 or Chrome browsers. I tested both OS and OSPI. See below for OS results:

    in reply to: Activate Master? Option #24789

    djagerif
    Participant

    Hi Dan,

    Not a problem. You are welcome to PM me as well if you need more testing done.

    Ingo

    in reply to: Activate Master? Option #24787

    djagerif
    Participant

    Dan,

    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

    in reply to: Activate Master? Option #24786

    djagerif
    Participant

    Thanks Dan.

    Ingo

    in reply to: Mobile Web App with Screenshots (Updated) #24166

    djagerif
    Participant

    I 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.

    in reply to: Mobile Web App with Screenshots (Updated) #24138

    djagerif
    Participant

    Either 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

    in reply to: Mobile Web App with Screenshots (Updated) #24127

    djagerif
    Participant

    I like the green status bar led and was wondering how would multiple active stations be presented?

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

    djagerif
    Participant

    Thanks 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
Viewing 25 posts - 51 through 75 (of 100 total)