I notice when I first got my API key it looked like yours. So I put in in
the windy config. I got an error.
restx: Windy: Failed to publish record 2019-04-20 20:15:00 PDT
(1555816500): Failed upload after 3 tries
So I used the https URI with that key and got an error 'invalid API key'
It would be very nice if windy.py would return the error detail as well.
My Python skills are 'slim'. using curl would perhaps also shown more
detail of the https transaction using their 'sample' GET URI. I'm also not
sure if debug = 1 would have shown more detail of the failure reason.
But on the web page, I found no PWS defined. When I created my PWS, I got
a different key. It is 124 bytes long, replaced the API key on the URI and
it returned SUCCESS. Updated weewx.conf Windy API key
weewx[9396]: restx: Windy: Published record 2019-04-20 20:35:00 PDT
(1555817700)
I've since added.
[[Windy]]
log_success = False
log_failure = True
Noting as well the instructions for the extension say add [[Windy]], but
it's already installed, just needs the correct API key and it was good to
go.
TL;DR
Looks like your API key isn't the right one, it's too short.
Python 2.7.15
Weewx 3.9.1
On Saturday, April 20, 2019 at 9:41:46 PM UTC-7, Hartmut Schweidler wrote:
>
> Hallo Tom
>
> in the weewx.conf
>
>
> [[Windy]]
> api_key = To5ff9Wi6thg1HvnTdSad16pEjjUhWZg
> station = 0
> #stations_id = f06ea48e
>
> and in
> restful_services = weewx.restx.StdStationRegistry, weewx.restx.
> StdPWSweather, weewx.restx.StdCWOP, weewx.restx.StdAWEKAS, user.wcloud.
> WeatherCloud, user.weather365.Weather365, user.windfinder.WindFinder, user
> .windguru.WindGuru, user.windy.Windy
>
>
> the result is
>
> Apr 21 06:25:26 wetter OWFS[28695]: reportengine: Found configuration
> file /home/weewx/skins/Standard/skin.conf for report 'StandardReport'
> Apr 21 06:25:26 wetter OWFS[28695]: restx: Ambient: url: http://
> www.pwsweather.com/pwsupdate/pwsupdate.php?action=updateraw&ID=heskrfrr38&PASSWORD=XXX&softwaretype=weewx-4.0.0a4&dateutc=2019-04-21%2004%3A25%3A00&baromin=30.270&tempf=36.8&humidity=082&windspeedmph=1.0&winddir=045&windgustmph=3.0&dewptf=31.8&rainin=0.00&dailyrainin=0.00&solarradiation=12.00&UV=0.00&soiltempf=46.0&soiltemp2f=46.0&soiltemp3f=48.0&soiltemp4f=49.0&soilmoisture=049&soilmoisture2=073&soilmoisture3=044&soilmoisture4=037&leafwetness=000
> Apr 21 06:25:26 wetter OWFS[28695]: restx: Windy: url: https://
> stations.windy.com/pws/update/To5ff9Wi6thg1HvnTdSad16pEjjUhWZg
> Apr 21 06:25:26 wetter OWFS[28695]: restx: Windy: JSON: {'observations':
> [{'station': 0, 'dateutc': '2019-04-21 04:25:00', 'temp':
> 2.666666666666665, 'wind': 0.44704111147150566, 'winddir': 45.0, 'gust':
> 1.3411233344145173, 'rh': 82.0, 'dewpoint': -0.09430987005889414,
> 'pressure': 102505.9695673762, 'precip': 0.0, 'uv': 0.0}]}
> Apr 21 06:25:26 wetter OWFS[28695]: vantage: Gentle wake up of console
> successful
> Apr 21 06:25:26 wetter OWFS[28695]: cheetahgenerator: using search list
>
> Apr 21 06:25:26 wetter OWFS[28695]: restx: AWEKAS: Published record 2019-
> 04-21 06:25:00 CEST (1555820700)
> Apr 21 06:25:26 wetter OWFS[28695]: restx: WindGuru: Published record 2019
> -04-21 06:25:00 CEST (1555820700)
> Apr 21 06:25:26 wetter OWFS[28695]: restx: Weather365: Published record
> 2019-04-21 06:25:00 CEST (1555820700)
> Apr 21 06:25:26 wetter OWFS[28695]: restx: Windy: Failed upload attempt 1:
> HTTP Error 400: Bad Request
> Apr 21 06:25:26 wetter OWFS[28695]: restx: PWSWeather: Published record
> 2019-04-21 06:25:00 CEST (1555820700)
>
> Apr 21 06:25:31 wetter OWFS[28695]: restx: Windy: Failed upload attempt 2:
> HTTP Error 400: Bad Request
>
> Apr 21 06:25:36 wetter OWFS[28695]: restx: Windy: Failed upload attempt 3:
> HTTP Error 400: Bad Request
> Apr 21 06:25:36 wetter OWFS[28695]: restx: Windy: Failed to publish
> record 2019-04-21 06:25:00 CEST (1555820700): Failed upload after 3 tries
>
>
> in the log file is missing an entry like
>
> https://stations.windy.com/pws/update/
> To5ff9Wi6thg1HvnTdSad16pEjjUhWZg?{'observations': [{'station': 0,
> 'dateutc': '2019-04-21 04:25:00', 'temp': 2.666666666666665, 'wind':
> 0.44704111147150566, 'winddir': 45.0, 'gust': 1.3411233344145173, 'rh':
> 82.0, 'dewpoint': -0.09430987005889414, 'pressure': 102505.9695673762,
> 'precip': 0.0, 'uv': 0.0}]}
>
> by windy --&
>