mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Adds the Weather module to the documentation
This commit is contained in:
@@ -31,5 +31,5 @@ Available modules:
|
||||
<li><a href="/posts/modules/security">Security</a>
|
||||
<li><a href="/posts/modules/textfile">Text File</a>
|
||||
<li><a href="/posts/modules/todo" class="disabled">Todo</a>
|
||||
<li><a href="/posts/modules/weather" class="disabled">Weather</a>
|
||||
<li><a href="/posts/modules/weather">Weather</a>
|
||||
</ul>
|
||||
|
||||
@@ -22,12 +22,11 @@ None.
|
||||
|
||||
## Keyboard Commands
|
||||
|
||||
<span class="caption">Key:</span> `h` <br />
|
||||
<span class="caption">Key:</span> `/` <br />
|
||||
<span class="caption">Action:</span> Open/close the widget's help window.
|
||||
|
||||
<span class="caption">Key:</span> `o` <br />
|
||||
<span class="caption">Action:</span> Opens the text file in whichever
|
||||
text editor is associated with that file type.
|
||||
<span class="caption">Action:</span> Opens the text file in whichever text editor is associated with that file type.
|
||||
|
||||
## Configuration
|
||||
|
||||
|
||||
59
_site/content/posts/modules/weather.md
Normal file
59
_site/content/posts/modules/weather.md
Normal file
@@ -0,0 +1,59 @@
|
||||
---
|
||||
title: "Weather"
|
||||
date: 2018-05-09T11:44:13-07:00
|
||||
draft: false
|
||||
---
|
||||
|
||||
## Description
|
||||
|
||||
## Source Code
|
||||
|
||||
```bash
|
||||
wtf/weather/
|
||||
```
|
||||
|
||||
## Required ENV Variables
|
||||
|
||||
<span class="caption">Key:</span> `WTF_OWM_API_KEY` <br />
|
||||
<span class="caption">Action:</span> Your <a href="https://openweathermap.org/appid">OpenWeatherMap API</a> key.
|
||||
|
||||
## Keyboard Commands
|
||||
|
||||
<span class="caption">Key:</span> `/` <br />
|
||||
<span class="caption">Action:</span> Open/close the widget's help window.
|
||||
|
||||
<span class="caption">Key:</span> `h` <br />
|
||||
<span class="caption">Action:</span> Show the previous weather location.
|
||||
|
||||
<span class="caption">Key:</span> `l` <br />
|
||||
<span class="caption">Action:</span> Show the next weather location.
|
||||
|
||||
<span class="caption">Key:</span> `←` <br />
|
||||
<span class="caption">Action:</span> Show the previous weather location.
|
||||
|
||||
<span class="caption">Key:</span> `→` <br />
|
||||
<span class="caption">Action:</span> Show the next weather location.
|
||||
|
||||
## Configuration
|
||||
|
||||
```yaml
|
||||
weather:
|
||||
cityids:
|
||||
- 6173331
|
||||
- 3128760
|
||||
- 6167865
|
||||
- 6176823
|
||||
colors:
|
||||
current: "lightblue"
|
||||
enabled: true
|
||||
language: "EN"
|
||||
position:
|
||||
top: 0
|
||||
left: 2
|
||||
height: 1
|
||||
width: 1
|
||||
refreshInterval: 900
|
||||
tempUnit: "C"
|
||||
```
|
||||
|
||||
### Attributes
|
||||
Reference in New Issue
Block a user