OpenSprinkler Forums OpenSprinkler Unified Firmware Trouble with Local Weather Service

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #73360

    Rob
    Participant

    Hi all, hoping for some help on this. Been banging my head against the wall for a couple of weeks, apologies in advance for the long post but I wanted to share all the detail.

    Weewx running in docker on http://192.168.1.105:8888 and all data is coming in from my PWS
    OSPi v 2.1.9 (9) running on http://192.168.1.231:8080, able to turn the sprinklers on and off
    Weather service running on http://192.168.1.231:3000

    Weather service is running:
    pi@sprinklerpi:~ $ systemctl status weather.service
    ● weather.service – OpenSprinkler Weather Server
    Loaded: loaded (/etc/systemd/system/weather.service; enabled; vendor preset: enabled)
    Active: active (running) since Mon 2022-07-11 20:34:16 CST; 16h ago
    Main PID: 4090 (npm start)
    Tasks: 23 (limit: 1598)
    CPU: 9.184s
    CGroup: /system.slice/weather.service
    ├─4090 npm start
    ├─4101 sh -c node js/server
    └─4102 node js/server

    Jul 11 20:41:55 sprinklerpi npm[4102]: There is insufficient data to support Zimmerman calculation from local PWS.
    Jul 12 09:29:34 sprinklerpi npm[4102]: There is insufficient data to support Weather response from local PWS.
    Jul 12 09:29:39 sprinklerpi npm[4102]: There is insufficient data to support Weather response from local PWS.
    Jul 12 09:30:54 sprinklerpi npm[4102]: There is insufficient data to support Zimmerman calculation from local PWS.
    Jul 12 09:30:58 sprinklerpi npm[4102]: There is insufficient data to support Zimmerman calculation from local PWS.
    Jul 12 09:31:11 sprinklerpi npm[4102]: There is insufficient data to support Zimmerman calculation from local PWS.
    Jul 12 09:33:21 sprinklerpi npm[4102]: There is insufficient data to support Zimmerman calculation from local PWS.
    Jul 12 09:33:39 sprinklerpi npm[4102]: There is insufficient data to support Weather response from local PWS.
    Jul 12 11:08:34 sprinklerpi npm[4102]: There is insufficient data to support Zimmerman calculation from local PWS.
    Jul 12 12:46:03 sprinklerpi npm[4102]: There is insufficient data to support Weather response from local PWS.

    I’ve copied the baselineEToData.bin file into ~/weather/baselineEToData/

    ~/weather/.env:
    HOST=0.0.0.0
    PORT=3000
    WEATHER_PROVIDER=local
    PWS=WU
    LOCAL_PERSISTENCE=true

    weewx.conf:
    [[Wunderground]]
    enable = true
    station = replace_me
    password = replace_me
    server_url = http://192.168.1.231:3000/weatherstation/updateweatherstation.php
    api_key = replace_me

    http://192.168.1.231:8080/su sets weather to “192.168.1.231:3000”

    http://192.168.1.231:3000/weather1.py?loc=***,***&wto=%22h%22:100,%22t%22:100,%22r%22:100,%22bh%22:30,%22bt%22:21,%22br%22:0 returns “&errCode=10&scale=100” which refers to “/** Data for a full 24 hour period was not available. */ InsufficientWeatherData = 10,”

    http://192.168.1.231:3000/weatherstation/updateweatherstation.php returns “success”

    http://192.168.1.231:3000 returns undefined v2.0.4 (undefined also shows up as the service name in systemctl status weather.service on startup despite it being defined in the weather.service file)

    Under system diagnostics, it says “Weather Service: Error” and “Building Weather History”. It’s been running for a few days, well past the 24 hours needed to build it (despite the 16h in the above status, I restarted it yesterday).

    ~/weather/observations.json timestamp keeps updating but no content is ever added to it, it only ever contains “[]”. I’ve opened up write permissions to it to be sure

    The problem really looks to be that the local weather service is not saving data to observations.json

    Any advice appreciated!

    #73366

    Rob
    Participant

    I edited weewx.conf, put the station location in quotes and added a station and password in [[Wunderground]]. /home/weewx/weather/observations.json is updating every 5 mins now although I don’t see live updates – there seems to be a buffer in play here. I’ll give it 24h to collect data

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums OpenSprinkler Unified Firmware Trouble with Local Weather Service