Upload to PWS fails

297 views
Skip to first unread message

Ken Harlan

unread,
Sep 28, 2020, 9:05:29 PM9/28/20
to weewx-user
Recent rebuild of my Pi-2 weewx software is failing to upload to PWS.
H/S info:  Pi-2, Buster ver. 10. weewx ver. 4.1.1, ethernet cable.

Question:
How/where is "station_url must be specified\n'" specified?

Conf:

  # If the connection type is ethernet, an IP Address/hostname is required:
    host = 192.168.1.10/24 

   [[PWSweather]]
        # This section is for configuring posts to PWSweather.com.
        
        # If you wish to do this, set the option 'enable' to true,
        # and specify a station and password.
        # To guard against parsing errors, put the password in quotes.
        enable = true
        station = KCACLARE3
        password = "xxxxx"

Syslog  output:

Sep 28 16:00:29 raspberrypi weewx[1878] DEBUG weewx.restx: PWSWeather: Failed upload attempt 1: timed out
Sep 28 16:00:30 raspberrypi weewx[1878] DEBUG weewx.restx: StationRegistry: Failed upload attempt 3: b'FAIL: bad registration info: station_url must be specified\n'
Sep 28 16:00:30 raspberrypi weewx[1878] ERROR weewx.restx: StationRegistry: Failed to publish record 2020-09-28 16:00:00 PDT (1601334000): Failed upload after 3 tries
Sep 28 16:00:45 raspberrypi weewx[1878] DEBUG weewx.restx: PWSWeather: Failed upload attempt 2: timed out
Sep 28 16:01:00 raspberrypi weewx[1878] DEBUG weewx.restx: PWSWeather: Failed upload attempt 3: timed out
Sep 28 16:01:00 raspberrypi weewx[1878] ERROR weewx.restx: PWSWeather: Failed to publish record 2020-09-28 16:00:00 PDT (1601334000): Failed upload after 3 tries
Sep 28 16:01:27 raspberrypi weewx[1878] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 62.39 seconds
Sep 28 16:01:28 raspberrypi weewx[1878] DEBUG weewx.manager: Daily summary version is 2.0
Sep 28 16:02:34 raspberrypi weewx[1878] INFO weewx.imagegenerator: Generated 30 images for report SeasonsReport in 66.17 seconds


Tom Keffer

unread,
Sep 28, 2020, 9:30:40 PM9/28/20
to weewx-user
We're looking at two different things.

It's the station registry which requires that the station_url be specified. This is the unique identifier used to identify your station. It can be a link to your Weather Underground page, or your PWS page, or anything else, provided it is unique. It is found in the [Station] section of weewx.conf.

The upload to PWSWeather failed for unknown reasons. My station has also been failing for the last 3-4 hours. Perhaps they are having some problems on their end?

-tk


--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/27714811-1b85-46d3-878f-d1296e8b2d36n%40googlegroups.com.

Ken Harlan

unread,
Sep 28, 2020, 10:07:19 PM9/28/20
to weewx...@googlegroups.com
Thanks Tom for the prompt response.  I left the station_url blank as I thought that was if I had a personal webpage.  I will past the PWS url in and see what happens.

You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/KAvBd5Zv21s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zECHaBTKGjUpRDuAjqQNKC%3DNbTCXz_Dpk8gGoahFtYxh6Q%40mail.gmail.com.

Ken Harlan

unread,
Sep 30, 2020, 12:44:08 PM9/30/20
to weewx...@googlegroups.com
Tom,

Joe Torsitano at Aries (PWS) sent me the following.  I am getting correct data from the Davis console as the weewx.html is correct.   Do you think I may have gotten a corrupt install?

Your system isn't sending any of the parameters parameters which are used so there's nothing to display.  This is all that's being sent...

10.0.1.70 - - [30/Sep/2020:04:52:45 +0000] "GET /pwsupdate/pwsupdate.php?
action=updateraw&stationtype=AMBWeatherV4.1.1&dateutc=2020-09-30%2004%3A52%3A00&indoortempf=76.8&humidity1=25&humidity2=14&humidity3=27&feelsLike1=65.8&dewptf1=29&feelsLike2=69.9&dewPoint2=20.4&feelsLike3=69.9&dewPoint3=36&tz=America/Phoenix&hl=[object%20Object]&ID=KCACLARE3&PASSWORD=###### HTTP/1.1" 200 141 "-" "Amazon CloudFront"

Thanks, Ken

On Mon, Sep 28, 2020 at 6:30 PM Tom Keffer <tke...@gmail.com> wrote:
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/KAvBd5Zv21s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zECHaBTKGjUpRDuAjqQNKC%3DNbTCXz_Dpk8gGoahFtYxh6Q%40mail.gmail.com.

Tom Keffer

unread,
Sep 30, 2020, 5:28:12 PM9/30/20
to weewx-user
No, I do not think you got a corrupt install. 

Joe is correct in that it does look like the normal types, such as outTemp, windSpeed, dewpoint, etc., are not being sent.

I have no idea where the types that are being sent, such as humidity1, humidity2, feelLike1, came from. They are not part of WeeWX, nor are they measured by a Davis Vantage. Do you have some extensions that are adding them? You need to describe your system, as well as include a full log. 

