Error Uploading to WOW

117 views
Skip to first unread message

Tim Urberg

unread,
Nov 10, 2021, 8:13:45 PM11/10/21
to weewx-user
Hello everyone, I'm having trouble uploading to WOW.  I created an account got my username and created a password, but this keeps happening: 

Nov 10 19:10:18 weewx weewx[3837] DEBUG weewx.restx: WOW: Failed upload attempt 1: HTTP Error 400: Bad Request
Nov 10 19:10:24 weewx weewx[3837] DEBUG weewx.restx: WOW: Failed upload attempt 2: HTTP Error 400: Bad Request
Nov 10 19:10:30 weewx weewx[3837] DEBUG weewx.restx: WOW: Failed upload attempt 3: HTTP Error 400: Bad Request
Nov 10 19:10:30 weewx weewx[3837] ERROR weewx.restx: WOW: Failed to publish record 2021-11-10 19:10:00 CST (1636593000): Failed upload after 3 tries

Not sure what would be causing a bad request, is there anyway to log the full response?

Thanks!
Tim

gjr80

unread,
Nov 10, 2021, 10:20:48 PM11/10/21
to weewx-user
Hi,

Edit weewx.conf and set debug = 2. Save weewx.conf and restart WeeWX. You should now see the full URL used to upload to any of the restful services in the log. If you want any further help post a log extract from when you restarted WeeWX through until a couple of report cycles have completed. It’s import to capture the full WeeWX startup as well as the report cycles.

Gary

Tim Urberg

unread,
Nov 11, 2021, 4:18:27 PM11/11/21
to weewx-user

Tim Urberg

unread,
Nov 11, 2021, 4:33:06 PM11/11/21
to weewx-user
Here's the rest of the startup log: 

Nov 11 15:06:43 weewx weewx[87583]:  * Starting weewx weather system weewx
Nov 11 15:06:43 weewx weewx[87595] INFO __main__: Initializing weewx version 4.5.1
Nov 11 15:06:43 weewx weewx[87595] INFO __main__: Using Python 3.8.10 (default, Sep 28 2021, 16:10:42) #012[GCC 9.3.0]
Nov 11 15:06:43 weewx weewx[87595] INFO __main__: Platform Linux-5.4.0-1045-raspi-aarch64-with-glibc2.29
Nov 11 15:06:43 weewx weewx[87595] INFO __main__: Locale is 'C.UTF-8'
Nov 11 15:06:43 weewx weewx[87595] INFO __main__: PID file is /var/run/weewx.pid
Nov 11 15:06:43 weewx weewx[87598] INFO __main__: Using configuration file /etc/weewx/weewx.conf
Nov 11 15:06:43 weewx weewx[87598] INFO __main__: Debug is 2
Nov 11 15:06:43 weewx weewx[87598] DEBUG __main__: Initializing engine
Nov 11 15:06:43 weewx weewx[87598] INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.drivers.vantage: Driver version is 3.2.2
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.drivers.vantage: Option loop_request=1
Nov 11 15:06:43 weewx weewx[87583]:    ...done.
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.drivers.vantage: Opened up serial port /dev/ttyUSB0; baud 19200; timeout 4.00
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.drivers.vantage: Hardware type is 16
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.drivers.vantage: ISS ID is 1
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.drivers.vantage: Hardware name: Vantage Pro2
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Loading service weewx.engine.StdTimeSynch
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Finished loading service weewx.engine.StdTimeSynch
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Loading service weewx.engine.StdConvert
Nov 11 15:06:43 weewx weewx[87598] INFO weewx.engine: StdConvert target unit is 0x1
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Finished loading service weewx.engine.StdConvert
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Loading service weewx.engine.StdCalibrate
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Finished loading service weewx.engine.StdCalibrate
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Loading service weewx.engine.StdQC
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Finished loading service weewx.engine.StdQC
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Loading service weewx.wxservices.StdWXCalculate
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.wxservices: Calculations for LOOP packets: {'pressure': 'prefer_hardware', 'barometer': 'prefer_hardware', 'altimeter': 'prefer_hardware', 'windchill': 'prefer_hardware', 'heatindex': 'prefer_hardware', 'dewpoint': 'prefer_hardware', 'inDewpoint': 'prefer_hardware', 'rainRate': 'prefer_hardware', 'cloudbase': 'prefer_hardware', 'maxSolarRad': 'prefer_hardware', 'humidex': 'prefer_hardware', 'appTemp': 'prefer_hardware', 'ET': 'prefer_hardware', 'windrun': 'prefer_hardware', 'windDir': 'software', 'windGustDir': 'software'}
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.wxservices: Calculations for archive records: {'pressure': 'prefer_hardware', 'barometer': 'prefer_hardware', 'altimeter': 'prefer_hardware', 'windchill': 'prefer_hardware', 'heatindex': 'prefer_hardware', 'dewpoint': 'prefer_hardware', 'inDewpoint': 'prefer_hardware', 'rainRate': 'prefer_hardware', 'cloudbase': 'prefer_hardware', 'maxSolarRad': 'prefer_hardware', 'humidex': 'prefer_hardware', 'appTemp': 'prefer_hardware', 'ET': 'prefer_hardware', 'windrun': 'prefer_hardware', 'windDir': 'software', 'windGustDir': 'software'}
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.manager: Daily summary version is 4.0
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Finished loading service weewx.wxservices.StdWXCalculate
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdWXXTypes
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdWXXTypes
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdPressureCooker
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdPressureCooker
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdRainRater
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdRainRater
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdDelta
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdDelta
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Loading service weewx.engine.StdArchive
Nov 11 15:06:43 weewx weewx[87598] INFO weewx.engine: Archive will use data binding wx_binding
Nov 11 15:06:43 weewx weewx[87598] INFO weewx.engine: Record generation will be attempted in 'hardware'
Nov 11 15:06:43 weewx weewx[87598] INFO weewx.engine: Using archive interval of 300 seconds (specified by hardware)
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Use LOOP data in hi/low calculations: 1
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Finished loading service weewx.engine.StdArchive
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Loading service weewx.restx.StdStationRegistry
Nov 11 15:06:43 weewx weewx[87598] INFO weewx.restx: StationRegistry: Station will be registered.
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Finished loading service weewx.restx.StdStationRegistry
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Loading service weewx.restx.StdWunderground
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.restx: WU essentials: {}
Nov 11 15:06:43 weewx weewx[87598] INFO weewx.restx: Wunderground-RF: Data for station KMNBLAIN30 will be posted
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Finished loading service weewx.restx.StdWunderground
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Loading service weewx.restx.StdPWSweather
Nov 11 15:06:43 weewx weewx[87598] INFO weewx.restx: PWSWeather: Data for station BLAINEMN will be posted
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Finished loading service weewx.restx.StdPWSweather
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Loading service weewx.restx.StdCWOP
Nov 11 15:06:43 weewx weewx[87598] INFO weewx.restx: CWOP: Data for station FW3216 will be posted
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Finished loading service weewx.restx.StdCWOP
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Loading service weewx.restx.StdWOW
Nov 11 15:06:43 weewx weewx[87598] INFO weewx.restx: WOW: Data for station f7fb9445-dd06-e911-9462-0003ff598847 will be posted
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Finished loading service weewx.restx.StdWOW
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Loading service weewx.restx.StdAWEKAS
Nov 11 15:06:43 weewx weewx[87598] INFO weewx.restx: AWEKAS: Data will be uploaded for user tim273
Nov 11 15:06:43 weewx weewx[87598] DEBUG weewx.engine: Finished loading service weewx.restx.StdAWEKAS
Nov 11 15:06:44 weewx weewx[87598] DEBUG weewx.engine: Loading service user.mqtt.MQTT
Nov 11 15:06:44 weewx weewx[87598] INFO user.mqtt: service version is 0.23
Nov 11 15:06:44 weewx weewx[87598] INFO user.mqtt: binding to ['archive', 'loop']
Nov 11 15:06:44 weewx weewx[87598] DEBUG user.mqtt: TLS parameters: {'ca_certs': '/etc/ssl/certs/ca-certificates.crt'}
Nov 11 15:06:44 weewx weewx[87598] INFO user.mqtt: topic is weather
Nov 11 15:06:44 weewx weewx[87598] INFO user.mqtt: desired unit system is US
Nov 11 15:06:44 weewx weewx[87598] INFO user.mqtt: data will be uploaded to mqtt://tim:x...@weather.urberg.net:8883
Nov 11 15:06:44 weewx weewx[87598] INFO user.mqtt: network encryption/authentication will be attempted
Nov 11 15:06:44 weewx weewx[87598] DEBUG weewx.engine: Finished loading service user.mqtt.MQTT
Nov 11 15:06:44 weewx weewx[87598] DEBUG weewx.engine: Loading service weewx.engine.StdPrint
Nov 11 15:06:44 weewx weewx[87598] DEBUG weewx.engine: Finished loading service weewx.engine.StdPrint
Nov 11 15:06:44 weewx weewx[87598] DEBUG weewx.engine: Loading service weewx.engine.StdReport
Nov 11 15:06:44 weewx weewx[87598] DEBUG weewx.engine: Finished loading service weewx.engine.StdReport
Nov 11 15:06:44 weewx weewx[87598] INFO __main__: Starting up weewx version 4.5.1
Nov 11 15:06:44 weewx weewx[87598] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 11 15:06:44 weewx weewx[87598] INFO weewx.engine: Clock error is -1.11 seconds (positive is fast)
Nov 11 15:06:44 weewx weewx[87598] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Nov 11 15:06:44 weewx weewx[87598] INFO weewx.manager: Starting backfill of daily summaries
Nov 11 15:06:44 weewx weewx[87598] INFO weewx.manager: Daily summaries up to date
Nov 11 15:06:44 weewx weewx[87598] DEBUG weewx.drivers.vantage: Getting archive packets since 2021-11-11 15:05:00 CST (1636664700)
Nov 11 15:06:44 weewx weewx[87598] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 11 15:06:44 weewx weewx[87598] DEBUG weewx.manager: Daily summary version is 4.0
Nov 11 15:06:44 weewx weewx[87598] message repeated 2 times: [ DEBUG weewx.manager: Daily summary version is 4.0]
Nov 11 15:06:44 weewx weewx[87598] DEBUG weewx.drivers.vantage: Retrieving 0 page(s); starting index= 0
Nov 11 15:06:44 weewx weewx[87598] INFO weewx.engine: Starting main packet loop.
Nov 11 15:06:44 weewx weewx[87598] DEBUG weewx.manager: Daily summary version is 4.0
Nov 11 15:06:44 weewx weewx[87598] DEBUG weewx.manager: Daily summary version is 4.0
Nov 11 15:06:44 weewx weewx[87598] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 11 15:06:44 weewx weewx[87598] DEBUG weewx.manager: Daily summary version is 4.0
Nov 11 15:06:44 weewx weewx[87598] DEBUG weewx.drivers.vantage: Requesting 200 LOOP packets.
Nov 11 15:06:44 weewx weewx[87598] DEBUG weewx.drivers.vantage: Gentle wake up of console successful


