Windy uploads not working as expected

97 views
Skip to first unread message

9sl...@gmail.com

unread,
Mar 26, 2023, 10:35:40 PM3/26/23
to weewx-user
First posted in WXForum.

Enjoying v 4.10.2!

Major success re-installing WeatherCloud, thanks to brilliant advice from Gyvate ( [tup]):
https://www.wxforum.net/index.php?topic=43074.msg439100#msg439100, specifically

"I'd expect to see a service under restful_services = weewx.restx.StdWU, ......, weewx.restx.Stdwcloud )".

weewx.conf:

    [[WeatherCloud]]
187         id = eb03bf373d91058f
188         key = b4d2dd7c58d8a069687425135ennnnn

603          restful_services =  ..........................weewx.restx.StdWU, ......user.wcloud.WeatherCloud

Perfect.

Question: OpenWeatherMap and Windy are in weewx.conf per their own instructions, but neither shows up as a service. What could  I add to restful_services to assist here?

Thanks!
__________________________________________________________________________

weewx.conf

[StdRESTful] :

   [[Windy]]
       enable = true
       api_key = ABCDEciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjaSI6NzY3NTg0NywiaWF0
 
[Engine]

    # The following section specifies which services should be run and in what >

[Services]]
        prep_services = weewx.engine.StdTimeSynch
        data_services = ,
        process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, weewx.wxservices.StdWXCalculate
        xtype_services = weewx.wxxtypes.StdWXXTypes, weewx.wxxtypes.StdPressureCooker, weewx.wxxtypes.StdRainRater, weewx.wxxtypes.StdDelta
        archive_services = weewx.engine.StdArchive
        restful_services = weewx.restx.StdStationRegistry, weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS, user.wcloud.WeatherCloud
        report_services = weewx.engine.StdPrint, weewx.engine.StdReport

_____________________________________________________

Windy loaded via https://github.com/matthewwall/weewx-windy 

syslog shows

Mar 27 15:23:56 raspberrypi weewx[4341] DEBUG weewx.engine: Finished loading service weewx.restx.StdStationRegistry
Mar 27 15:23:56 raspberrypi weewx[4341] DEBUG weewx.engine: Loading service weewx.restx.StdWunderground
Mar 27 15:23:56 raspberrypi weewx[4341] DEBUG weewx.restx: WU essentials: {}
Mar 27 15:23:56 raspberrypi weewx[4341] INFO weewx.restx: Wunderground-RF: Data for station IAUCKLAN159 will be posted
Mar 27 15:23:56 raspberrypi weewx[4341] DEBUG weewx.engine: Finished loading service weewx.restx.StdWunderground
Mar 27 15:23:56 raspberrypi weewx[4341] DEBUG weewx.engine: Loading service weewx.restx.StdPWSweather
Mar 27 15:23:56 raspberrypi weewx[4341] INFO weewx.restx: PWSWeather: Data for station IAUCKLAN159 will be posted
Mar 27 15:23:56 raspberrypi weewx[4341] DEBUG weewx.engine: Finished loading service weewx.restx.StdPWSweather
Mar 27 15:23:56 raspberrypi weewx[4341] DEBUG weewx.engine: Loading service weewx.restx.StdCWOP
Mar 27 15:23:56 raspberrypi weewx[4341] INFO weewx.restx: CWOP: Posting not enabled.
Mar 27 15:23:56 raspberrypi weewx[4341] DEBUG weewx.engine: Finished loading service weewx.restx.StdCWOP
Mar 27 15:23:56 raspberrypi weewx[4341] DEBUG weewx.engine: Loading service weewx.restx.StdWOW
Mar 27 15:23:56 raspberrypi weewx[4341] INFO weewx.restx: WOW: Posting not enabled.
Mar 27 15:23:56 raspberrypi weewx[4341] DEBUG weewx.engine: Finished loading service weewx.restx.StdWOW
Mar 27 15:23:56 raspberrypi weewx[4341] DEBUG weewx.engine: Loading service weewx.restx.StdAWEKAS
Mar 27 15:23:56 raspberrypi weewx[4341] INFO weewx.restx: AWEKAS: Data will be uploaded for user rcnz
Mar 27 15:23:56 raspberrypi weewx[4341] DEBUG weewx.engine: Finished loading service weewx.restx.StdAWEKAS
Mar 27 15:23:56 raspberrypi weewx[4341] DEBUG weewx.engine: Loading service user.wcloud.WeatherCloud
Mar 27 15:23:56 raspberrypi weewx[4341] INFO user.wcloud: service version is 0.13
Mar 27 15:23:56 raspberrypi weewx[4341] INFO user.wcloud: Data will be uploaded for id=eb03bf373d91058f
Mar 27 15:23:56 raspberrypi weewx[4341] DEBUG weewx.engine: Finished loading service user.wcloud.WeatherCloud
Mar 27 15:23:56 raspberrypi weewx[4341] DEBUG weewx.engine: Loading service weewx.engine.StdPrint
Mar 27 15:23:56 raspberrypi weewx[4341] DEBUG weewx.engine: Finished loading service weewx.engine.StdPrint
Mar 27 15:23:56 raspberrypi weewx[4341] DEBUG weewx.engine: Loading service weewx.engine.StdReport
Mar 27 15:23:56 raspberrypi weewx[4341] INFO weewx.engine: 'pyephem' detected, extended almanac data is available
Mar 27 15:23:56 raspberrypi weewx[4341] DEBUG weewx.engine: Finished loading service weewx.engine.StdReport

