This is a weather display for Obsidian (https://obsidian.md).
- Copy over
main.js,styles.css,manifest.jsonto your vaultVaultFolder/.obsidian/plugins/Tenki/.
- Head over to weatherapi.com (you can link to it from the settings) and get your free api key and paste it into the settings
- Enter your city, and you should see the weather update
- If the app is not visible then from the command menu (control+p on Windows) type tenki and enter
Tenki: Open - The weather feed doesn't update more than about every 30 minutes; Tenki enforces a 30-minute minimum refresh interval by default
- All of the weather display elements have CSS classes - take a look at styles.css and feel free to create your own snippets to hide or style the elements how you like
According to the Obsidian Developer Piolicy in the Disclosures section an Obsidian plugin must explain which network services are used and why.
This plugin retrieves information from the internet to get the weather data for display at https://api.weatherapi.com/v1/ combined with the user's personal API key.
If you find Tenki useful, consider supporting its development by buying me a coffee:
I would like to express my gratitude to the members of the Discord community who have provided valuable help and support. Thank you very much!
For more information about Obsidian's API, refer to the Obsidian API Documentation.
- Feature: Add sunrise and sunset times to forecast tooltips via the astro section of the weather API.
- Security: Switch all network calls and icons to HTTPS.
- Robustness: Centralized interval lifecycle; prevent duplicate timers.
- Defaults: Enforce 30-minute minimum refresh interval.
- UX: Increase location debounce; skip empty values.
- Error handling: Notices for missing settings and fetch failures.
- Build: Upgrade esbuild to 0.27.x to address advisory GHSA-67mh-4wv8-2f99.
