Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Trying to get data from PWS

WILLIAM E WEBB Mar 20, 2019 06:26PM GMT

I have successfully added my PWS. I have also successfully patched Weewx to sent data to OpenWeatherMap.

So far so good.

I have not been able to retrieve any data. I have redacted my api from this string.

https://api.openweathermap.org/data/3.0/measurements?
station_id=5c87dd0b6c634e000131b3aa&type=h&limit=100&appid=redacted

The result is the cryptic error: {"code":400001,"message":"Parametr from is required"}

I am probably constructing the request incorrectly. What am I doing wrong?

Bill

Up 0 rated Down
WILLIAM E WEBB Mar 20, 2019 06:47PM GMT
Answered my own question. although not shown in the sample "to" and "from" are mandatory. They are in Epoch time UTC, not local.

P.S. The weather data on OpenWeatherMap for Irvine California and neighboring Orange are hilariously off. Its been a long time since Irvine has seen 26 degrees F.

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
9eda11838f597e7a95b6a1c991dcae0a@openweathermap.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete