Tenki

by HiroMike
5
4
3
2
1
Score: 63/100

Description

Category: Data Visualization

The Tenki plugin is a delightful addition to your Obsidian workflow, bringing real-time weather updates right into your vault. With Tenki, you can easily display current weather conditions and forecasts for any city in the world. Simply enter your location and API key from weatherapi.com, and you'll be treated to a visually appealing display of weather data. The plugin's design is highly customizable, thanks to its CSS classes, allowing you to tailor the look and feel to suit your preferences. Whether you're planning an outdoor event or simply want to stay on top of changing weather patterns, Tenki has got you covered.

Reviews

No reviews yet.

Stats

14
stars
6,369
downloads
1
forks
970
days
139
days
139
days
1
total PRs
0
open PRs
0
closed PRs
1
merged PRs
4
total issues
0
open issues
4
closed issues
1
commits

Latest Version

5 months ago

Changelog

Features

  • ✨ Add sunrise and sunset times to forecast tooltips via the astro section of the weather API

How to Use

Hover over any forecast day to see the sunrise and sunset times along with the temperature information.

What's New

The weather API provides astronomical data including sunrise and sunset times for each day. This release exposes that data in the forecast tooltips, allowing you to see at a glance when the sun rises and sets each day.

Technical Details

  • Updated ForecastDay interface to include astro object with sunrise and sunset fields
  • Enhanced extractForecastData method to extract sunrise/sunset times from API response
  • Updated forecast tooltip to display sunrise and sunset times alongside temperature

Compatibility

  • Requires Obsidian 0.16.3+

README file from

Github

Tenki which is Japanese for Weather

This is a weather display for Obsidian (https://obsidian.md).

2023-07-03_15h59_41

Manually installing the plugin

  • Copy over main.js, styles.css, manifest.json to your vault VaultFolder/.obsidian/plugins/Tenki/.

Usage

  • 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

Network Usage

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.

Buy Me A Coffee

If you find Tenki useful, consider supporting its development by buying me a coffee:

Help and Support

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!

API Documentation

For more information about Obsidian's API, refer to the Obsidian API Documentation.

Changelog

0.7.9

  • Feature: Add sunrise and sunset times to forecast tooltips via the astro section of the weather API.

0.7.7

  • 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.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.