-tk

Ken Harlan

unread,
Oct 1, 2020, 1:30:14 AM10/1/20
to weewx...@googlegroups.com
Tom,
I have a fresh install of Buster ver. 10, weewx rev. 4.1.1 on a Pi 2. Getting data from the Vantage VUE displayed in the weewx.html file.  
I have attached a syslog file and the weewx.conf file.  I have a question regarding the setup.py utility.  The selection designation for the vantage vue?


weewx log
weewx conf

Tom Keffer

unread,
Oct 1, 2020, 7:31:55 AM10/1/20
to weewx-user
That all looks normal. However, I do wonder about the URL that Joe sent to you. It indicates a station type of "AMBWeatherV4.1.1" and a Phoenix time zone.

Please try setting debug=2 in weewx.conf, then restarting. Let it run through a reporting cycle of two, then post the resultant log. 

Setting debug=2 will cause weewx to log the URL that is being sent to PWSWeather.

-tk

Ken Harlan

unread,
Oct 1, 2020, 12:33:56 PM10/1/20
to weewx-user
Tom, darn I missed that in Joe's response that PWS was sending the Ambient weather station I have at a house in Payson AZ.  I will let him know what is happening.  I no longer need that station reporting on PWS.

Thanks for the help and I apologize  for not catching that.  FYI my station stopped working a few days prior to my upgrading so I thought it was a good tine upgrade.  Should have checked with PWS prior to making changes at this end.

Thanks again, and I think weewx is a great example of a good software package.

Ken 

Ken Harlan

unread,
Oct 6, 2020, 2:27:00 PM10/6/20
to weewx-user
Sorry to keep bothering but I am still unable to upload to PWS.  The Payson1 station has been removed so only the KCACLARE3 station is registered.  I am thinking there must be something wrong with the conf file. Attached is the the weewx.conf file.  (Do not seem to attach the conf and syslog at the same time.) 
weewx.conf

Ken Harlan

unread,
Oct 6, 2020, 2:39:01 PM10/6/20
to weewx-user
Here is the syslog with debug set to 2.

