Weather Underground

Share and discuss your flows and ideas with other users.

Moderator: Martin

Post Reply
BoBo
Posts: 129
Joined: 05 May 2014 12:45

Weather Underground

Post by BoBo » 18 Mar 2020 13:22

Hi,
I've used the W(eather)Underground-app for several years (Android&iOS), but had to realize that it will be abandoned a few days from now.
Nevertheless, you can still get your basic data from their website. To call it with a/your weather station, you only have to identify its specific ID and run it in "Dashboard"-mode. So Automagic is at your service :) The flow is as simple as this:

a) Trigger > Shortcut > "MyWeather" (Or whatever title you prefer)
b) Action > Open URL in Browser > URL "http://wunderground.com/dashboard/pws/<ID of your weather station>"

Well, to get the correct ID you've to identify the location of your nearest weather station on this map: https://www.wunderground.com/wundermap
Once found, just click on its icon and you'll see a proper link labeled "Station ID". Done

:idea: You can fine-tune the output calling for an even more detailed view ...
https://www.wunderground.com/dashboard/ ... 3-18/daily
... were the "from" + "until"-parameters can be set as {variables}. Btw, the "table"-parameter can be replaced with "graph" to get an additional option.
https://www.wunderground.com/dashboard/pws/KCAVACAV30/table/{getDate(), dateformat, yyyy-MM-dd}/{getDate(). dateformat, yyyy-MM-dd}/daily

PS. If you let Automagic assign the website's (default) icon to the shortcut it's looking blurry. If you download the wunderground app (as long it is still available) you c can assign the apps laser-sharp original icon to your shortcut. Much better!

Have phun 8-)

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Weather Underground

Post by Desmanto » 18 Mar 2020 18:57

AFAIK, it has API, but now is paid and not cheap. Accessing the URL from website is still possible. Or you can use HTTP request to the URL you need, then use regex to parse the information you need. As long as the website doesn't change the format, the flow should be working for quite some time, until they change the style. Or you can also do the hard way once, find the possible json that store the weather. This might need 1 to several hours long trying to read the website javascript to see where it goes. Then use that json as the basic data. But this is not always possible to do so in all websites.

To get the icon, you can always save their icon from the playstore. Or if you still have the apk, you can extract it out and go to res folder. Find the drawable with the highest dpi you can find, usually xxhdpi. Copy the png file and use it as the icon.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply