OpenSprinkler / OpenSprinkler-App

A mobile interface for the OpenSprinkler irrigation device. Designed to allow manual control, program management (preview, add, edit, and delete), initiation of a run-once program, viewing graphical and tabulated representations of log data, viewing device status, adjusting rain delay, and changing of OpenSprinkler settings.
https://opensprinkler.com
GNU Affero General Public License v3.0
168 stars 91 forks source link

Help: How to build/compile Android App from Customized Source? #100

Closed trbolexis closed 4 years ago

trbolexis commented 4 years ago

As the title suggests:

I've modified the source code in an effort to add more fixed start times to my OpenSprinkler - and now I am wondering how to compile a new app for use on my devices.

I've installed Grunt, and I'm able to build the working directory, but I truly don't know what to do next. I have also read something about "Phone Gap", but I am not at all sure what to do with that.

Any help will be appreciated

rayshobby commented 4 years ago

You can download the app source, and directly open index.html in a web browser.

salbahra commented 4 years ago

Building the app is done using Cordova CLI. For Android, you can run the following commands (this assumes all dependencies are installed including Android Studio):

npx cordova prepare android
npx cordova run android
trbolexis commented 4 years ago

Thank you for your response.

I actually built the app successfully a while ago after careful reading and research. I appreciate your reply, no less!

On Sun, Aug 9, 2020 at 10:32 AM Samer Albahra notifications@github.com wrote:

Building the app is done using Cordova CLI. For Android, you can run the following commands (this assumes all dependencies are installed including Android Studio):

npx cordova prepare android npx cordova run android

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OpenSprinkler/OpenSprinkler-App/issues/100#issuecomment-671079672, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIU2FDIW56KSVGREG4MZMWLR73MT7ANCNFSM4O56WD3Q .

salbahra commented 4 years ago

Ah okay sorry for the delay but glad to hear it worked!