RT, 用 bitbar 写了个 PM2.5 的东东

Repo
https://github.com/magicdawn/bitbar-pm25
How-to
- git clone [email protected]:magicdawn/bitbar-pm25.git
- cd bitbar-pm25; npm i
- 修改 index.js shebang, 修改为
which node的位置 - cd <bitbar_plugin_dir> # 切换到 bitbar 目录
- ln -s <path_to_index.js> pm25.10m.js # 将 repo 中的 index.js 链接为 pm25.10m.js 表示 10min 刷新一次
城市
显示的是帝都的 AQI PM2.5 清况, 其他城市自行修改
https://github.com/magicdawn/bitbar-pm25/blob/bitbar/app.js#L20