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
169 stars 93 forks source link

[bug] Station notes not on desktop #148

Open bzdarko opened 2 months ago

bzdarko commented 2 months ago

App Version: 2.4.1 Firmware 2.2.0(3) hardware OSPi

On Andorid App got to gear for station and add a station note. Save Can open and see notes

On desktop running chrome - click gear for station, no station notes show up. (clear site cache - refresh) no station notes show up

(the opensprinkler I have runs on a raspPi and was bought in 2010 or 2011 and was a solder yourself kit.)

mellodev commented 3 weeks ago

Hey @bzdarko I investigated this issue and found a work around for you. It turns out that site configurations (including notes) are stored locally on your phone/desktop unless you are logged into the OS Cloud. I'd bet in your case you lost your cloud auth at some point and need to reauthenticate. Once you are logged into the Cloud from your device (and/or desktop), changes you make to your site configurations will be uploaded to the cloud and sync'd to your phone/desktop.

Verify that you're logged into the cloud by opening the sidebar and looking for the "Opensprinkler.com Login" option: image

If you see it (rather than logout), click and complete the authentication modal: image

After login, if there are any discrepancies between your local site config and the cloud values, you'll be prompted to "Select Merge Method": image

You may want to restart the app on your phone and desktop then ensure all values are updated and sync'd.

How would you prefer to have the app display that you have lost your cloud connection and that changes will only be saved locally?

bzdarko commented 3 weeks ago

As a software engineer I am not looking for a work around, looking for a fix. The data should 100% be on the local server and nothing on the local device or cloud. I have no desire to log into the cloud. Ill reject this as a fix. All data on the website (app is just the website in a container) needs to be stored on the server. Just like the programs and valve names are saved on the server. Thank you for the time you spent on this. I do appreciate the effort. I'm tempted to go through the code myself but do not feel like going down that rabbit hole. lol -Bill

On Thu, Nov 7, 2024 at 4:25 PM Joel Mello @.***> wrote:

Hey @bzdarko https://github.com/bzdarko I investigated this issue and found a work around for you. It turns out that site configurations (including notes) are stored locally on your phone/desktop unless you are logged into the OS Cloud. I'd bet in your case you lost your cloud auth at some point and need to reauthenticate. Once you are logged into the Cloud from your device (and/or desktop), changes you make to your site configurations will be uploaded to the cloud and sync'd to your phone/desktop.

Verify that you're logged into the cloud by opening the sidebar and looking for the "Opensprinkler.com Login" option: image.png (view on web) https://github.com/user-attachments/assets/17bb28a8-8807-4182-bd21-8128b8fc5a04

If you see it (rather than logout), click and complete the authentication modal: image.png (view on web) https://github.com/user-attachments/assets/e741bd41-5441-49a5-a181-b1440d3a6078

After login, if there are any discrepancies between your local site config and the cloud values, you'll be prompted to "Select Merge Method": image.png (view on web) https://github.com/user-attachments/assets/479dc9d9-8a6e-4ba0-bd5a-909cba45f769

You may want to restart the app on your phone and desktop then ensure all values are updated and sync'd.

How would you prefer to have the app display that you have lost your cloud connection and that changes will only be saved locally?

— Reply to this email directly, view it on GitHub https://github.com/OpenSprinkler/OpenSprinkler-App/issues/148#issuecomment-2463247761, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE45X4SPBK3IXMIWWXDXWTLZ7PLF5AVCNFSM6AAAAABOWUGGBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRTGI2DONZWGE . You are receiving this because you were mentioned.Message ID: @.***>