mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 07:24:21 +00:00
contrib/55_GDS.2015/99_gdsUtils.pm: updated
contains html-generator to be used for weblinks git-svn-id: https://svn.fhem.de/fhem/trunk@9418 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
524656f05b
commit
d715ff96cd
@ -298,3 +298,26 @@ sub GDSAsHtmlD($;$) {
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
=pod
|
||||
=begin html
|
||||
|
||||
<a name="gdsUtils"></a>
|
||||
<h3>gdsUtils</h3>
|
||||
<ul>
|
||||
This module provides three additional functions:<br/>
|
||||
<code>GDSAsHtmlV</code>, <code>GDSAsHtmlH</code> and <code>GDSAsHtmlD</code>. <br/>
|
||||
The first function returns the HTML code for a vertically arranged weather forecast. <br/>
|
||||
The second function returns the HTML code for a horizontally arranged weather forecast. <br/>
|
||||
The third function dynamically picks the orientation depending on whether a <br/>
|
||||
smallscreen style is set (vertical layout) or not (horizontal layout).<br/>
|
||||
The attributes gdsSetCond and gdsSetForecast must be configured for the functions to work.<br/>
|
||||
Each of these functions accepts an additional parameter to limit the number of icons to display (1...8). <br/>
|
||||
If the attribute gdsSetForecast is not configured this parameter should be set to 1.<br/>
|
||||
<br/>
|
||||
Example: <code>define MyForecastWeblink weblink htmlCode { GDSAsHtml("MyWeather") }</code> <br/>
|
||||
where "MyWeather" is the name of your GDS device.<br/>
|
||||
</ul>
|
||||
|
||||
=end html
|
||||
=cut
|
||||
|
Loading…
x
Reference in New Issue
Block a user