1
0
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:
Chris Cummer
2018-05-09 11:56:27 -07:00
parent decc8cd5e5
commit 25430c228d
28 changed files with 314 additions and 39 deletions

View File

@@ -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>

View File

@@ -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

View 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

View File

@@ -28,7 +28,7 @@
<li class="sidebar-list-item-2"><a href="/posts/modules/security/">Security</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/textfile/">Text File</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/todo/" class="disabled">Todo</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/weather/" class="disabled">Weather</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/weather/">Weather</a></li>
</ul>
</div>

View File

@@ -18,7 +18,7 @@ span.caption {
display: inline-block;
font-weight: bold;
margin-right: 4px;
min-width: 50px;
min-width: 58px;
text-align: right;
}