Forum Replies Created
-
AuthorPosts
-
SamerKeymasterWhy are you installing sqllite3? That’s not needed for my web app.
SamerKeymasterPersonally, I always do DHCP reservations through the router. It seems to be a lot less of a headache in the end. Just flip the device over, jot the MAC down, add to your router and plug the device in.
Devices like XIOS DS or AT&T Microcell refuse to let you set a static IP hence why I got pushed in this direction.
Just a suggestion going forward.
SamerKeymaster@djagerif I found the bug in the program preview and fixed it. Thank you for telling me about Dan’s fix, it happened to be the exact same fix.
Speaking of bug fixes I also fixed the unicode issue to support Dan’s changes. I also fixed the bug in my code with commas in station names. This fix does require PHP >= 5.3.0. Hopefully, this doesn’t become an issue but if it is please let me know and I can write an alternative.
SamerKeymasterThanks again for the generous donation!
SamerKeymaster@djagerif Okay I will check it out!
@Zapp Okay, that is weird. The time in the log is supposed to be UTC. The time zone is then subtracted out. I will check tonight if this is being done correctly. Just to be sure, is the time showing up correctly in table view? That has been untouched for a while now so hopefully it is just the graph that is wrong.Thanks!
Update: I just checked and I am using the exact same timestamp for graph and table view. I am adding the timezone into the timestamp so I believe everything should work correctly.
Update 2: @Zapp from what I can see the graph on your screenshot shows 4 not 3. I know it is on the left side of the 4 but that is because there are empty bars for each hour for the zones not hidden. Unhide everything but the 4 o’clock zones and you will see what I mean. This isn’t something I can fix just how flot works with a limited screen width.
Update 3: This is the reason I choose “None” as the default sort. I think the Hour, DOW and Month are useful sorting methods however can be a little confusing at first.
SamerKeymasterI have updated the run-once page to include a drop-down selection of all your programs. This also includes the last run program.
This is how it works:
– It checks which stations you have enabled for that program
– If the station is enabled then it sets the duration to the defined duration[attachment=1:3tpq4alu]iOS Simulator Screen shot Jul 31, 2013 8.30.50 PM.png[/attachment:3tpq4alu]
[attachment=0:3tpq4alu]iOS Simulator Screen shot Jul 31, 2013 8.30.50 PM.png[/attachment:3tpq4alu]
SamerKeymasterI just added your requested run-once features! You can use preset programs and the scale has been reduced by 50% on the sliders. Let me know how everything works.
SamerKeymasterI just added the hover over tooltips @djagerif. Let me know how they work!
Update: Another update just fixed the issue where the hover over wouldn’t update unless the data point’s were far away. I also now use the legend color as the background color for the hover over.
Update 2: This feature works on iOS as well by tapping the bar or data point. Tap anywhere else to hide it.
SamerKeymasterIt is on the first page of my mobile app post: viewtopic.php?f=2&t=154
It is also in the mobile app itself on the about page. This is accessed via the side menu on the top right.
This should work fine though: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&[email protected]&item_name=OpenSprinkler%20Controller&page_style=PayPal&no_shipping=1¤cy_code=USD&lc=US&bn=OS_Donations&charset=UTF%2d8
Thank you!
SamerKeymasterBy the way @Zapp the hour sort only looks at the hour. So, after reading your post again I notice you said 3:35. This is not true, the graph only has the X value of 3, for example. So your zone 1 has the following data: 3,22 which is 3rd hour 22 minutes. I hope that explains it a little better.
SamerKeymasterAwesome! Glad it is working now. The learning curve is a little steeper than a commercial product however once you master it, the benefits are endless!
SamerKeymaster2) I will consider lowering this because I do agree both are too high. Maybe once I have a system to run defined programs in an ad-hoc way via the run-once I will change the ranges back down to 30-45.
Update: I just read your #3 comment again. Glad it is working! Like I said in the other post the program interval has to be greater than 0.
SamerKeymasterYou have to set this parameter or the program will never run. Just set this to something very high to ensure the program never runs again. I agree this is VERY confusing and took me forever to understand it. It also led to programs not running at first until I understood this.
I am not sure why this option exists entirely and it not something I have ever used personally. However, with that said I do support it. I will consider renaming it like you suggested, thanks!
SamerKeymasterAll of this applies to both the interval program and the OS firmware: http://rayshobby.net/?page_id=730
SamerKeymasterNo problem and that is awesome to hear! In case you haven’t noticed jQuery Mobile 1.4 just hit alpha and should bring some much needed changes to the theme and page transitions!
SamerKeymasterOkay my description sucked, sorry. What I mean is, how long to wait (minutes) before running the program again.
SamerKeymasterFor issue #1, can you give me any additional information such as error logs from Apache (/var/log/apache2/error.log) or your javascript errors? Need something to debug with please.
For issue #2, I used to have the slide 0-30 however people requested a lot higher (300). I went in the middle and set the scale for 0-100. If the slider is hard to use you may tap the input box and manually enter a number that way.
For issue #3, to rule out a problem with my web app try to navigate to the interval program and check the preview there. You would use port 8080 instead of 80 to access the interval program instead of my web app, thanks.
Update: After our discussion on the other post I assume your issue #3 is due to the interval time being 0 minutes. Set this to something very high to run it only once (1439).
SamerKeymasterSo, to give you some background: I developed the mobile app as a front end to the OpenSprinkler firmware. Afterwards, the interval program came out for the Pi that’s based on the OS firmware.
My web app works with both however as you might have noticed it controls nothing directly. Just relays commands from your phone to the firmware.
With all of that said, I don’t dictate how programs are organized/stored. I actually like Rays system and he also describes why it’s done the way it is in some blog posts (it’s for storage space).
As for the program names, I can’t add that for now and waiting on a firmware upgrade. You have it correct about the duration, it’s per station.
The interval is how often the program is run within the time window. The window is defined as the start and end time (hence why that exists). If the program starts it won’t stop even if it passes the end time.
I am looking into the run-once ad-hoc programs and will hopefully have something out soon.
Hope that makes sense.
SamerKeymasterUnder the settings, you need to specify how many extension boards you are using. This is done via the web app or the interval program:
Interval Program:
1) Hit the options button on the top of the page (second button)
2) Change “Ext. boards” to 1Web App:
1) Click the gear icon on the top right corner
2) Hit Device settings
3) Slide extension boards to 1
SamerKeymasterThat’s a good idea! I’ll see if that’s something I can do and post back here what I find.
SamerKeymasterOn the home page there should be a logging button on the top right. After clicking this, you should see another button on the top right of the log page called, “log options”. Inside this popup you will be able to toggle logging on/off.
You can also use third party logging such as my mobile app, which can plot the data graphically or show you a tabular view of the data.
SamerKeymaster@virtus @Zapp is absolutely correct. This functionality is already built in. Also, if you click the mobile version number it will send you to the change log but open the specific change indicated by that version number.
I will consider an update button but again right now my software isn’t perfect and remote updates could lead to problems.
SamerKeymaster@Zapp I think you are misinterpreting the graph. The grouping by hour is showing you how many minutes a station ran that started at a specific hour. In other words, the x-axis is hour 0-23 and each hour is how many minutes it ran after starting on that hour. Grouping by none shows you what you want I believe which is a function of time. Grouping by month is similar to hour but shows you how many minutes a station ran in that month. DOW is similar to both hour and month but its day of the week (Sun-Sat).
Hope that helps!
SamerKeymasterThe interval program is currently at 1.8.2 (latest). I understand the changes in 1.8.3 and 2.0.0 are currently being worked in but in the meantime the best place to check for bug fixes etc are the forum.
The best way to update is to use Github and pull changes as they are announced. As things streamline I am sure the process will get easier. Right now a lot of new developers who have never worked with each other, using different languages and tools came together and built some epic things! But there are rough edges.
Hopefully Ray sees this and maybe updates that blog post. I asked because as I read it I realized a critical piece was missing. He did post a newer blog post however with a nice YouTube video! http://rayshobby.net/?p=6749
SamerKeymasterDid you perform this setup first: http://rayshobby.net/?p=6339
This is for the interval program, which is what actually controls the OpenSprinkler.
-
AuthorPosts