Skip to content

Add support for enabling PWS with local persistence - #2

Open
ruimarinho wants to merge 1 commit into
opensprinklershop:masterfrom
ruimarinho:support/enable-pws-local-persistence
Open

Add support for enabling PWS with local persistence#2
ruimarinho wants to merge 1 commit into
opensprinklershop:masterfrom
ruimarinho:support/enable-pws-local-persistence

Conversation

@ruimarinho

@ruimarinho ruimarinho commented Aug 21, 2024

Copy link
Copy Markdown

If a PWS is set (right now only type WU actually has any meaning on the code), OpenSprinkler-Weather will automatically register the route /weatherstation/updateweatherstation.php to capture the WU stream.

However, it will only persist changes of the captured stream if the WEATHER_PROVIDER is set to local, which in my opinion is too rigid as one may want to build a list of observations prior to switching to local weather provider.

Therefore I suggest testing the presence of the PWS variable instead allowing for the capturing system to fully work without having to switch providers.

I will also open this PR on the upstream repository. If it gets traction, then we can simply merge back on this repository.

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.

1 participant