https://github.com/mlava/weathercards
https://github.com/mlava/weathercards
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mlava/weathercards
- Owner: mlava
- Created: 2022-08-04T07:12:44.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2026-01-30T13:42:19.000Z (5 months ago)
- Last Synced: 2026-01-31T06:54:40.428Z (5 months ago)
- Language: JavaScript
- Size: 2.32 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Weathercards
============
Weathercards inserts a compact weather summary and a multi‑day forecast as styled cards.
Overview
--------
- Fetches current conditions and daily forecast from OpenWeather (One Call 3.0).
- Inserts a header block (location + update time) and child cards for each day.
- Supports metric or imperial units.
- Optional alert pill: when an alert exists, a small “Alert” pill appears; hover shows the alert text as a tooltip.
- Includes CSS to render the cards in a 3‑column grid with background images by condition.
Setup
-----
1) Install the extension.
2) Add your OpenWeather API key.
3) Set a default location (e.g., `melbourne,au`).
4) Choose units (metric or imperial).
5) Choose how many days to show (Today Only, or 2‑8).
Usage
-----
- Command Palette: run “Weathercards”.
- SmartBlock: use `<%WEATHERCARDS%>`.
- Hotkey: assign one in Roam Research Settings > Hotkeys.
Settings
--------
- API Key: your OpenWeather key.
- Location: city and country (e.g., `berlin,de`).
- Units: `metric` or `imperial`.
- How Many Days: Today Only, or 2‑8.
Notes
-----
- The grid and card styling live in `extension.css`.
- Weathercards is an update of David Eaton’s original Weather Forecast SmartBlock. Archived instructions are at:
https://github.com/dvargas92495/SmartBlocks/issues/211