Here's the part of the log

Tim Urberg

unread,
Nov 11, 2021, 4:37:47 PM11/11/21
to weewx-user
Here's 3 attempts at uploading.

Nov 11 15:10:20 weewx weewx[87598] DEBUG weewx.restx: WOW: Failed upload attempt 1: HTTP Error 400: Bad Request
Nov 11 15:10:25 weewx weewx[87598] DEBUG weewx.restx: WOW: Failed upload attempt 2: HTTP Error 400: Bad Request
Nov 11 15:10:31 weewx weewx[87598] DEBUG weewx.restx: WOW: Failed upload attempt 3: HTTP Error 400: Bad Request
Nov 11 15:10:31 weewx weewx[87598] ERROR weewx.restx: WOW: Failed to publish record 2021-11-11 15:10:00 CST (1636665000): Failed upload after 3 tries
Nov 11 15:15:17 weewx weewx[87598] DEBUG weewx.restx: WOW: Failed upload attempt 1: HTTP Error 400: Bad Request
Nov 11 15:15:24 weewx weewx[87598] DEBUG weewx.restx: WOW: Failed upload attempt 2: HTTP Error 400: Bad Request
Nov 11 15:15:29 weewx weewx[87598] DEBUG weewx.restx: WOW: Failed upload attempt 3: HTTP Error 400: Bad Request
Nov 11 15:15:29 weewx weewx[87598] ERROR weewx.restx: WOW: Failed to publish record 2021-11-11 15:15:00 CST (1636665300): Failed upload after 3 tries
Nov 11 15:20:26 weewx weewx[87598] DEBUG weewx.restx: WOW: Failed upload attempt 1: HTTP Error 400: Bad Request
Nov 11 15:20:37 weewx weewx[87598] DEBUG weewx.restx: WOW: Failed upload attempt 2: HTTP Error 400: Bad Request
ov 11 15:20:47 weewx weewx[87598] DEBUG weewx.restx: WOW: Failed upload attempt 3: HTTP Error 400: Bad Request
Nov 11 15:20:47 weewx weewx[87598] ERROR weewx.restx: WOW: Failed to publish record 2021-11-11 15:20:00 CST (1636665600): Failed upload after 3 tries

Glenn McKechnie

unread,
Nov 11, 2021, 5:47:12 PM11/11/21
to weewx...@googlegroups.com
On 11/11/2021, Tim Urberg <tim.u...@gmail.com> wrote:
> Hello everyone, I'm having trouble uploading to WOW. I created an account
> got my username and created a password, but this keeps happening:

The above suggests that you created the account recently, but the help
page suggests the siteid format you are using is pre 2016?
( That's according to the section "Automatic Weather Stations" at
https://wow.metoffice.gov.uk/support/dataformats#automatic )

Are you using the correct Site ID for your site?

In my case it's a short string ( 941176001 ) , which is also in the
public address ...
https://bom-wow.metoffice.gov.uk/weather/view?siteID=941176001

[[WOW]]
[...]
station = 941176001
[...]
--


Cheers
Glenn

rorpi - read only raspberry pi & various weewx addons
https://github.com/glennmckechnie

Glenn McKechnie

unread,
Nov 11, 2021, 5:55:12 PM11/11/21
to weewx...@googlegroups.com
Then again (cleans glasses) if I could read properly - mine is the pre
2016 variant and yours is the newer version.

So. As you were.

Tim Urberg

unread,
Nov 11, 2021, 8:20:24 PM11/11/21
to weewx-user
I do believe I have the configuration right: 

    [[WOW]]
        # This section is for configuring posts to WOW.

        # If you wish to do this, set the option 'enable' to true,
        # and specify a station and password.
        enable = true
        station = f7fb9445-dd06-e911-9462-0003ff598847
        # To guard against parsing errors, put your password in quotes:
        password = XXXXXX


Reply all
Reply to author
Forward
0 new messages