Skip to content

Add support for enabling PWS with local persistence#150

Open
ruimarinho wants to merge 1 commit intoOpenSprinkler:masterfrom
ruimarinho:support/pws-persistence-original
Open

Add support for enabling PWS with local persistence#150
ruimarinho wants to merge 1 commit intoOpenSprinkler:masterfrom
ruimarinho:support/pws-persistence-original

Conversation

@ruimarinho
Copy link
Copy Markdown

If a PWS (Personal Weather Station) is configured (currently, only the WU type is recognized by the code), OpenSprinkler-Weather will automatically register the route /weatherstation/updateweatherstation.php to capture the WU data stream.

However, it only saves changes from the captured stream if the WEATHER_PROVIDER is set to local. In my opinion, this is too restrictive, as one might want to collect observations before switching to the local weather provider.

Therefore, I suggest testing for the presence of the PWS variable instead, allowing the capturing system to function fully without requiring a provider switch.

@mellodev
Copy link
Copy Markdown

mellodev commented Jan 28, 2025

@rayshobby we should review if this can be closed/integrated when the recent weather related changes are complete cc @Ncp294

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants