• This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #22328

    beegee226
    Participant

    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

    #23239

    Ray
    Keymaster

    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.

    #23240

    Oasiz37
    Participant

    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!

    #23241

    Ray
    Keymaster

    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.

    #23242

    Oasiz37
    Participant

    What about v2 then? I don’t need a full domain name in the URL, an IP address of the server would suffice.

    #23243

    Ray
    Keymaster

    Sure, that’s doable on v2.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.