OpenSprinkler Forums OpenSprinkler Unified Firmware Local Weather Service onto a Raspberry Pi Issue Reply To: Local Weather Service onto a Raspberry Pi Issue

#63143

franzstein
Participant

@peter, many thanks for your help. I have changed the port setting to 3000 and the Weather Service is running now without errors.

Unfortunately, there is still a problem with WeeWX’s built-in Weather Underground plug-in. I am running WeeWX and the Weather Service on the same Raspberry PI. According to the hints given in The WeeWX Project I have modified the /etc/weewx/weewx.conf file as follows:

    [[Wunderground]]
        enable = true
        station = anyText
        password = anyText
        server_url = http://127.0.0.1:80/weatherstation/updateweatherstation.php
        rapidfire = False

Unfortunately, WeeWX failed to send the weather observation onto the local Weather Service:

pi@raspberrypi:~ $ sudo /etc/init.d/weewx start
[ ok ] Starting weewx (via systemctl): weewx.service.
pi@raspberrypi:~ $ sudo tail -f /var/log/syslog
Nov  5 09:26:45 raspberrypi weewx[18240]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Nov  5 09:26:45 raspberrypi weewx[18240]: manager: Starting backfill of daily summaries
Nov  5 09:26:45 raspberrypi weewx[18240]: restx: StationRegistry: Registration not requested.
Nov  5 09:26:45 raspberrypi weewx[18240]: restx: Wunderground-PWS: Data for station anyText will be posted
Nov  5 09:26:45 raspberrypi weewx[18240]: restx: PWSweather: Posting not enabled                                                        .
Nov  5 09:26:45 raspberrypi weewx[18240]: restx: CWOP: Posting not enabled.
Nov  5 09:26:45 raspberrypi weewx[18240]: restx: WOW: Posting not enabled.
Nov  5 09:26:45 raspberrypi weewx[18240]: restx: AWEKAS: Posting not enabled.
Nov  5 09:26:45 raspberrypi weewx[18240]: engine: Starting up weewx version 3.9.2
Nov  5 09:26:45 raspberrypi weewx[18240]: engine: Starting main packet loop.
Nov  5 09:31:47 raspberrypi weewx[18240]: manager: Added record 2019-11-05 09:30:00 CET (1572942600) to database 'weewx.sdb'
Nov  5 09:31:47 raspberrypi weewx[18240]: manager: Added record 2019-11-05 09:30:00 CET (1572942600) to daily summary in 'weewx.sdb'
Nov  5 09:31:50 raspberrypi weewx[18240]: cheetahgenerator: Generated 8 files for report SeasonsReport in 3.13 seconds
Nov  5 09:31:51 raspberrypi weewx[18240]: imagegenerator: Generated 14 images for SeasonsReport in 1.01 seconds
Nov  5 09:31:51 raspberrypi weewx[18240]: copygenerator: copied 5 files to /var/www/html/weewx
Nov  5 09:32:02 raspberrypi weewx[18240]: restx: Wunderground-PWS: Failed to publish record 2019-11-05 09:30:00 CET (1572942600): Failed upload after 3 tries

I’m not sure what causes the problem? There is maybe a change in the WeeWX Wunderground interface. The WeeWX change history 3.9.2 (14 Jul 2019)states:

Posts to the Weather Underground now use https, instead of http. Thanks to user mljenkins! PR #378.

Any ideas how to solve this issue?