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
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
Weather Underground
Moderator: Martin
Re: Weather Underground
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.
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.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.