百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

polybar-forecast

> 编程语言
开源

一个用于 Polybar 的天气预报模块

100 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

一个用于 Polybar 的天气预报模块

Unmaintained

ntfd is a lightweight replacement with more features, take a look!

Weather forecast for Polybar

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:

  • Weather Icons
  • Material Icons

Configuration

Look at the example TOML configuration file.

…

Setup

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.toml
  • The same directory as the binary

Polybar integration

You 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 = 3

Don'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· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustpolybarrustweather-forecast

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言