Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Feqzz/tmux-weather-info-yr
🌦️ Displays the current temperature and weather based on your location.
https://github.com/Feqzz/tmux-weather-info-yr
curl jq shell-script tmux tmux-plugin weather yr
Last synced: 3 months ago
JSON representation
🌦️ Displays the current temperature and weather based on your location.
- Host: GitHub
- URL: https://github.com/Feqzz/tmux-weather-info-yr
- Owner: Feqzz
- License: mit
- Created: 2021-03-03T19:56:51.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-03-08T20:00:40.000Z (over 3 years ago)
- Last Synced: 2024-04-18T16:01:45.236Z (7 months ago)
- Topics: curl, jq, shell-script, tmux, tmux-plugin, weather, yr
- Language: Shell
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-tmux - tmux-weather-info-yr
README
# tmux-weather-info-yr
Displays the current temperature and weather based on your location. The weather data is provided by the Norwegian Meteorological Institute.
![](https://feqzz.no/img/tmux-weather-info-yr.png)## Installation
Dependencies:
* curl
* jq### Installation with Tmux Plugin Manager
Edit your `.tmux.conf` and append the plugin to your TPM list.```tmux
set -g @plugin 'feqzz/tmux-weather-info-yr'
```
Remember to hit ` + I` to install the plugin.### Manual
Clone the repo:
``` bash
git clone https://github.com/feqzz/tmux-weather-info-yr ~/.tmux/
```
Edit your `.tmux.conf` and add this line at the bottom.
``` bash
run-shell ~/.tmux/tmux-weather-info-yr/tmux-weather-info-yr.tmux
```
Last step is to reload the tmux config file.
``` bash
tmux source-file ~/.tmux.conf
```## Usage
Edit your `.tmux.conf` file and add `#{weather_temperature}` to your `status-right`. Simple example:
``` tmux
set -g status-right "#{weather_temperature}"
```## Available Options
It is important that `#{weather_temperature}` is included in the status bar. Otherwise none of the other options will work. I might fix this in the future if there is any interest.
| Command | Example |
| --- | --- |
| #{weather_temperature} | -1°C |
| #{weather_city} | Kongsberg |
| #{weather_symbol} | 🌤️ |
| #{weather_symbol_plaintext} | fair_day |## License
[MIT](LICENSE.md)