yahooweather
Yahoo天気をターミナル上のTUI(Text-based User Interface)で表示する軽量ツールです。
ローカル端末から手早く天気予報を確認したい開発者や端末ユーザー向けに設計されています。
スクリーンショット
- ノーマル表示(コマンドラインオプション無し)
- All表示(コマンドラインオプション -a)
特長
- ターミナル上で見やすいTUI表示(現在の天気、気温、予報)
- 手早い更新(リフレッシュ機能)
- カスタム設定(デフォルトの地域を設定可能)
- Yahoo天気から取得した天気データは3時間キャッシュします。
必要条件
- Python 3.8+
- ネットワーク接続
インストール
- PIPから(推奨)
pip install yahooweather-cli
- ソースから
git clone https://github.com/tomok14/yahooweather.git
cd yahooweather
python yahooweather.py
使用手順
-
yahooweather.py本体を実行します。 :
$ python yahooweather.py -
初回起動時は地点の設定が始まります。 設定は
~/.config/yahooweather/yahooweather.confに保存されます。
- 地点設定画面
コンフィグファイル
~/.config/yahooweather/yahooweather.conf- コンフィグファイル(toml形式)
その多機能詳細
- すでに過ぎた時刻は灰色表示されます。
- 12:00以降に実行した場合、翌日の天気も表示されます。
おすすめ設定
alias yw=`yahooweather`
ファイル
yahooweather.py- 本体selector.py- Yahoo天気の地点データ(location.db)から自分の地点を選択してコンフィグファイルに書き込みするツール。selector.pyを使用せず手動でコンフィグファイルを修正しても良いです。makelocationdb.py- location.dbを作成するツール。location.dbは既に作っていますので新たに作成する必要はありません。yahooweather.conf.sample- コンフィグファイルのサンプル~/.config/yahooweather/yahooweahter.conf- 設定ファイル~/.cache/yahooweather/cache.sqlith- YahooJapanから取得した天気ページのキャッシュ~/.local/share/yahooweather/location.db- 地点情報(yahooweather初回起動時に自動的にインストールされます)
ライセンス
Release files for yahooweather-cli 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yahooweather_cli-0.0.10.tar.gz | 124.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yahooweather_cli-0.0.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 247.6 kB
Release files / yahooweather_cli-0.0.10.tar.gz
| Download URL | yahooweather_cli-0.0.10.tar.gz |
|---|---|
| Size | 124.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
987ed828022ca8d5b21387cdb311e1ec37c384fd64b8a9907710f638cd5f6780
|
|
BLAKE2b-256 checksum How to use checksums |
a2e228e5fa2c7646cf1103d8887150b033b79b416a528adb7f85a0e1fd7d8a33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / yahooweather_cli-0.0.10-py3-none-any.whl
| Download URL | yahooweather_cli-0.0.10-py3-none-any.whl |
|---|---|
| Size | 123.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1dcc940a9e8147e5ae958259317337ba5fae7a23437b5d5852ab959d20c3a931
|
|
BLAKE2b-256 checksum How to use checksums |
8480a808aea12fcd751bdf7f0936e63f90e6943d64d0157685f458b1647c6664
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|