OpenSprinkler › Forums › OpenSprinkler Unified Firmware › Javascript Files
I just replaced my current sprinkler timer with Opensprinkler and it’s all working great. I did notice that the web UI runs from javascript files hosted from your website. Is there an easy way for me to host those files on my web server and repoint opensprinkler there just incase your site goes down? If not, I suggest a adding a configurable URL to the settings.
Thanks,
Bryan
If you have a web server, you can easily copy the Javascripts (they are all checked in to the GitHub repository) to an accessible path on your server, and then you need to modify the OpenSprinkler source code to point to your server. The path is defined in this source file:
https://github.com/rayshobby/opensprinkler/blob/master/OpenSprinkler%20Controller/software/libraries/OpenSprinkler/examples/interval_program/interval_program.pde
notte the JAVASCRIPT_PATH variable on the top. This should be a simple change, but it does require re-compiling the source code.
I will consider adding an configurable path in the options in the future. At the moment it’s tricky to add because the current program has pretty much maximized the program memory space.
May I second this request? My thoughts were exactly the same – I’d rather host the script files on my intranet web server. This way if my DSL isn’t working I can still access the controller.
Thank you!
Unfortunately there is not enough code space to add such a feature to the 1.4 hardware. If you need to change the Javascript path, you can modify the source code and re-flash the microcontroller.
What about v2 then? I don’t need a full domain name in the URL, an IP address of the server would suffice.
Sure, that’s doable on v2.
OpenSprinkler › Forums › OpenSprinkler Unified Firmware › Javascript Files