OpenSprinkler Forums OpenSprinkler Mobile and Web App How to build the UI apps

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #51669

    rlkeck
    Participant

    I am planning to add provision for a moisture sensor to my OS3. On the firmware side, this is reasonably straight forward.
    For me the UI side presents more of a challenge, mostly because of all the cross platform stuff. Looking at the source, it appears that Apache Cordova is being used to build the Apps. It also appears that VSCode is probably being used to maintain the code base. It would be useful if the developer or anyone one else who has modified the UI, could provide some guidance about how the system is built and on what platform it is being built.

    While I can probably figure out how to modify the server hosted UI, it would be nice if I had some guidance on how to build the Android app.

    #51793

    Ray
    Keymaster

    An easier route is to bypass the app and just set up a HTTP page to display whatever sensor value you need to display. For example, the change script_url page:
    https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/server.cpp#L1128
    or ap_udpate page:
    https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/server.cpp#L1916
    are both done this way. The downside is that it’s not hooked up to the mobile app, but like in the above examples you can access these pages by directly typing in:
    http://x.x.x.x/su
    or http://x.x.x.x/update
    this only requires changes on the firmware side.

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

OpenSprinkler Forums OpenSprinkler Mobile and Web App How to build the UI apps