I removed the int() around the station ID and re-ran with debug=2. It returned the below. Still a POST vs GET issue?
Apr 20 11:15:17 zeus weewx[22541]: restx: Windy: url: https://stations.windy.com/pws/update/<api key removed> Apr 20 11:15:17 zeus weewx[22541]: restx: Windy: JSON: {'observations': [{ 'dateutc': '2019-04-20 15:15:00', 'dewpoint': 14.953428002286248, 'temp': 18.773504273504305, 'precip': 0.508, 'gust': 2.2352, 'uv': 1.1146666666666658, 'winddir': 176.02341016941148, 'pressure': 101325.54900876262, 'station': 'f06ee9f5', 'rh': 78.47611940298506, 'wind': 0.956326075949367}]} Apr 20 11:15:17 zeus weewx[22541]: restx: Windy: Failed upload attempt 1: HTTP Error 400: Bad Request Apr 20 11:15:22 zeus weewx[22541]: restx: Windy: Failed upload attempt 2: HTTP Error 400: Bad Request Apr 20 11:15:27 zeus weewx[22541]: restx: Windy: Failed upload attempt 3: HTTP Error 400: Bad Request Apr 20 11:15:32 zeus weewx[22541]: restx: Windy: Failed to publish record 2019-04-20 11:15:00 EDT (1555773300): Failed upload after 3 tries On Saturday, April 20, 2019 at 10:39:28 AM UTC-4, Pat wrote: > > I just signed up for this today and am using 0.31 of the extension, and > I'm receiving this error. I've placed the ID in quotes and still am > receiving the error. Looks like they aren't using integers for station ID > anymore? > > My windy details: > > ID: f06ee9f5 > > Latitude: 42.223667° > > Longitude: -72.374466° > > Elevation: 131.06 m > > Apr 20 10:37:04 zeus weewx[21868]: restx: Windy: version is 0.31 > Apr 20 10:37:04 zeus weewx[21868]: engine: Caught unrecoverable exception > in engine: > Apr 20 10:37:04 zeus weewx[21868]: **** invalid literal for int() > with base 10: 'f06ee9f5' > Apr 20 10:37:04 zeus weewx[21868]: **** Traceback (most recent call > last): > Apr 20 10:37:04 zeus weewx[21868]: **** File > "/usr/share/weewx/weewx/engine.py", line 884, in main > Apr 20 10:37:04 zeus weewx[21868]: **** engine = engine_class( > config_dict) > Apr 20 10:37:04 zeus weewx[21868]: **** File > "/usr/share/weewx/weewx/engine.py", line 78, in __init__ > Apr 20 10:37:04 zeus weewx[21868]: **** self.loadServices( > config_dict) > Apr 20 10:37:04 zeus weewx[21868]: **** File > "/usr/share/weewx/weewx/engine.py", line 142, in loadServices > Apr 20 10:37:04 zeus weewx[21868]: **** self.service_obj.append( > weeutil.weeutil._get_object(svc)(self, config_dict)) > Apr 20 10:37:04 zeus weewx[21868]: **** File > "/usr/share/weewx/user/windy.py", line 82, in __init__ > Apr 20 10:37:04 zeus weewx[21868]: **** **site_dict) > Apr 20 10:37:04 zeus weewx[21868]: **** File > "/usr/share/weewx/user/windy.py", line 111, in __init__ > Apr 20 10:37:04 zeus weewx[21868]: **** self.station = int( > station) > Apr 20 10:37:04 zeus weewx[21868]: **** ValueError: invalid literal > for int() with base 10: 'f06ee9f5' > Apr 20 10:37:04 zeus weewx[21868]: **** Exiting. > > > > > On Saturday, April 20, 2019 at 10:16:11 AM UTC-4, Tom Keffer wrote: >> >> Are you sure you are using the current version of windy.py? Version 0.3 >> does not post the url to the log. >> >> In any case, use the attached version. Set debug=2, then restart weewx. >> This version (v0.31) will not only post the url to the log, but also the >> JSON body. >> >> -tk >> >> >> On Sat, Apr 20, 2019 at 6:57 AM Hartmut Schweidler <[email protected]> >> wrote: >> >>> Hallo >>> >>> ich habe die neue Version von windy.py >>> VERSION = "0.3" >>> geladen >>> im log taucht nur auf >>> Apr 20 15:50:25 wetter OWFS[8025]: restx: Windy: url: >>> https://stations.windy.com/pws/update/To5ff ... api_key ohne DATEN >>> Apr 20 15:50:25 wetter OWFS[8025]: restx: AWEKAS: url: >>> http://data.awekas.at/eingabe_pruefung.php?val=hes................_4.0.0a4;11.341407;53.6059563 >>> Apr 20 15:50:25 wetter OWFS[8025]: vantage: Gentle wake up of console >>> successful >>> >>> Apr 20 15:50:30 wetter OWFS[8025]: manager: Daily summary version is 2.0 >>> Apr 20 15:50:30 wetter OWFS[8025]: manager: Daily summary version is 2.0 >>> Apr 20 15:50:30 wetter OWFS[8025]: restx: Windy: Failed upload attempt >>> 2: HTTP Error 400: Bad Request >>> Apr 20 15:50:31 wetter OWFS[8025]: manager: Daily summary version is 2.0 >>> >>> Hartmut (wetter.hes61.de) >>> >>> Am Donnerstag, 18. April 2019 22:01:48 UTC+2 schrieb mwall: >>>> >>>> On Thursday, April 18, 2019 at 12:23:32 PM UTC-4, Wysiwyg wrote: >>>>> >>>>> api_key is filled by the key I get from >>>>> https://stations.windy.com/stations >>>>> it's a very long key ( ~124 characters) >>>>> >>>> >>>> yes, the api_key is ridiculously long. they must be expecting data >>>> from every atom in the universe. >>>> >>>> >>>
