Best card: use weather.gov’s gifs to create easy radar
Ex:
type: picture
image: https://radar.weather.gov/ridge/standard/KLOT_loop.gif
tap_action:
action: url
url_path: https://forecast.weather.gov/MapClick.php?lat=41.8832&lon=-87.6324
Best card: use weather.gov’s gifs to create easy radar
Ex:
type: picture
image: https://radar.weather.gov/ridge/standard/KLOT_loop.gif
tap_action:
action: url
url_path: https://forecast.weather.gov/MapClick.php?lat=41.8832&lon=-87.6324
I know they said its not an article of best practice, but holy shit they had to add an additional layer in there to optimize anything…
Not to be a stick in the mud, but treating a URL like a “sentence” will always be better in the long run. Unless you already have a flat structure, in which case carry on.
You can even add a caching layer later on if you find you need to scale your DB, but at that point its still going to be loads better than any “UX”. Shit, you could even toss a redirect specific to your landing page, or just a rewrite at the routing layer. Sure, you lose the ease of adding them, but maybe it shouldn’t be so easy.
/rant
I went for a zwave tilt sensor: pricey, but relatively simple enough that I only had to worry about the battery :)
When opened, it sent a notification. If left open for longer than 30m, a high priority notification every half that I left it open for X minutes. Biggest issue I had after that was leaving it open on purpose 🙃