Forum Replies Created
-
AuthorPosts
-
SamerKeymasterThat’s odd because I do have settings being saved to ~/Library/Sprinklers/LocalStorage. Does this folder exist on the system with the app installed?
Also, which version of OS X are you using? By the way, Apple is terribly slow at updating the OS X app. They emailed me yesterday letting me know it will be a while before they review 1.1.8 (latest on store is 1.1.6).
Thanks!
SamerKeymasterSure, I will write one up this weekend and post it here when complete.
SamerKeymaster@TechFan wrote:
Apparently, 2.0.8 supports putting the content on SD, but not planned for the next versions.
I don’t think you are being fair in your assessment here. The SD card feature isn’t going anywhere. I simply said the current UI is too bloated to be served as is from the SD card due to Ethernet library issues. That isn’t to say you can’t use the current UI anyways, use the older UI, or make your own UI. All of these options work off the SD card.
You can also host the files on a local server in your local network and the OpenSprinkler can grab the files from there by using the change javascript URL feature available here: http://opensprinkler_ip/su. If you want, I will make a guide on how to host the UI on your own local network. Let me know.
Even if all these features didn’t exist, and you wanted to control a cloud device then you can simply sniff the traffic, monitor the dns it hits to call home, and redirect that DNS to your own server. Try to see if you can get the device to communicate and work from there. Honestly, that is how I developed my first version of the web app (the PHP based one).
The first two options exist now and in the future. They allow you to have complete control of how and where your device gets assets. The third is if you like to play 😛
Update: Also, the app (which has all the files bundled inside) is supported on a large number of platforms both mobile and desktop, listed here:
Amazon Appstore: http://www.amazon.com/dp/B00JYFL8LW
Apple App Store – iOS: https://itunes.apple.com/us/app/sprinklers/id830988967?ls=1&mt=8
Apple App Store – OS X: https://itunes.apple.com/us/app/sprinklers/id903464532?ls=1&mt=12
BlackBerry AppWorld: http://appworld.blackberry.com/webstore/content/53161895/
Firefox Marketplace (both browser and OS): https://marketplace.firefox.com/app/sprinklers/
Google Play Store:https://play.google.com/store/apps/details?id=com.albahra.sprinklers
Google Web Store (Chrome): https://chrome.google.com/webstore/detail/sprinklers/iegciplggbmhpihoeamfpjdedihblhhp
Windows Store: http://apps.microsoft.com/windows/en-us/app/sprinklers/ebc0d2d1-9678-4e72-9a9d-6d60e946b8c0
Windows Phone Store: http://www.windowsphone.com/en-us/store/app/sprinklers/3dbc5da0-b33f-4ca8-9e54-e80febf0a0c5
SamerKeymasterA) The date (element 4 in the array) is a unixtime (which is seconds from Jan 1, 1970) UTC timestamp.
B) The third element in the array is the seconds the station has run
C) The second element in the array is the station ID. If you have 16 stations, for example, then it will show 0 to 15 here (n-1). Also, the rain sensor and rain delay output here as 16 (n) and 17 (n+1) respectively.
D) The first number is the program number. There are special numbers which are as follows:
99 and 255: Manual Program
98 and 254: Run-once ProgramOtherwise they correspond to the program number minus one (n-1).
SamerKeymaster@TechFan wrote:
If I had understood more about the limitations, I may have chosen differently, but I also wanted a device that could be controlled directly from the device, so it could be used without a network if needed. Thanks again for taking the time to respond.
Not to beat a dead horse but not only is it possible but currently the solution exists to allow you to use the device without an internet connection or external assets.
For the desktop (or any browser based experience), I have caching enabled so after the first load your browser saves the files. Check it out if you want.
For the app store apps, the files are all bundled inside the app and no external assets are needed.
I hope this helps.
SamerKeymasterI have pushed out 1.1.8b for the UI which lets things work by changing spaces to underscores before being sent to the firmware. This should be a temporary fix until 2.0.9 is out.
Also, program headers update correctly now too. Dutch and Afrikaans are also included in this version now.
Thanks!
SamerKeymaster@TechFan wrote:
I’ll look into how I can put them on SD. My internet was really slow and up and down last night.
Not to ruin your plans but there are limitations. The new UI introduced in 2.0.8 cannot run off the SD card due to network issues. The controller has a hard time serving 10-12 simultaneously requested files (css, js, images, etc). As a result, you will have to use the older UI and 2.0.8 will be the last firmware capable of supporting it.
With this said, I understand the recent firmware introduced bugs but ideally this won’t happen again. This firmware had several moving parts but going forward things will be a lot smoother.
@TechFan wrote:
I may be one of few, but I still want to control what happens on my devices locally.
The thing is, you never lose control. The UI is like an app on the App Store. It is subject to change. Just like Facebook and every major website/app. The UI/UX adapts to usage patterns and improves over time. I don’t see how this improvement can be a bad thing. Now, if you want to argue from a poor connection perspective I understand and offer the “older” UI for now.
SamerKeymaster@TechFan wrote:
So the GUI is auto updating or is hosted on the internet? I don’t like the idea that I can’t use my device if something outside my network is not accessible.
Since conception, the OpenSprinkler has used Javascript files hosted on the Internet to render the UI. Version 2.x supported hosting those files on the SD card. This protects against the network going down since files are hosted locally. This also address your secondary point (discussed below) since the files can’t update unless you update them.
@TechFan wrote:
In general, I don’t want my tools updating with my direct approval.
I understand your point here but understand the UI is simply a front-end. The code executing your programs on the Arduino does not change unless you plug in via USB and update the firmware. Using the online method, you benefit for incremental updates and bug fixes.
SamerKeymaster@Ramias wrote:
@salbahra wrote:
@Ramias Sorry for the confusion however presently the email configuration is for your personal reference however currently you cannot import the email contents. This will be added soon however right now the backup currently gets saved to the browser’s storage and gets restored from there as well (the larger export button to the left of the small icon for email).ok. So I power cycled my open sprinkler and from one machine it still showed Boston and no sprinkler names, but now from another it shows my correct city and the name for sprinkler 1 (but no others).
Is this normal?
This is the same issue that TechFan is having and we will have a fix for this very soon. Sorry for the trouble!
SamerKeymaster@TechFan wrote:
I was thinking that this bug only affected the config restore, but it is really any space settings. I found that the first station name that has a space prevents any other later station names to be saved.
You are absolutely right. This is an awful bug and apologize for not weeding it out before release. Since this is a firmware bug, I have added a fix into the UI to replace spaces with underscores allowing the program to function. The next firmware release will fix this issue once and for all. The UI will be pushed out soon which should immediately fix everyone’s issue. The app will have an update to follow as well however that will need to be approved by the store, etc.
@TechFan wrote:Btw salbahra, edit programs doesn’t display disabled programs in red until one of the programs gets saved.
Thank you for this. I was able to observe this bug and have fixed it. Should have it pushed out very soon.
Thank you for your patience as we address these issues!
SamerKeymasterThat tells me your browser is disabled localStorage. I believe the way to turn it back on is to follow these steps:
1) Navigate to: about:config
2) Scroll down to: dom.storage.enabled
3) Ensure that this is enabled
Also, Firefox seems to disable localStorage if you disable cookies. This will also prevent the UI from working.
SamerKeymasterThis is a browser issue. First off, requestNotifier.js is not my code that is a FireFox plugin. Second, the HTML encoding is not true, I do declare but it has to be injected via Javascript so FireFox is complaining before the page finishes loading. Third, the reason your page isn’t loading is due to: SecurityError: The operation is insecure. home.js:159.
The code on this line of Javascript is this:
sites = JSON.parse(localStorage.getItem("sites"))
This tells me you likely have malformed data inside your “sites” configuration. The easiest way to fix this, since you have knowledge of the console, is to issue the following command inside the console:
localStorage.removeItem("sites")
Please let me know if this helps.
Thanks!
SamerKeymaster@TechFan Are you referring to the station names not having spaces in them or are you saying they are not changing at all? From my testing station names do save however the spaces get truncated due to a firmware bug in 2.0.8.
@Ramias Sorry for the confusion however presently the email configuration is for your personal reference however currently you cannot import the email contents. This will be added soon however right now the backup currently gets saved to the browser’s storage and gets restored from there as well (the larger export button to the left of the small icon for email).
SamerKeymaster@TechFan wrote:
So is this a glitch in 1.1.7 on ios as well? Btw, since firmware update to 2.0.8, my station names don’t restore. The first station restored as Garden instead of “Garden 1” and all they following names didn’t restore. Seems it isn’t handling space in the name anymore? Once I downgraded to 2.0.7 last night, I could restore, but back to 2.0.8 today and again can’t restore.
Okay I looked into this and you are absolutely correct. I am able to recreate the issue and furthermore this is not a UI issue but rather a firmware issue. I will discuss with Ray but this is likely related to the fix for complex passwords (including passwords with plus signs which happens to be the encoder for spaces in URLs).
Thanks for the report and sorry for the inconvenience.
SamerKeymasterThey do however moving forward you should try to use http://ipaddr/jc, /jo, /jn, and /jp. These are more resilient methods since the syntax is reliable versus the homepage being variable.
If these don’t work with MCV Vera let me know.
Thanks!
SamerKeymasterJust retranslate it or vote on a new one. I believe that should replace an older translation once I update.
SamerKeymasterUnfortunately, yes. I have already pushed out 1.1.8 to address this. iOS should be approved soon.
Thanks for your patience!
Also for station names I will see why that’s happening today.
SamerKeymasterThe new UI supports all firmwares natively from 2.0.3 and newer.
The bug was related to the HTTP port setting. This was a bug in my UI that caused no setting to “stick”. I have since fixed this but you are saying it is still an issue. On the about screen, does the app say version 1.1.8?
SamerKeymasterActually, we traced this bug down. It is fixed now and should work. Let us know if you still have issues.
By the way, with 2.0.8 the UI can and will be upgraded independent of the firmware version. This allows quick fixes like the bug regarding the HTTP port preventing other options from being saved.
SamerKeymasterBased on your message to me, the logging to email works fine however the Android client you used didn’t support a body being provided by the app however GMail app worked fine.
Based on this I am considering this issue resolved.
SamerKeymasterGoto the top right corner (gear logo) and hit the change options button.
In there is a place to change the location.
Hope that helps!
SamerKeymasterIs it possible your browser is aggressively caching replies? If you change and try another browser still no change?
SamerKeymasterAnd you get no error message but instead a success message?
SamerKeymasterHave you ensured you checked “use master station” for stations 5-10 in the edit stations page? If so, can you please post the output from http://opensprinkler_ip/jn.
Thanks
SamerKeymasterI will look into adding this.
Thanks
-
AuthorPosts