Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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)