mr-asa1k downloadsWeather widget for display in notes, Canvas, and a separate tab.
Preset configurations live in the repository presets folder. Copy any file into your plugin settings and remove the first word before the dot so the file is named English | Русский |
Quick navigation
If you like the plugin as much as I do, you can always show your appreciation!
|
Keeping in touch with friends and family scattered across the globe usually means checking several cities in a weather app, adjusting for time zones, and mentally comparing temperatures. I wanted a single glance overview that also looked at home in Obsidian. The first iteration was a quickly hacked DataviewJS snippet, but maintaining the markup, color tokens, and gradients turned into a time sink.
This project grew from that experiment: a configurable widget that renders the same layout in the sidebar, Markdown notes, and Canvas while keeping gradients, icons, and transitions perfectly aligned with my vault theme. GPT was a big help in the early scaffolding stage, the rest evolved from daily use.
Weather Widget brings a live multi-city forecast directly into Obsidian. The widget mirrors the visual style of your vault, renders in a dedicated panel, Markdown notes, and Canvas nodes, and exposes all gradients, icons, and sun overlays for fine-tuning. Inline cities declared inside a code block merge with the global list without duplicates, so every note can show the exact mix you need.
From release
|
BRAT plugin
|
```weather-widget and a widget will be drawn in that place.[!TIP] Add per-note cities inside a Markdown block. Each non-empty line must follow
"City name" <latitude> <longitude>(quotes required, whitespace-separated, no commas). Inline entries merge with your saved list without duplicates.Minimal block:
```weather-widgetWith inline cities and custom row height:
```weather-widget row-height: 24 "Mossingen" 48.406635032 9.057441152 "Wuhan" 30.59543 114.29987 ```
row-heightaccepts pixel values (24–200). Omit it to use the global default (~36 px).
Switch between English and Russian without reloading the vault. City names remain untouched.
[!TIP] Switching providers refreshes the cached data. This can be useful in cases where not all cities are loaded when the plugin is launched.
[!note] City names can use any language, symbol, or emoji.
Custom display names exist for convenience. For example, I track a nearby mountain and the city below; naming the exact coordinates through standard providers is tricky, so custom labels keep both points clear.
[!note] Use ←/→ or ↑/↓ to nudge slider values one step at a time.
[!note] I introduced the sun symbol to represent the height of the sun above the horizon. You can choose any text character or combination of characters for the icon, as long as it sits in the middle of the line. Here are some ideas:
◯⨀○৹●•·◎◉
▣◇◆▪▫
- – —
►◄▻◅▸◂▹◃
⋯Θ⊢⊣For example, pick ◯ for a large ring, or enable a monospaced font and write —•— for a clean indicator (I like the variant ——●—— with size 0.5). You can also disable the icon entirely and keep only the colour accent.
[!note] Weather and temperature transitions can differ in perceived width for each city. This is deliberate: daylight length is reflected in the gradient span.