Nothing in there about Windy - will I need to make a manual entry in 

restful_services = ?

(This was the single missing piece for getting WeatherCloud uploads working)

Thanks!

gjr80

unread,
Mar 27, 2023, 6:07:50 AM3/27/23
to weewx-user
Yes there should be some additional restful_services entries for the windy and weathercloud uploaders. Did you install the windy and weathercloud uploaders using wee_extension as per the respective readmes? If so did wee_extension run without error in each case? Using wee_extension to install uploaders, drivers, skins etc where possible is preferred, and with these uploaders wee_extension should have taken care of all the necessary config changes to weewx.conf as well as copying the necessary files to the correct locations. The only manual entries you should need to make are to enter API keys/ids under the [StdRESTful] [[Windy]] and [StdRESTful] [[WeatherCloud]] stanzas in weewx.conf.

Before resorting to manual installation I would try following the readmes again to download and install the two uploaders taking note of the wee_extension output.

Gary

9sl...@gmail.com

unread,
Mar 27, 2023, 5:56:33 PM3/27/23
to weewx-user
Thanks, Gary!

Yes to wee--extension for both installs. For WeatherCloud, I had to enter the user.wcloud.WeatherCloud in 

[Engine]

    # The following section specifies which services should be run and in what order.
    #230326 ADDED: "user.wcloud.WeatherCloud" per below
    #https://www.wxforum.net/index.php?topic=41444.msg424705#
    [[Services]]

In the meantime, I'll leave WeatherCloud (because its data are uploading).

I'll do another wee--extension for Windy per https://github.com/matthewwall/weewx-windy

The only difference from the Windy readme is my restart:  sudo systemctl restart weewx

Robin

9sl...@gmail.com

unread,
Mar 28, 2023, 7:28:53 PM3/28/23
to weewx-user
Update:

ALL* services now running as expected:

Sticking precisely to install instructions and extreme caution pasting to weewx.conf (Sincere thanks to gjr80 , who pointed me to this)   [tup] =D>

* ALL except PWSWeather (this has run perfectly since I moved to WeeWx  - it "just worked".

After the reinstalls above, I added services (AWEKAS, WU, etc) by pasting previous entries over the "replace me" text in weewx.conf". All fine until PWSWeather.

weewx.conf:

        [[PWSweather]]

                station = IAUCKLAN159
                password = "same password as previous"
syslog:

tail -n 300 -f /var/log/syslog | grep PWS
Mar 29 12:11:45 raspberrypi weewx[23603] DEBUG weewx.engine: Loading service weewx.restx.StdPWSweather
Mar 29 12:11:45 raspberrypi weewx[23603] INFO weewx.restx: PWSWeather: Data for station IAUCKLAN159 will be posted
Mar 29 12:11:45 raspberrypi weewx[23603] DEBUG weewx.engine: Finished loading service weewx.restx.StdPWSweather
Mar 29 12:13:44 raspberrypi weewx[23603] DEBUG weewx.restx: Shut down PWSWeather thread.
Mar 29 12:13:50 raspberrypi weewx[23667] DEBUG weewx.engine: Loading service weewx.restx.StdPWSweather
Mar 29 12:13:50 raspberrypi weewx[23667] INFO weewx.restx: PWSWeather: Data for station IAUCKLAN159 will be posted
Mar 29 12:13:50 raspberrypi weewx[23667] DEBUG weewx.engine: Finished loading service weewx.restx.StdPWSweather
Mar 29 12:15:19 raspberrypi weewx[23667] DEBUG weewx.restx: PWSWeather: Failed upload attempt 1: HTTP Error 401: Unauthorized
Mar 29 12:15:24 raspberrypi weewx[23667] DEBUG weewx.restx: PWSWeather: Failed upload attempt 2: HTTP Error 401: Unauthorized
Mar 29 12:15:30 raspberrypi weewx[23667] DEBUG weewx.restx: PWSWeather: Failed upload attempt 3: HTTP Error 401: Unauthorized
Mar 29 12:15:30 raspberrypi weewx[23667] ERROR weewx.restx: PWSWeather: Failed to publish record 2023-03-29 12:15:00 NZDT (1680045300): Failed upload after 3 tries


[Engine]

        # The following section specifies which services should be run and in what order.
        [[Services]]

                prep_services = weewx.engine.StdTimeSynch
                data_services = ,
                process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, weewx.wxservices.StdWXCalculate
                xtype_services = weewx.wxxtypes.StdWXXTypes, weewx.wxxtypes.StdPressureCooker, weewx.wxxtypes.StdRainRater, weewx.wxxtypes.StdDelta
                archive_services = weewx.engine.StdArchive
                restful_services = weewx.restx.StdStationRegistry, weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS, user.w>
                report_services = weewx.engine.StdPrint, weewx.engine.StdReport

Mystery!

vince

unread,
Mar 28, 2023, 7:33:06 PM3/28/23
to weewx-user
For PWSweather you need to use your api key, not your password for logging into their website.  You might want to check that.

9sl...@gmail.com

unread,
Mar 28, 2023, 8:18:10 PM3/28/23
to weewx-user
Thanks, Vince!

Looking...

9sl...@gmail.com

unread,
Mar 28, 2023, 8:30:47 PM3/28/23
to weewx-user
Couldn't get API, but changed password. Fixed!

I'll check with PWSWeather re API

Thanks again!
Reply all
Reply to author
Forward
0 new messages