1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Add more explicit documentation for PrettyWeather's optional attributes

This commit is contained in:
Chris Cummer 2018-06-02 06:05:38 -07:00
parent c1f9c7bbfb
commit 052a115121
4 changed files with 12 additions and 8 deletions

View File

@ -43,7 +43,8 @@ None.
### Attributes ### Attributes
`city` <br /> `city` <br />
_Optional_. <br /> _Optional_. It will grab the current location from your IP address if
omitted.<br />
Values: The name of any city supported by [Wttr.in](http://wttr.in). Values: The name of any city supported by [Wttr.in](http://wttr.in).
`enabled` <br /> `enabled` <br />
@ -58,6 +59,6 @@ How often, in seconds, this module will update its data. <br />
Values: A positive integer, `0..n`. Values: A positive integer, `0..n`.
`unit` <br /> `unit` <br />
_Optional_. <br /> _Optional_. It will use metric if you are out of US and imperial for US.<br />
The temperature scale in which to display temperature values. <br /> The temperature scale in which to display temperature values. <br />
Values: `F` for Fahrenheit, `C` for Celcius. Values: `F` for Fahrenheit, `C` for Celcius.

View File

@ -21,9 +21,10 @@
Displays weather information as ASCII art from Wttr.in. Displays weather information as ASCII art from Wttr.in.
Source Code wtf/prettyweather/ Required ENV Variables None. Source Code wtf/prettyweather/ Required ENV Variables None.
Keyboard Commands None. Keyboard Commands None.
Configuration prettyweather:enabled:truecity:&amp;#34;tehran&amp;#34;position:top:3left:5height:1width:1refreshInterval:300unit:&amp;#34;c&amp;#34; Attributes city Optional. Values: The name of any city supported by Wttr.in. Configuration prettyweather:enabled:truecity:&amp;#34;tehran&amp;#34;position:top:3left:5height:1width:1refreshInterval:300unit:&amp;#34;c&amp;#34; Attributes city Optional. It will grab the current location from your IP address if omitted.
Values: The name of any city supported by Wttr.in.
enabled Determines whether or not this module is executed and if its data displayed onscreen. Values: true, false. enabled Determines whether or not this module is executed and if its data displayed onscreen. Values: true, false.
position Defines where in the grid this module&amp;rsquo;s widget will be displayed. refreshInterval How often, in seconds, this module will update its data.</description> position Defines where in the grid this module&amp;rsquo;s widget will be displayed.</description>
</item> </item>
<item> <item>

View File

@ -21,9 +21,10 @@
Displays weather information as ASCII art from Wttr.in. Displays weather information as ASCII art from Wttr.in.
Source Code wtf/prettyweather/ Required ENV Variables None. Source Code wtf/prettyweather/ Required ENV Variables None.
Keyboard Commands None. Keyboard Commands None.
Configuration prettyweather:enabled:truecity:&amp;#34;tehran&amp;#34;position:top:3left:5height:1width:1refreshInterval:300unit:&amp;#34;c&amp;#34; Attributes city Optional. Values: The name of any city supported by Wttr.in. Configuration prettyweather:enabled:truecity:&amp;#34;tehran&amp;#34;position:top:3left:5height:1width:1refreshInterval:300unit:&amp;#34;c&amp;#34; Attributes city Optional. It will grab the current location from your IP address if omitted.
Values: The name of any city supported by Wttr.in.
enabled Determines whether or not this module is executed and if its data displayed onscreen. Values: true, false. enabled Determines whether or not this module is executed and if its data displayed onscreen. Values: true, false.
position Defines where in the grid this module&amp;rsquo;s widget will be displayed. refreshInterval How often, in seconds, this module will update its data.</description> position Defines where in the grid this module&amp;rsquo;s widget will be displayed.</description>
</item> </item>
<item> <item>

View File

@ -142,7 +142,8 @@
<h3 id="attributes">Attributes</h3> <h3 id="attributes">Attributes</h3>
<p><code>city</code> <br /> <p><code>city</code> <br />
<em>Optional</em>. <br /> <em>Optional</em>. It will grab the current location from your IP address if
omitted.<br />
Values: The name of any city supported by <a href="http://wttr.in">Wttr.in</a>.</p> Values: The name of any city supported by <a href="http://wttr.in">Wttr.in</a>.</p>
<p><code>enabled</code> <br /> <p><code>enabled</code> <br />
@ -157,7 +158,7 @@ How often, in seconds, this module will update its data. <br />
Values: A positive integer, <code>0..n</code>.</p> Values: A positive integer, <code>0..n</code>.</p>
<p><code>unit</code> <br /> <p><code>unit</code> <br />
<em>Optional</em>. <br /> <em>Optional</em>. It will use metric if you are out of US and imperial for US.<br />
The temperature scale in which to display temperature values. <br /> The temperature scale in which to display temperature values. <br />
Values: <code>F</code> for Fahrenheit, <code>C</code> for Celcius.</p> Values: <code>F</code> for Fahrenheit, <code>C</code> for Celcius.</p>