Author Topic: Website widgets / WU Stickers not working in 2020  (Read 394 times)

0 Members and 1 Guest are viewing this topic.

Offline RHYC-web

  • Member
  • *
  • Posts: 7
    • Rock Hall Yacht Club
Website widgets / WU Stickers not working in 2020
« on: July 25, 2020, 01:26:37 PM »
I've had my Weather Underground website widgets (stickers) work and not work over the past year. Now all they do is report "No Data"

Also see at this page https://doc.media.weather.com/products/v3.1/developer_widgets.php that widgets are available upon request. I have not been successful in configuring our site for that.

Our webpage: https://rockhallyachtclub.org/weather/

Can anyone explain how to convert old WU stickers to read data from a personal weather station?

Offline WSWeather

  • Forecaster
  • *****
  • Posts: 483
Re: Website widgets / WU Stickers not working in 2020
« Reply #1 on: July 25, 2020, 02:28:34 PM »
Sadly, IBM has decided that you need to pay for your own data; the back-end for the old widgets and stickers was trashed months ago.   If you have your own PWS there is a way to get your own data in raw form but you'll need to write some code to use it.  You'll have to do that anyway if you want to have something that fits into the spot the old one you used did, because what they are offering now won't.

The "new and improved Max Web" (which is from early2017, before the latest WU "upgrade" screwed everything up) does not allow you to specify a particular PWS or weather station, and instead does a horrid job of "geolocating" one somewhat nearby but not necessarily relevant and if there are a bunch of them nearby almost certainly won't be yours.

Offline WSWeather

  • Forecaster
  • *****
  • Posts: 483
Re: Website widgets / WU Stickers not working in 2020
« Reply #2 on: July 25, 2020, 02:37:50 PM »
Here's what I get for your PWS when I use the "free" API key that WU hands out to PWS owners.  The data is there and you may be able to figure out a way to incorporate it into your site somehow.

Code: [Select]
{
  "observations": [
    {
      "stationID": "KMDROCKH11",
      "obsTimeUtc": "2020-07-25T18:40:43Z",
      "obsTimeLocal": "2020-07-25 14:40:43",
      "neighborhood": "Rock Hall Yacht Club",
      "softwareType": "WS-1001 V2.2.9",
      "country": "US",
      "solarRadiation": 265,
      "lon": -76.182625,
      "realtimeFrequency": null,
      "epoch": 1595702443,
      "lat": 39.11264,
      "uv": 4,
      "winddir": 120,
      "humidity": 77,
      "qcStatus": 1,
      "imperial": {
        "temp": 85,
        "heatIndex": 95,
        "dewpt": 77,
        "windChill": 85,
        "windSpeed": 3,
        "windGust": 3,
        "pressure": null,
        "precipRate": 0,
        "precipTotal": 0,
        "elev": 40
      }
    }
  ]
}

The call that returned that is:
Code: [Select]
https://api.weather.com/v2/pws/observations/current?stationId=KMDROCKH11&format=json&units=e&apiKey=yourAPIkeyhere

Replace "yourAPIkeyhere" with your WU API key .  You can insert any PWS ID...their system doesn't associate it with the key.
« Last Edit: July 25, 2020, 02:42:02 PM by WSWeather »

Offline RHYC-web

  • Member
  • *
  • Posts: 7
    • Rock Hall Yacht Club
Re: Website widgets / WU Stickers not working in 2020
« Reply #3 on: July 25, 2020, 06:15:54 PM »
@WSWeather - Thank you very much!  I will see what I can do with that.

 

anything