bjesus/wttrbar
소개
wttr.in을 사용해 Waybar에 날씨를 표시하는 사용자 지정 모듈입니다.
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalwttrbar
a simple but detailed weather indicator for Waybar using wttr.in.
Installation
Compile yourself using cargo build --release, or download the precompiled binary from the releases page.
For Arch Linux, use the AUR package.
For NixOS, use the NixPkg package.
Usage
--ampm- display time in AM/PM format--location STRING- pass a specific location to wttr.in--main-indicator- decide whichcurrent_conditionskey will be shown on waybar. defaults totemp_C--date-format- defaults to%Y-%m-%d, formats the date next to the days. see reference--nerd- use nerd font symbols instead of emojis--hide-conditions- show a shorter descrpition next to each hour, like7° Mistinstead of7° Mist, Overcast 81%, Sunshine 17%, Frost 15%--fahrenheit- use fahrenheit instead of celsius--mph- use mph instead of km/h for wind speed--ms- use m/s instead of km/h for wind speed--custom-indicator STRING- optional expression that will be shown instead of main indicator.current_conditionsandnearest_areakeys surrounded by {} can be used. For example,"{ICON} {FeelsLikeC} ({areaName})"will be transformed to"text":"🌧️ -4 (Amsterdam)"in the output--lang LANG- set language (currentlyen,de,pl,tr,fr,ru,zh,be,es,pt,it,ja,uk,sv,da,cs,sk,ga; submit a PR to add yours)--observation-time- show the time the current weather conditions were measured--tabs- use tabs instead of spaces in the forecast rows
e.g. wttrbar --date-format "%m/%d" --location Paris --hide-conditions
Icons
To display the weather icons correctly, you will need to have a font that supports emojis installed. The screenshot uses Noto Emoji, but you can use other fonts too.
Waybar configuration
Assuming wttrbar is in your path, it can be used like:
"custom/weather": {
"format": "{}°",
"tooltip": true,
"interval": 3600,
"exec": "wttrbar",
"return-type": "json"
},
You can also then creating custom styling based on the current condition:
#custom-weather.sunny {
background-color: yellow;
}
Old version
This code is based on my old Python gist that was used for the same purpose.
관련 프로젝트 살펴보기
불러오는 중…