pi@raspberrypi:~ $ sudo tail -f /var/log/syslog
Oct  5 13:18:11 raspberrypi weewx[27641] INFO weewx.manager: Added record 2020-10-05 13:00:00 PDT (1601928000) to database 'weewx.sdb'
Oct  5 13:18:12 raspberrypi weewx[27641] INFO weewx.manager: Added record 2020-10-05 13:00:00 PDT (1601928000) to daily summary in 'weewx.sdb'
Oct  5 13:18:12 raspberrypi weewx[27641] DEBUG weewx.drivers.vantage: Empty record page 0; index 2
Oct  5 13:18:12 raspberrypi weewx[27641] INFO weewx.engine: Starting main packet loop.
Oct  5 13:18:12 raspberrypi weewx[27641] DEBUG weewx.restx: Ambient: url: http://www.pwsweather.com/pwsupdate/pwsupdate.php?action=updateraw&ID=KCACLARE3&PASSWORD=XXX&softwaretype=weewx-4.1.1&baromin=29.902&dateutc=2020-10-05%2020%3A00%3A00&dailyrainin=0.00&dewptf=43.2&rainin=0.00&leafwetness=000&leafwetness2=008&humidity=016&tempf=96.8&soilmoisture=001&soilmoisture2=008&soilmoisture3=000&soilmoisture4=000&soiltempf=-90.0&soiltemp2f=-90.0&soiltemp3f=-90.0&soiltemp4f=-90.0&winddir=292&windgustmph=5.0&windspeedmph=1.0
Oct  5 13:18:12 raspberrypi weewx[27641] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Oct  5 13:18:12 raspberrypi weewx[27641] DEBUG weewx.drivers.vantage: Requesting 200 LOOP packets.
Oct  5 13:18:12 raspberrypi weewx[27641] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Oct  5 13:18:13 raspberrypi weewx[27641] INFO weewx.restx: PWSWeather: Published record 2020-10-05 13:00:00 PDT (1601928000)
Oct  5 13:18:13 raspberrypi weewx[27641] INFO weewx.restx: StationRegistry: Published record 2020-10-05 13:00:00 PDT (1601928000)
Oct  5 13:24:48 raspberrypi weewx[27641] DEBUG weewx.drivers.vantage: Requesting 200 LOOP packets.
Oct  5 13:24:49 raspberrypi weewx[27641] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Oct  5 13:30:14 raspberrypi weewx[27641] DEBUG weewx.drivers.vantage: Getting archive packets since 2020-10-05 13:00:00 PDT (1601928000)
Oct  5 13:30:14 raspberrypi weewx[27641] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Oct  5 13:30:14 raspberrypi weewx[27641] DEBUG weewx.drivers.vantage: Retrieving 1 page(s); starting index= 2
Oct  5 13:30:15 raspberrypi weewx[27641] INFO weewx.manager: Added record 2020-10-05 13:30:00 PDT (1601929800) to database 'weewx.sdb'
Oct  5 13:30:15 raspberrypi weewx[27641] INFO weewx.manager: Added record 2020-10-05 13:30:00 PDT (1601929800) to daily summary in 'weewx.sdb'
Oct  5 13:30:16 raspberrypi weewx[27641] DEBUG weewx.restx: StationRegistry: wait interval (1800 < 604800) has not passed for record 2020-10-05 13:30:00 PDT (1601929800)
Oct  5 13:30:16 raspberrypi weewx[27641] DEBUG weewx.drivers.vantage: Empty record page 0; index 3
Oct  5 13:30:16 raspberrypi weewx[27641] DEBUG weewx.restx: Ambient: url: http://www.pwsweather.com/pwsupdate/pwsupdate.php?action=updateraw&ID=KCACLARE3&PASSWORD=XXX&softwaretype=weewx-4.1.1&baromin=29.889&dateutc=2020-10-05%2020%3A30%3A00&dailyrainin=0.00&dewptf=43.7&rainin=0.00&leafwetness=000&leafwetness2=008&humidity=016&tempf=97.5&soilmoisture=001&soilmoisture2=008&soilmoisture3=001&soilmoisture4=000&soiltempf=-90.0&soiltemp2f=-90.0&soiltemp3f=-90.0&soiltemp4f=-90.0&winddir=292&windgustmph=7.0&windspeedmph=1.0
Oct  5 13:30:16 raspberrypi weewx[27641] DEBUG weewx.reportengine: Running reports for latest time in the database.
Oct  5 13:30:16 raspberrypi weewx[27641] DEBUG weewx.drivers.vantage: Requesting 200 LOOP packets.
Oct  5 13:30:16 raspberrypi weewx[27641] DEBUG weewx.reportengine: Running report 'SeasonsReport'
Oct  5 13:30:16 raspberrypi weewx[27641] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Oct  5 13:30:17 raspberrypi weewx[27641] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
Oct  5 13:30:21 raspberrypi weewx[27641] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Oct  5 13:30:21 raspberrypi weewx[27641] DEBUG weewx.manager: Daily summary version is 2.0
Oct  5 13:30:23 raspberrypi weewx[27641] INFO weewx.restx: PWSWeather: Published record 2020-10-05 13:30:00 PDT (1601929800)
Oct  5 13:30:56 raspberrypi weewx[27641] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 36.83 seconds
Oct  5 13:30:58 raspberrypi weewx[27641] DEBUG weewx.manager: Daily summary version is 2.0
Oct  5 13:31:43 raspberrypi weewx[27641] INFO weewx.imagegenerator: Generated 30 images for report SeasonsReport in 45.77 seconds
Oct  5 13:31:44 raspberrypi weewx[27641] INFO weewx.reportengine: Copied 5 files to /var/www/html/weewx
Oct  5 13:31:44 raspberrypi weewx[27641] DEBUG weewx.reportengine: Report 'SmartphoneReport' not enabled. Skipping.
Oct  5 13:31:44 raspberrypi weewx[27641] DEBUG weewx.reportengine: Report 'MobileReport' not enabled. Skipping.
Oct  5 13:31:44 raspberrypi weewx[27641] DEBUG weewx.reportengine: Report 'StandardReport' not enabled. Skipping.
Oct  5 13:31:44 raspberrypi weewx[27641] DEBUG weewx.reportengine: Report 'FTP' not enabled. Skipping.
Oct  5 13:31:44 raspberrypi weewx[27641] DEBUG weewx.reportengine: Report 'RSYNC' not enabled. Skipping.
Oct  5 13:36:53 raspberrypi weewx[27641] DEBUG weewx.drivers.vantage: Requesting 200 LOOP packets.
Oct  5 13:36:53 raspberrypi weewx[27641] DEBUG weewx.drivers.vantage: Gentle wake up of console s

Tom Keffer

unread,
Oct 6, 2020, 7:37:43 PM10/6/20
to weewx-user
I'm not understanding what the problem is. The log shows two uploads: one at 13:18:13, and one at 13:30:23. 

Am I missing something?

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

Ken Harlan

unread,
Oct 6, 2020, 9:53:19 PM10/6/20
to weewx...@googlegroups.com
If those uploads look correct to you then there must be something wrong at PWS.  The data does not show up on the site although it shows it is active.

Thanks Tom, I will contact PWS.

Ken

You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/KAvBd5Zv21s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEBHXe4aM0X1N%3DSeyH3mYx%2Bk2spiNczbq1QMJNjnyo5ARg%40mail.gmail.com.

Tom Keffer

unread,
Oct 6, 2020, 10:02:29 PM10/6/20
to weewx-user
The log indicates the 1300 and 1330 records were uploaded. But, looking at your PWS page for yesterday (Oct-5), I'm not seeing the two data points.

Ken Harlan

unread,
Oct 9, 2020, 2:28:17 PM10/9/20
to weewx-user
Thanks for the help.  Problem is solved.  For some mysterious reason my Ambient station in Payson AZ station started to send data to the PWS.  We powered down the Payson station and reset it and all is well.

Ken
Reply all
Reply to author
Forward
0 new messages