Update:

ALL* services now running as expected:


   - Complete WeeWX removal/ reinstall per WeeWX User Guide | setup.py
   - Fresh reinstall of individual services from 
   https://github.com/matthewwall?tab=repositories
   
Sticking precisely to install instructions and extreme caution pasting to 
weewx.conf (Sincere thanks to gjr80 , who pointed me to this)   [image: 
[tup]] [image: =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!

On Tuesday, 28 March 2023 at 10:56:33 UTC+13 [email protected] wrote:

> 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
> On Monday, 27 March 2023 at 23:07:50 UTC+13 gjr80 wrote:
>
>> 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
>> On Monday, 27 March 2023 at 12:35:40 UTC+10 [email protected] wrote:
>>
>>> 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!
>>>
>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/87764eff-0fd8-4868-947a-6a126f67fb6cn%40googlegroups.com.

Reply via email to