Bitbar weather plugin written in JavaScript.
-
Run
npm install
oryarn install
. -
Rename
.env.example
to.env
, add HeWeather API key and location. -
Organize your plugin directory structure like this:
plugins ├── BitWeather.{refresh-time}.js -> bitbar-EmojiWeather/BitWeather.js └── bitbar-EmojiWeather ├── .env ├── BitWeather.js ├── README.md ├── node_modules └── package.json
-
Done, enjoy!
This script assumes you have Node.js executable at /usr/local/bin/node
, which should be fine if you've installed it with HomeBrew.
If not, you need to edit the shebang line to specify an alternative one.
You're able to modify the code at the bitbar section in BitWeather.js
to change the content displayed.
- StephenFang iamStephenFang
- Bunny Wong GetToSet