Author Topic: unauthorized  (Read 652 times)

0 Members and 1 Guest are viewing this topic.

Offline johnj

  • Member
  • *
  • Posts: 1
unauthorized
« on: April 28, 2023, 08:01:02 AM »
I'm trying to send data to their API with the correct id and key.

Code: [Select]
curl -A "Ambient Weather WS-1200-IP" -s -k 'http://rtupdate.wunderground.com/weatherstation/updateweatherstation.php?ID="stationid"&PASSWORD="stationkey"&dateutc=now&action=updateraw'

I have tried both rtupdate.wunderground.com and weatherstation.wunderground.com with both http and https and various parameters, regardless according to the original article:

https://support.weather.com/s/article/PWS-Upload-Protocol?language=en_US

The ID + Password + Date should be enough to successfully send data.

I have tried it with 2 stations in my dashboard. Did they change their API or what's going on?



Offline sky_watcher

  • Contributor
  • ***
  • Posts: 138
Re: unauthorized
« Reply #1 on: May 03, 2023, 01:37:46 AM »
I'm trying to send data to their API with the correct id and key.

Code: [Select]
curl -A "Ambient Weather WS-1200-IP" -s -k 'http://rtupdate.wunderground.com/weatherstation/updateweatherstation.php?ID="stationid"&PASSWORD="stationkey"&dateutc=now&action=updateraw'
A couple of thoughts.
(1) Have you made sure that your password is correctly encoded (if it needs to be encoded)?
(2) Are you sure when it says not all fields must be sent that it means that no fields (apart from dateutc, ID and key) need to be sent? That is, have you tried adding an actual reading?

Good Luck
“The more a man knows, the more willing he is to learn. The less a man knows, the more positive he is that he knows everything...” ― Robert G. Ingersoll

Offline SteveFitz1

  • Forecaster
  • *****
  • Posts: 524
    • Tyler Texas Weather
Re: unauthorized
« Reply #2 on: May 03, 2023, 02:11:11 PM »
I send my data via a cURL script to https://weatherstation.wunderground.com instead of http://rtupdate.wunderground.com. Don't know if that would make any difference.

Steve

Offline Vasco

  • Forecaster
  • *****
  • Posts: 531
    • PWS
Re: unauthorized
« Reply #3 on: May 03, 2023, 02:36:07 PM »
The ID + Password + Date should be enough to successfully send data.

You can't use your account password any more, it has to be your device key.
Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10