Forum Replies Created
-
AuthorPosts
-
SamerKeymasterFurther inspection appears to be an issue with log.json. OSPi seems to be escaping all the quotes for the first log entry, producing the following line:
"{\"program\":\"Run-once\",\"station\":7,\"duration\":\"01:00\",\"start\":\"00:16:55\",\"date\":\"2015-01-24\"}"
This is causing the mobile app plugin which parses the logs file to break.
I have submitted this issue to Dan’s Github: https://github.com/Dan-in-CA/OSPi/issues/87. Hopefully Dan has some insight why this might be occurring.
SamerKeymasterI can replicate the issue on my end and the error is located in mobile_app.py.
127.0.0.1:55303 - - [24/Jan/2015 00:19:38] "HTTP/1.1 GET /jl" - 500 Internal Server Error Traceback (most recent call last): File "OSPi/web/application.py", line 239, in process return self.handle() File "OSPi/web/application.py", line 230, in handle return self._delegate(fn, self.fvars, args) File "OSPi/web/application.py", line 420, in _delegate return handle_class(cls) File "OSPi/web/application.py", line 396, in handle_class return tocall(*args) File "OSPi/plugins/mobile_app.py", line 160, in GET date = time.mktime(datetime.datetime.strptime(event["date"], "%Y-%m-%d").timetuple()) TypeError: string indices must be integers
I am not sure if the format changed however I will see what I can find out.
Thanks for the report!
SamerKeymasterIt’s definitely something I would like to do, if possible however no plans or research have been done to incorporate HomeKit. Another issue is the app is developed using PhoneGap so a plugin/wrapper would need to be created to incorporate support. The good news is some authors have already begun developing such a plugin but the details on Apple’s HomeKit are still being unraveled so nothing is complete as of yet.
I wouldn’t anticipate this anytime soon however if it becomes we will likely do what we can to incorporate it.
January 23, 2015 at 12:25 pm in reply to: http://ui.opensprinkler.com/ not working for openspinkler pi #35314
SamerKeymasterPerfect, that’s what I was recommending and what my old PHP app did. Glad it worked out!
SamerKeymasterWow, that is quite odd. I guess that isn’t a situation that one would “normally” run into (49,000+ day run) but I guess it shouldn’t completely mess up the date range when plotting the graph.
I will see what I can do about something like this but to help do you mind emailing me the log export to [email protected].
Thank you!
SamerKeymasterAlso, to clarify about the “None” view. The graphing plugin creates small “nubs” for all the stations, including stations with no run times. This means everything on the graph is getting displaced and the X axis isn’t lining up with anything meaningful. I think the same thing is happening for the hour.
The timeline was using the wrong timezone completely, this has been fixed.
SamerKeymasterOkay, I have actually figured out all of these issues and will have the fix out in the next app/UI release.
Thanks again for the report!
SamerKeymasterThank you Phil for your feedback! The zones showing disabled stations is something other users have echoed and honestly an oversight on my end when incorporating the ability to disable stations. I am fixing this in the next release.
In regard to the rain delay not updating on toggle, is this in regard to scale? I am testing this out on my end and the graph is in fact updating/refreshing when toggling the station. I know this is was a bug previously so just to make sure, are you on the latest current: 1.2.7 (1.2.6 for iOS, still pending app store testing)?
For deleting specific log entries this isn’t possible without removing the SD card and editing the file yourself however Ray does have the option to delete a specific day instead of the entire log history. I will see if I can incorporate that into the app.
Thanks again!
January 21, 2015 at 10:59 am in reply to: http://ui.opensprinkler.com/ not working for openspinkler pi #35278
SamerKeymasterThe JavaScript app uses a library called jquery-retry. If the AJAX fails, the request is attempted two more times.
That’s why your seeing the effect three times. The AJAX is failing due to CORS and cannot be allowed without changing the source code of OSPi.
As I mentioned earlier, if your building a PHP app then have it communicate with OpenSprinkler to prevent issue with CORS.
January 21, 2015 at 12:51 am in reply to: http://ui.opensprinkler.com/ not working for openspinkler pi #35274
SamerKeymasterIn that case you will need to proxy the AJAX calls through your PHP application to prevent CORS errors.
January 21, 2015 at 12:41 am in reply to: http://ui.opensprinkler.com/ not working for openspinkler pi #35272
SamerKeymasterThat’s also for the same reason. There is the issue of CORS hence why I suggest using the app store versions which don’t have this limitation.
January 21, 2015 at 12:16 am in reply to: http://ui.opensprinkler.com/ not working for openspinkler pi #35268
SamerKeymasterThat location/URL is not designed to be used with OSPi. That is the UI assets for the Arduino OpenSprinkler.
In particular, the OSPi will give you CORS errors when using a different domain for AJAX requests than the document URL. Please use the direct IP/interface for the OSPi on the desktop or one of the app store apps.
SamerKeymasterThank you for bringing this to my attention and the detail provided. I will re-examine the times and let you know when a fix has been generated.
Thanks!
SamerKeymasterHi Michael,
The translations are crowd sourced from the following location: http://www.getlocalization.com/Sprinklers/. To update, please make an account and make the changes needed.
I constantly update the translations from here so any changes will certainly be incorporated into the next app release.
Thank you
SamerKeymasterThe specification you have typed here appear correct and should work well with OpenSprinkler.
SamerKeymasterThe way Dan manages the Github repo requires you to update using the following commands:
1) git checkout master
2) git fetch
3) git reset –hard origin/masterHope that helps get things updated.
January 14, 2015 at 11:49 pm in reply to: problems on first regularly scheduled programs after FW 2.1.0 update #35221
SamerKeymasterThe button changes to the locate button when WUnderground can’t be used (no key provided, no location services, etc). Since the map provides more accurate results it is the default, when available. As you have noticed you can enter things manually without using lookup or the pin icon, it will still save and be used.
I am glad the airport lets everything work correctly!
January 14, 2015 at 10:47 pm in reply to: problems on first regularly scheduled programs after FW 2.1.0 update #35218
SamerKeymasterJacques,
Based on the image you provided earlier, it seems you are using the latest app which offers location based weather station selection. If you push the button (pin icon) to the right of the location input box, you will be provided with a map showing nearby weather stations. You can tap any nearby one and select it as your location which will look something like this: pms:KATZ8903.
If you want to use a typed location, you may do so but use something such a zipcode to be more selective. This should fix the weather issue as well.
Both should also fix the weather not showing up. There is no need to factory reset and unlikely to change anything.
Let me know if that helps, thanks!
SamerKeymasterIdeally for rain using weather adjustments or a rain sensor can avoid the need to having to intervene.
Currently, if you port forward the HTTP port (default is 80) for the OpenSprinkler, you can access it outside of the home network by using the external IP (http://wimi.com). Having the app gives you complete control on your mobile device without having to use email or SMS. In the future, this will be possible without port forwarding.
SamerKeymasterThe Firefox issue will be fixed in the next app release which should be very soon.
January 6, 2015 at 3:03 pm in reply to: OSPi get internal server error after trying to manually run a program #35159
SamerKeymasterI’m not quite sure what’s going on to be honest. Hopefully Dan can shed some light on what might be going on.
January 5, 2015 at 9:06 am in reply to: OSPi get internal server error after trying to manually run a program #35143
SamerKeymasterIf you run the Python program manually it will dump its output into the console. To do this navigate to the directory where OSPi is located and run the following command:
python ospi.py
If any errors occur you should get a full trace back.
January 4, 2015 at 2:27 pm in reply to: OSPi get internal server error after trying to manually run a program #35134
SamerKeymasterThere is a bug when upgrading OSPi regarding the configuration that causes the station count total to be incorrect and an internal server error is returned because the index for the station names is incorrect.
The best way I’ve found to resolve this issue is to just delete the directory and use a clean install. Backup your configuration before either using the mobile app or noting your programs and settings.
SamerKeymasterHello Robert,
The firmware version should be accessible from the left side panel under the About page. The latest app also displays the hardware version (latest firmware required).
We have an upcoming feature that will detect the current firmware and latest firmware and notify the user with a change log within the app if there is a newer version. This is already complete and will be included in the next app released.
An SD card based firmware update is not possible on the current hardware however remote upgrade options are being considered.
Thank you and Happy New Years to you as well!
December 26, 2014 at 2:03 pm in reply to: Sprikler PHP code doest not work for opensprinkler pi #35072
SamerKeymasterThe Pyhton code has many HTTP commands available to modify program and stations via GET HTTP requests.
For more information on these commands please visit the documentation: http://rayshobby.net/wordpress/wp-content/uploads/2011/10/Firmware1.8HTTPGETcommands.pdf
Please note the above document is technically for the OpenSprinkler Arduino firmware however the Pi is based on the firmware and shares the same commands with a few exceptions.
-
AuthorPosts