Author Topic: Weather Underground API has reimplemented Decimal Support  (Read 791 times)

0 Members and 1 Guest are viewing this topic.

Offline SteveFitz1

  • Forecaster
  • *****
  • Posts: 521
    • Tyler Texas Weather
Weather Underground API has reimplemented Decimal Support
« on: August 18, 2019, 05:19:01 PM »
I haven't seen this mentioned anywhere on the WxForum so I thought I would mention it here. Temperatures with a decimal place are now available through the WU API. (Decimals returned to Wundermap a few weeks back.) If your script is working with the new WU API key you received earlier this year, the only change you need to make to get a decimal value with your temperature is to add "numericPrecision=decimal" as a parameter in your WU API call. The resulting call should look something like:
Code: [Select]
https://api.weather.com/v2/pws/observations/current?stationId=stationofyourchoice&format=json&units=e&numericPrecision=decimal&apiKey=apikeynumber

Offline waiukuweather

  • Forecaster
  • *****
  • Posts: 1072
Re: Weather Underground API has reimplemented Decimal Support
« Reply #1 on: August 18, 2019, 05:34:34 PM »
perfect

 

anything