[RELEASE] Weather Watcher - multi-day forecast dashboard tile + weather attributes for rules

Weather Watcher puts current conditions and a clean multi-day forecast on your Hubitat dashboard, and gives you the same data as device attributes you can use in rules.

This project was heavily inspired by the weather forecast tile included in the Rachio Community app, which unfortunately only works while the controller has an active schedule (that is, not during winter). There are a lot of weather apps on Hubitat that grab current conditions and forecasts for rules, but none were really quite right for my dashboard. So, here we are.

Weather Watcher (and most of this post) was written entirely with Grok Bot, an AI assistant.

Weather Watcher tile: current conditions above the 7-day forecast

What it does

  • Current conditions (optional): a block above the forecast with a large icon (night version after sunset), the temperature, condition, feels-like and today's high / low, plus Humidity, Wind and Rain today chips.
  • Show current conditions / Show forecast: two checkboxes, so a tile can show current conditions, the forecast, or both (current on top). Show forecast is on by default; Show current conditions is off by default because it makes the tile about 70% taller.
  • Forecast tile: 1 to 7 days, with day labels, icons, high / low, chance of rain and rain amount. The tile is a single SVG image, so it scales to any tile size.
  • Device attributes for rules: each Weather Watcher creates a device with the tile (weatherWatcher) plus weather attributes you can use in Rule Machine, webCoRE and other apps: current temperature, humidity, feelsLike, windSpeed, windDirection, windCardinal and weather, plus per-day highs, lows, conditions and rain.
  • Weather sources:
    • Open-Meteo (free, worldwide, the default)
    • NWS / weather.gov (free, US only; current conditions from the nearest observation station)
    • Keyed provider (OpenWeatherMap One Call compatible, bring your own API key)
  • Five icon packs: Rob's filled, Rob's outline, Monochrome (erikflowers), Meteocons, and Meteocons animated.
  • Night icons for today: after sunset, today's icon switches to its night version.
  • Looks: dark or light theme, transparent background, corner radius, font and size, optional colour overrides.
  • Tile URL: choose Local (LAN only) or Cloud (works away from home).
  • Last-updated line: an optional small line with the location and time, for example "Grosse Pointe Woods, Oct 29, 12:44 AM", with your own date format.
  • You can create as many Weather Watchers as you like, each with its own location and style.

Night: current and today switch to night icons

Forecast only (Show current conditions off)

Installation

Option A: Hubitat Package Manager search (recommended)

  1. Open Hubitat Package Manager โ†’ Install โ†’ Search by Keywords.
  2. Search for Weather Watcher, select Weather Watcher by Rob Cummings, and click Next to install.
  3. HPM installs the icon library bundle, the Weather Watcher Device driver, and the Weather Watcher Manager and Weather Watcher apps. It also turns on OAuth for the Weather Watcher app.

Option B: Hubitat Package Manager, install from a URL

  1. HPM โ†’ Install โ†’ From a URL
  2. Paste: https://raw.githubusercontent.com/cummingsrob/hubitat-weather-watcher/main/packageManifest.json
  3. HPM installs the same pieces and turns on OAuth, as in Option A.

Option C: Manual (bundle)

  1. Developer tools โ†’ Bundles โ†’ Import ZIP, then import bundle.zip from the repo. This adds the libraries, the driver and both apps.
  2. Enable OAuth: go to Apps Code โ†’ open Weather Watcher (the child app, not the Manager) โ†’ OAuth (top right) โ†’ Enable OAuth in App โ†’ Update โ†’ Save.

OAuth is required. The tile image is served by the app's own endpoint. If OAuth is off, the app shows "Enable OAuth for this app in Apps Code" in the Dashboard section. Turn it on as above, then open the app and click Done.

Setup

  1. Apps โ†’ Add User App โ†’ Weather Watcher Manager, then Add a Weather Watcher.
  2. Pick a weather source, your location (the hub location by default), and the units, days, theme and icon pack, then click Done. A device with the same name is created.
  3. Dashboard: add that device with template Attribute, attribute weatherWatcher. (Recommended)
    • Image tile alternative: paste the forecast image link (Open tile image in the app). Use the cloud link if you view dashboards away from home. An Image tile keeps a copy of the link, so it stops working if you click Regenerate access token. The Attribute tile follows automatically.

Links

Credits and license

Apache License 2.0. Design and code are partly adapted from Rachio-Community (Anthony Santilli, lnjustin), Apache 2.0. Icons: erikflowers/weather-icons (SIL OFL 1.1) and Meteocons by Bas Milius (MIT). Forecast data: Open-Meteo (CC BY 4.0) and the US National Weather Service. See NOTICE and ICONS-LICENSE.txt in the repo.

Questions, bug reports and ideas are welcome here or on GitHub. But mostly here.

Nice.

Consider adding OpenWeatherMap as a source.

This is awesome - thanks!

Done! Check for updates in HPM.

You could actually already do this with the keyed-provider setting, but you had to know the API call URL. This option basically pre-fills it so all you have to do is provide your key. Looks like OWM allows 1000 calls per day on the free tier, but you have to provide a credit card.

I've now integrated your forecast graphics into my next-to-the-door weather display, mostly populated by some custom code linked to my Davis weather station:

Again, thanks! :+1: :smiley:

@Equis I've noticed that a number of the states visible in the WW child app are not available for use in Rule Machine.

For example, here's part of the child app list:

...and here's the attribute list when editing a Rule:

The "High", "Low", and two "Precip" states for each day are not available, nor are the three "Today" states and a number of others.