一个用于 Polybar 的天气预报模块
ntfd is a lightweight replacement with more features, take a look!
This is a simple weather forecast module for Polybar.
The first number is the current temperature and the second one is a 3 hour forecast, the output is fully configurable.
You need Weather Icons and Material Icons for this to work properly.
For Arch users, both are available in the AUR:
Look at the example TOML configuration file.
…Grab a pre built binary from the release page (you might need to chmod +x), or run cargo build --release, in which case you'll find the binary at target/release/polybar-forecast.
You can copy the binary anywhere you want, the config files has to placed in either:
$HOME/.config/polybar-forecast/config.tomlYou can define your new module like this:
[module/weather]
type = custom/script
exec = /path/to/polybar-forecast
exec-if = ping openweathermap.org -c 1
interval = 600
label-font = 3Don't forget to add Weather Icons to your config or it won't render correctly:
...
font-2 = Weather Icons:size=12;0
...Then you may add your new weather module on your bar.
暂无开放 Issues,或尚未同步最近议题。