Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • in reply to: Mobile Web App with Screenshots (Updated) #24167

    slobrewer
    Member

    Rather than a sticky, I recommend using GitHub’s built in functionality for tracking bugs and feature requests: https://github.com/salbahra/OpenSprinkler-Controller/issues.

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

    slobrewer
    Member

    Shouldn’t any halfway decent file system cache the contents of a file so that the hard drive doesn’t spin up each time? The only time it should spin up would be if the file contents changed, which only happens on write.

    Totally unrelated to that I have a few bug reports:

    1. The values in the sprinkler log are getting adjusted by the timezone offset. For example, if my sprinkler went off at 1:00 PM and I’m in the -8:00 offset timezone then the log is showing that they went off at 5:00 AM. I took a look at the SprinklerChanges.txt file and see that it is recording times and dates without timezones. It appears that your log display code is incorrectly assuming those times in the file are UTC but in fact they’re being recorded in local time.

    2. Program preview shows all the zones starting at the same time. When I look at the interval program and when I actually observe the program running it actually does the zones sequentially. It seems like even though the Interval program for Pi doesn’t have the sequential option to select, it defaults to running the zones sequentially.

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

    slobrewer
    Member

    @salbahra,
    I just applied all your latest changes and everything works flawlessly. I’d love to throw some money your way. Do you have an email address I can PayPal you a few bucks for beer or whatever?

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

    slobrewer
    Member

    Perfect. I’ll poke around a bit later tonight.

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

    slobrewer
    Member

    Wait, scratch my latest comment. My Pi changed IP addresses so I had to update the config file. It’s in a bit of a goofy state now due to these index out of range errors.

    By the way, can you help me understand your code a bit better. When I do a view source I’m not able to easily see what gets run when I click various buttons. If I could see that I’d be able to trouble shoot much more quickly and even propose some changes myself.

    To clarify, if I could easily tell that when you clicked a certain button in your UI you’d call http://IP_ADDR/sn1=1 that would be a big help. I must be missing something obvious but I’m just not seeing that in the source.

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

    slobrewer
    Member

    That’s getting closer. I can now at least hit /sn0 and get the current status. But I still hit index out of range errors further down in the code.

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

    slobrewer
    Member

    Sorry, had to step away to take care of something. I’m going to try it right now.

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

    slobrewer
    Member

    @salbahra: I think you’ve got it there with the change in the syntax. Hitting http://IP_ADDR/sn1=1 gives a list index out of range error at ospi.py line 616. Using the syntax you suggested works.

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

    slobrewer
    Member

    Wow, thanks for the fast work there. I pulled your latest from Git and now it definitely shows a lot more of the settings like the station names, which is awesome. I am running into problems setting any values, though. For example, when I got to the manual control page and click the button to turn on my first zone it pops an error “Error communicating with OpenSprinkler. Check your password is correct.” Do you have any suggestions on troubleshooting that? I tried looking through your UI code but it wasn’t immediately apparent to me to tell what’s going on.

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

    slobrewer
    Member

    I already tried hitting snames.txt and data/snames.txt paths on the web server without luck. The file itself on the Raspberry Pi’s file system does have a list of station names (e.g [“S00”, “S01”, “S02”, “S03”, “S04”, “S05”, “S06”, “S07”]) I haven’t looked closely enough at the ported code to see how those are actually exposed. I think the Python code is registering some handlers for the various pages. If so that may be quick to deal with by either adjusting the handlers or augmenting with additional handlers to expose the data.

    Do you have a list of the assumptions you made about the Interval web app interface or is that spread through the code?

    Dave.

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

    slobrewer
    Member

    Salbhara,
    On your blog post (http://albahra.com/journal/2013/06/opensprinkler-with-custom-web-app) you mention that you think this should work fine with the Raspberry Pi version of OpenSprinkler as long at the Interval program is installed. I have the Interval program installed but your web app isn’t able to reach it. I dove a little into the code to see if there was anything obvious and it looks like your code is relying on non-user-interface features that may not have been ported to the OSPi version of Interval. For example, when you go to get the station names you’re looking for a pn.js file in Interval:

    $stations = file_get_contents(“http://”.$os_ip.”/pn.js”);

    It doesn’t appear that exists. Have you looked at this and have it working with a Raspberry Pi OpenSprinkler or were you just hoping all of that got ported?

    Thanks for your work so far on the much snazzier interface.

    Dave.

Viewing 11 posts - 1 through 11 (of 11 total)