0
Answered: Discussion Open

Weather Underground API

gsgentry 1 year ago in Media Tiles / Weather & Traffic • updated by Terry (ActionTiles) (Co-Founder) 5 months ago 17

I have a PWS (personal weather station) that feeds with the weather underground. I have my own station ID and API Key... is there any way I can get AT to show some of the information from the PWS?


Thank you!

Answer

Answer
Answered: Discussion Open

Yes,


Create a stock Smart Weather Tile device in the ST IDE, then open your mobile app and specify your station ID in the preferences. Then, this device will display the reading from your station.

Answer
Answered: Discussion Open

Yes,


Create a stock Smart Weather Tile device in the ST IDE, then open your mobile app and specify your station ID in the preferences. Then, this device will display the reading from your station.

When I got into ST IDE and add "SmartWeather Station Tile", which is the only one there I see, then go into the settings from the app, the only option I see if zip code. Any ideas?

I think you should enter it in the Zip Code box. Then it determines whether it's a location or a WU station.

That didn't work. I tried but when I check the data against my PWS app, they information is different on several parameters.

This sounds interesting.

I'll try it for my WU station.

Until now I have just had an icon that launched the weather station in a web browser window.

When creating the Weather Station Tile, what is meant by Device Network ID?

What info is it looking for?

Where do I find it?

+1

You can put in any unique value.


The Device Network ID field is only important for real Devices on your ZigBee, Z-Wave, or LAN networks.

+2

In the zip code field, I use "pws:StationID". It seems to work well.

That was the ticket... now the data matches exactly, so it must be working.


Thanks!!!

Terry and bne,

Thanks to both of you. 

Looks like it is working now, in both AT and ST.


hey guys, sorry I know this is a little old but thought it was a good place to add the question. I got my personal PWS working, but the windspeed is in MPH while the rest is in metric units. Any idea what I can do to fix that?

+1

thanks for the quick answer

I cannot seem to get my PWS to update the app. I tried pws:stationID and it works when I first put it in, but then fails to update after that. Any suggestions?

Check the Live Logging and Device detail pages in https://account.smartthings.com 


ActionTiles issues a refresh every 30 minutes, but you may want to try another way to force refresh.

It tries to update but the data never changes. I have tried my station key, my station ID in different formats but nothing seems to work. I am not sure it ever did. The only thing that does seem to work is my Zip code, but it is not pulling that info from MY Weatherstation which is really what I am after. 


The DTH is written by SmartThings so we don't have any expertise to fix it (and we can't push a fix that keeps it compatible with ActionTiles).


I think this is the source code; you or someone at https://community.smartthings.com might be able to diagnose.


https://github.com/SmartThingsCommunity/SmartThingsPublic/blob/b93b727605b5800cb8d75342fb47dd3096c8af28/devicetypes/smartthings/smartweather-station-tile.src/smartweather-station-tile.groovy