Skip to content

Add support for enabling PWS with local persistence - #150

Closed
ruimarinho wants to merge 1 commit into
OpenSprinkler:masterfrom
ruimarinho:support/pws-persistence-original
Closed

ruimarinho wants to merge 1 commit into
OpenSprinkler: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

mellodev commented Jan 28, 2025 •

Copy link
Copy Markdown

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

rayshobby added a commit that referenced this pull request Aug 10, 2026
Enable local observation persistence independently of the selected weather provider, parse the setting explicitly, and write state atomically to a configurable directory. Provide a persistent Docker data volume for observations and geocoder state.

Reimplements the behavior proposed in #144 and #150 against the current provider architecture.
@rayshobby

Copy link
Copy Markdown
Member

Thank you @ruimarinho. Configurable local PWS persistence has now been implemented through #180 and released in Weather Service 3.1.0. The service supports LOCAL_PERSISTENCE with an explicitly mounted /data volume. Closing this superseded PR.

@rayshobby rayshobby closed this Aug 12, 2026
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.

3 participants