patch-rewriteCommandref #26
| @@ -1132,7 +1132,7 @@ sub Weather_CheckOptions { | |||||||
| =item summary_DE stellt Wetterbericht und -vorhersage bereit | =item summary_DE stellt Wetterbericht und -vorhersage bereit | ||||||
| =begin html | =begin html | ||||||
|  |  | ||||||
| <a name="Weather"></a> | <a id="Weather"></a> | ||||||
| <h3>Weather</h3> | <h3>Weather</h3> | ||||||
| <ul> | <ul> | ||||||
|   Note: you need the JSON perl module. Use <code>apt-get install |   Note: you need the JSON perl module. Use <code>apt-get install | ||||||
| @@ -1148,8 +1148,8 @@ sub Weather_CheckOptions { | |||||||
|   Such a virtual Weather device periodically gathers current and forecast |   Such a virtual Weather device periodically gathers current and forecast | ||||||
|   weather conditions from the chosen weather API.<br><br> |   weather conditions from the chosen weather API.<br><br> | ||||||
|  |  | ||||||
|   <a name="Weatherdefine"></a> |   <a id="Weather-define"></a> | ||||||
|   <b>Define</b><br><br> |   <h4>Define</h4><br><br> | ||||||
|     <ul> |     <ul> | ||||||
|       <code>define <name> Weather [API=<API>[,<apioptions>]] [apikey=<apikey>] |       <code>define <name> Weather [API=<API>[,<apioptions>]] [apikey=<apikey>] | ||||||
|        [location=<location>] [interval=<interval>] [lang=<lang>]</code><br><br> |        [location=<location>] [interval=<interval>] [lang=<lang>]</code><br><br> | ||||||
| @@ -1184,7 +1184,7 @@ sub Weather_CheckOptions { | |||||||
|  |  | ||||||
|     API-specific documentation follows.<p> |     API-specific documentation follows.<p> | ||||||
|  |  | ||||||
|         <b>Dark Sky</b><p> |         <h4>Dark Sky</h4><p> | ||||||
|  |  | ||||||
|         <table> |         <table> | ||||||
|         <tr><td>API</td><td><code>DarkSkyAPI</code></td></tr> |         <tr><td>API</td><td><code>DarkSkyAPI</code></td></tr> | ||||||
| @@ -1197,7 +1197,7 @@ sub Weather_CheckOptions { | |||||||
|         </table> |         </table> | ||||||
|         <p><p> |         <p><p> | ||||||
|  |  | ||||||
|         <b>OpenWeatherMap</b><p> |         <h4>OpenWeatherMap</h4><p> | ||||||
|  |  | ||||||
|         <table> |         <table> | ||||||
|         <tr><td>API</td><td><code>OpenWeatherMapAPI</code></td></tr> |         <tr><td>API</td><td><code>OpenWeatherMapAPI</code></td></tr> | ||||||
| @@ -1215,7 +1215,7 @@ sub Weather_CheckOptions { | |||||||
|         </table> |         </table> | ||||||
|         <p><p> |         <p><p> | ||||||
|          |          | ||||||
|         <b>Wunderground</b><p> |         <h4>Wunderground</h4><p> | ||||||
|  |  | ||||||
|         <table> |         <table> | ||||||
|         <tr><td>API</td><td><code>wundergroundAPI</code></td></tr> |         <tr><td>API</td><td><code>wundergroundAPI</code></td></tr> | ||||||
| @@ -1247,17 +1247,19 @@ sub Weather_CheckOptions { | |||||||
|   </ul> |   </ul> | ||||||
|   <br> |   <br> | ||||||
|  |  | ||||||
|   <a name="Weatherset"></a> |   <a id="Weather-set"></a> | ||||||
|   <b>Set </b> |   <h4>Set</h4> | ||||||
|   <ul> |   <ul> | ||||||
|  |     <a id="Weather-set-update"></a> | ||||||
|     <li> |     <li> | ||||||
|       <code>set <name> update</code><br><br> |       <i>set <name> update</i><br><br> | ||||||
|  |  | ||||||
|       Forces the retrieval of the weather data. The next automatic retrieval is scheduled to occur |       Forces the retrieval of the weather data. The next automatic retrieval is scheduled to occur | ||||||
|       <code>interval</code> seconds later. |       <code>interval</code> seconds later. | ||||||
|     </li> |     </li> | ||||||
|  |     <a id="Weather-set-newLocation"></a> | ||||||
|     <li> |     <li> | ||||||
|       <code>set <name> newLocation latitude,longitude</code><br><br> |       <i>set <name> newLocation latitude,longitude</i><br><br> | ||||||
|        |        | ||||||
|       set a new temporary location. |       set a new temporary location. | ||||||
|       the value pair Latitude Longitude is separated by a comma. |       the value pair Latitude Longitude is separated by a comma. | ||||||
| @@ -1266,39 +1268,65 @@ sub Weather_CheckOptions { | |||||||
|   </ul> |   </ul> | ||||||
|   <br> |   <br> | ||||||
|  |  | ||||||
|   <a name="Weatherget"></a> |   <a id="Weather-get"></a> | ||||||
|   <b>Get</b> |   <h4>Get</h4> | ||||||
|   <ul> |   <ul> | ||||||
|     <code>get <name> <reading></code><br><br> |     <code>get <name> <reading></code><br><br> | ||||||
|  |  | ||||||
|     Valid readings and their meaning (? can be one of 1, 2, 3, 4, 5 and stands |     Valid readings and their meaning (? can be one of 1, 2, 3, 4, 5 and stands | ||||||
|     for today, tomorrow, etc.):<br> |     for today, tomorrow, etc.):<br> | ||||||
|     <table> |     <table> | ||||||
|  |     <a id="Weather-get-.license"></a> | ||||||
|     <tr><td>.license</td><td>license of the API provider, if available</td></tr> |     <tr><td>.license</td><td>license of the API provider, if available</td></tr> | ||||||
|  |     <a id="Weather-get-city"></a> | ||||||
|     <tr><td>city</td><td>name of town returned for location</td></tr> |     <tr><td>city</td><td>name of town returned for location</td></tr> | ||||||
|  |     <a id="Weather-get-code"></a> | ||||||
|     <tr><td>code</td><td>current condition code</td></tr> |     <tr><td>code</td><td>current condition code</td></tr> | ||||||
|  |     <a id="Weather-get-condition"></a> | ||||||
|     <tr><td>condition</td><td>current condition</td></tr> |     <tr><td>condition</td><td>current condition</td></tr> | ||||||
|  |     <a id="Weather-get-current_date_time"></a> | ||||||
|     <tr><td>current_date_time</td><td>last update of forecast on server</td></tr> |     <tr><td>current_date_time</td><td>last update of forecast on server</td></tr> | ||||||
|  |      <a id="Weather-get-fc?_code"></a> | ||||||
|     <tr><td>fc?_code</td><td>forecast condition code</td></tr> |     <tr><td>fc?_code</td><td>forecast condition code</td></tr> | ||||||
|  |     <a id="Weather-get-fc?_condition"></a> | ||||||
|     <tr><td>fc?_condition</td><td>forecast condition</td></tr> |     <tr><td>fc?_condition</td><td>forecast condition</td></tr> | ||||||
|  |     <a id="Weather-get-fc?_day_of_week"></a> | ||||||
|     <tr><td>fc?_day_of_week</td><td>day of week for day +?</td></tr> |     <tr><td>fc?_day_of_week</td><td>day of week for day +?</td></tr> | ||||||
|  |     <a id="Weather-get-fc?_high_c"></a> | ||||||
|     <tr><td>fc?_high_c</td><td>forecasted daily high in degrees centigrade</td></tr> |     <tr><td>fc?_high_c</td><td>forecasted daily high in degrees centigrade</td></tr> | ||||||
|  |     <a id="Weather-get-fc?_icon"></a> | ||||||
|     <tr><td>fc?_icon</td><td>forecast icon</td></tr> |     <tr><td>fc?_icon</td><td>forecast icon</td></tr> | ||||||
|  |     <a id="Weather-get-fc?_low_c"></a> | ||||||
|     <tr><td>fc?_low_c</td><td>forecasted daily low in degrees centigrade</td></tr> |     <tr><td>fc?_low_c</td><td>forecasted daily low in degrees centigrade</td></tr> | ||||||
|  |     <a id="Weather-get-humidity"></a> | ||||||
|     <tr><td>humidity</td><td>current humidity in %</td></tr> |     <tr><td>humidity</td><td>current humidity in %</td></tr> | ||||||
|  |     <a id="Weather-get-icon"></a> | ||||||
|     <tr><td>icon</td><td>relative path for current icon</td></tr> |     <tr><td>icon</td><td>relative path for current icon</td></tr> | ||||||
|  |     <a id="Weather-get-pressure"></a> | ||||||
|     <tr><td>pressure</td><td>air pressure in hPa</td></tr> |     <tr><td>pressure</td><td>air pressure in hPa</td></tr> | ||||||
|  |     <a id="Weather-get-pressure_trend"></a> | ||||||
|     <tr><td>pressure_trend</td><td>air pressure trend (0= steady, 1= rising, 2= falling)</td></tr> |     <tr><td>pressure_trend</td><td>air pressure trend (0= steady, 1= rising, 2= falling)</td></tr> | ||||||
|  |     <a id="Weather-get-pressure_trend_txt"></a> | ||||||
|     <tr><td>pressure_trend_txt</td><td>textual representation of air pressure trend</td></tr> |     <tr><td>pressure_trend_txt</td><td>textual representation of air pressure trend</td></tr> | ||||||
|  |     <a id="Weather-get-pressure_trend_sym"></a> | ||||||
|     <tr><td>pressure_trend_sym</td><td>symbolic representation of air pressure trend</td></tr> |     <tr><td>pressure_trend_sym</td><td>symbolic representation of air pressure trend</td></tr> | ||||||
|  |     <a id="Weather-get-temperature"></a> | ||||||
|     <tr><td>temperature</td><td>current temperature in degrees centigrade</td></tr> |     <tr><td>temperature</td><td>current temperature in degrees centigrade</td></tr> | ||||||
|  |     <a id="Weather-get-temp_c"></a> | ||||||
|     <tr><td>temp_c</td><td>current temperature in degrees centigrade</td></tr> |     <tr><td>temp_c</td><td>current temperature in degrees centigrade</td></tr> | ||||||
|  |     <a id="Weather-get-temp_f"></a> | ||||||
|     <tr><td>temp_f</td><td>current temperature in degrees Fahrenheit</td></tr> |     <tr><td>temp_f</td><td>current temperature in degrees Fahrenheit</td></tr> | ||||||
|  |     <a id="Weather-get-visibility"></a> | ||||||
|     <tr><td>visibility</td><td>visibility in km</td></tr> |     <tr><td>visibility</td><td>visibility in km</td></tr> | ||||||
|  |     <a id="Weather-get-wind"></a> | ||||||
|     <tr><td>wind</td><td>wind speed in km/h</td></tr> |     <tr><td>wind</td><td>wind speed in km/h</td></tr> | ||||||
|  |     <a id="Weather-get-wind_chill"></a> | ||||||
|     <tr><td>wind_chill</td><td>wind chill in degrees centigrade</td></tr> |     <tr><td>wind_chill</td><td>wind chill in degrees centigrade</td></tr> | ||||||
|  |     <a id="Weather-get-wind_condition"></a> | ||||||
|     <tr><td>wind_condition</td><td>wind direction and speed</td></tr> |     <tr><td>wind_condition</td><td>wind direction and speed</td></tr> | ||||||
|  |     <a id="Weather-get-wind_direction"></a> | ||||||
|     <tr><td>wind_direction</td><td>direction wind comes from in degrees (0 = north wind)</td></tr> |     <tr><td>wind_direction</td><td>direction wind comes from in degrees (0 = north wind)</td></tr> | ||||||
|  |     <a id="Weather-get-wind_speed"></a> | ||||||
|     <tr><td>wind_speed</td><td>same as wind</td></tr> |     <tr><td>wind_speed</td><td>same as wind</td></tr> | ||||||
|     </table> |     </table> | ||||||
|     <br> |     <br> | ||||||
| @@ -1311,15 +1339,19 @@ sub Weather_CheckOptions { | |||||||
|   </ul> |   </ul> | ||||||
|   <br> |   <br> | ||||||
|  |  | ||||||
|   <a name="Weatherattr"></a> |   <a id="Weather-attr"></a> | ||||||
|   <b>Attributes</b> |   <h4>Attributes</h4> | ||||||
|   <ul> |   <ul> | ||||||
|     <li>disable: disables the retrieval of weather data - the timer runs according to schedule, |     <a id="Weather-attr-disable"></a> | ||||||
|  |     <li><i>disable</i> - disables the retrieval of weather data - the timer runs according to schedule, | ||||||
|     though no data is requested from the API.</li> |     though no data is requested from the API.</li> | ||||||
|     <li><a href="#readingFnAttributes">readingFnAttributes</a></li> |     <li><a href="#readingFnAttributes">readingFnAttributes</a></li> | ||||||
|     <li>forecast - hourly/daily, display of forecast data.</li> |     <a id="Weather-attr-forecast"></a> | ||||||
|     <li>forecastLimit - Number of forecast data records which should be written as a reading.</li> |     <li><i>forecast</i> - hourly/daily, display of forecast data.</li> | ||||||
|     <li>alerts - 0/1 should alert messages be written similar to Unwetterwarnung</li> |     <a id="Weather-attr-forecastLimit"></a> | ||||||
|  |     <li><i>forecastLimit</i> - Number of forecast data records which should be written as a reading.</li> | ||||||
|  |     <a id="Weather-attr-alerts"></a> | ||||||
|  |     <li><i>alerts</i> - 0/1 should alert messages be written similar to Unwetterwarnung</li> | ||||||
|   </ul> |   </ul> | ||||||
|   <br> |   <br> | ||||||
| </ul> | </ul> | ||||||
| @@ -1328,7 +1360,7 @@ sub Weather_CheckOptions { | |||||||
| =end html | =end html | ||||||
| =begin html_DE | =begin html_DE | ||||||
|  |  | ||||||
| <a name="Weather"></a> | <a id="Weather"></a> | ||||||
| <h3>Weather</h3> | <h3>Weather</h3> | ||||||
| <ul> | <ul> | ||||||
|     Hinweis: es wird das Perl-Modul JSON benötigt. Mit <code>apt-get install |     Hinweis: es wird das Perl-Modul JSON benötigt. Mit <code>apt-get install | ||||||
| @@ -1345,9 +1377,8 @@ sub Weather_CheckOptions { | |||||||
|     Eine solche virtuelle Wetterstation sammelt periodisch aktuelle Wetterdaten |     Eine solche virtuelle Wetterstation sammelt periodisch aktuelle Wetterdaten | ||||||
|     und Wettervorhersagen aus dem verwendeten API.<br><br> |     und Wettervorhersagen aus dem verwendeten API.<br><br> | ||||||
|  |  | ||||||
|  |   <a id="Weather-define"></a> | ||||||
|   <a name="Weatherdefine"></a> |   <h4>Define</h4><br><br> | ||||||
|   <b>Define</b><br><br> |  | ||||||
|   <ul> |   <ul> | ||||||
|     <code>define <name> Weather [API=<API>[,<apioptions>]] [apikey=<apikey>] |     <code>define <name> Weather [API=<API>[,<apioptions>]] [apikey=<apikey>] | ||||||
|      [location=<location>] [interval=<interval>] [lang=<lang>]</code><br><br> |      [location=<location>] [interval=<interval>] [lang=<lang>]</code><br><br> | ||||||
| @@ -1383,7 +1414,7 @@ sub Weather_CheckOptions { | |||||||
|  |  | ||||||
|     Es folgt die API-spezifische Dokumentation.<p> |     Es folgt die API-spezifische Dokumentation.<p> | ||||||
|  |  | ||||||
|     <b>Dark Sky</b><p> |     <h4>Dark Sky</h4><p> | ||||||
|  |  | ||||||
|     <table> |     <table> | ||||||
|     <tr><td>API</td><td><code>DarkSkyAPI</code></td></tr> |     <tr><td>API</td><td><code>DarkSkyAPI</code></td></tr> | ||||||
| @@ -1397,7 +1428,7 @@ sub Weather_CheckOptions { | |||||||
|     </table> |     </table> | ||||||
|     <p><p> |     <p><p> | ||||||
|  |  | ||||||
|     <b>OpenWeatherMap</b><p> |     <h4>OpenWeatherMap</h4><p> | ||||||
|  |  | ||||||
|     <table> |     <table> | ||||||
|     <tr><td>API</td><td><code>OpenWeatherMapAPI</code></td></tr> |     <tr><td>API</td><td><code>OpenWeatherMapAPI</code></td></tr> | ||||||
| @@ -1418,7 +1449,7 @@ sub Weather_CheckOptions { | |||||||
|     </table> |     </table> | ||||||
|     <p><p> |     <p><p> | ||||||
|      |      | ||||||
|     <b>Wunderground</b><p> |     <h4>Wunderground</h4><p> | ||||||
|  |  | ||||||
|     <table> |     <table> | ||||||
|     <tr><td>API</td><td><code>wundergroundAPI</code></td></tr> |     <tr><td>API</td><td><code>wundergroundAPI</code></td></tr> | ||||||
| @@ -1455,55 +1486,76 @@ sub Weather_CheckOptions { | |||||||
|   </ul> |   </ul> | ||||||
|   <br> |   <br> | ||||||
|  |  | ||||||
|   <a name="Weatherset"></a> |   <a id="Weather-set"></a> | ||||||
|   <b>Set </b> |     <h4>Set</h4> | ||||||
|   <ul> |   <ul> | ||||||
|     <li> |     <a id="Weather-set-update"></a> | ||||||
|       <code>set <name> update</code><br><br> |     <li><i>set <name> update</i><br><br> | ||||||
|  |         Erzwingt eine Abfrage der Wetterdaten. Die darauffolgende Abfrage | ||||||
|       Erzwingt eine Abfrage der Wetterdaten. Die darauffolgende Abfrage |         wird gemäß dem eingestellten | ||||||
|       wird gemäß dem eingestellten |         Intervall <code>interval</code> Sekunden später durchgeführt. | ||||||
|       Intervall <code>interval</code> Sekunden später durchgeführt. |  | ||||||
|     </li> |     </li> | ||||||
|  |     <a id="Weather-set-newLocation"></a> | ||||||
|     <li> |     <li> | ||||||
|       <code>set <name> newLocation latitude,longitude</code><br><br> |       <i>set <name> newLocation latitude,longitude</i><br><br> | ||||||
|        |  | ||||||
|       Gibt die Möglichkeit eine neue temporäre Location zu setzen. |       Gibt die Möglichkeit eine neue temporäre Location zu setzen. | ||||||
|       Das Wertepaar Latitude Longitude wird durch ein Komma getrennt übergeben. |       Das Wertepaar Latitude Longitude wird durch ein Komma getrennt übergeben. | ||||||
|       Wird kein Wert mitgegebn (leere Übergabe) wird automatisch die per Definition erkannte Location genommen<br><br> |       Wird kein Wert mitgegebn (leere Übergabe) wird automatisch die per Definition erkannte Location genommen<br><br> | ||||||
|     </li> |     </li> | ||||||
|   </ul> |   </ul> | ||||||
|   <br> |   <br> | ||||||
|  |   <a id="Weather-get"></a> | ||||||
|   <a name="Weatherget"></a> |   <h4>Get</h4> | ||||||
|   <b>Get</b> |  | ||||||
|   <ul> |   <ul> | ||||||
|     <code>get <name> <reading></code><br><br> |     <code>get <name> <reading></code><br><br> | ||||||
|  |  | ||||||
|     Gültige ausgelesene Daten (readings) und ihre Bedeutung (das ? kann einen der Werte 1, 2, 3 , 4 oder 5 annehmen und steht für heute, morgen, übermorgen etc.):<br><br> |     Gültige ausgelesene Daten (readings) und ihre Bedeutung (das ? kann einen der Werte 1, 2, 3 , 4 oder 5 annehmen und steht für heute, morgen, übermorgen etc.):<br><br> | ||||||
|     <table> |     <table> | ||||||
|  |     <a id="Weather-get-.license"></a> | ||||||
|     <tr><td>.license</td><td>Lizenz des jeweiligen API-Anbieters, sofern vorhanden</td></tr> |     <tr><td>.license</td><td>Lizenz des jeweiligen API-Anbieters, sofern vorhanden</td></tr> | ||||||
|  |     <a id="Weather-get-city"></a> | ||||||
|     <tr><td>city</td><td>Name der Stadt, der für die location übermittelt wird</td></tr> |     <tr><td>city</td><td>Name der Stadt, der für die location übermittelt wird</td></tr> | ||||||
|  |     <a id="Weather-get-code"></a> | ||||||
|     <tr><td>code</td><td>Code für die aktuellen Wetterverhältnisse</td></tr> |     <tr><td>code</td><td>Code für die aktuellen Wetterverhältnisse</td></tr> | ||||||
|  |     <a id="Weather-get-condition"></a> | ||||||
|     <tr><td>condition</td><td>aktuelle Wetterverhältnisse</td></tr> |     <tr><td>condition</td><td>aktuelle Wetterverhältnisse</td></tr> | ||||||
|  |     <a id="Weather-get-current_date_time"></a> | ||||||
|     <tr><td>current_date_time</td><td>Zeitstempel der letzten Aktualisierung der Wetterdaten vom Server</td></tr> |     <tr><td>current_date_time</td><td>Zeitstempel der letzten Aktualisierung der Wetterdaten vom Server</td></tr> | ||||||
|  |     <a id="Weather-get-fc?_code"></a> | ||||||
|     <tr><td>fc?_code</td><td>Code für die vorhergesagten Wetterverhältnisse</td></tr> |     <tr><td>fc?_code</td><td>Code für die vorhergesagten Wetterverhältnisse</td></tr> | ||||||
|  |     <a id="Weather-get-fc?_condition"></a> | ||||||
|     <tr><td>fc?_condition</td><td>vorhergesagte Wetterverhältnisse</td></tr> |     <tr><td>fc?_condition</td><td>vorhergesagte Wetterverhältnisse</td></tr> | ||||||
|  |     <a id="Weather-get-fc?_day_of_week"></a> | ||||||
|     <tr><td>fc?_day_of_week</td><td>Wochentag des Tages, der durch ? dargestellt wird</td></tr> |     <tr><td>fc?_day_of_week</td><td>Wochentag des Tages, der durch ? dargestellt wird</td></tr> | ||||||
|  |     <a id="Weather-get-fc?_high_c"></a> | ||||||
|     <tr><td>fc?_high_c</td><td>vorhergesagte maximale Tagestemperatur in Grad Celsius</td></tr> |     <tr><td>fc?_high_c</td><td>vorhergesagte maximale Tagestemperatur in Grad Celsius</td></tr> | ||||||
|  |     <a id="Weather-get-fc?_icon"></a> | ||||||
|     <tr><td>fc?_icon</td><td>Icon für Vorhersage</td></tr> |     <tr><td>fc?_icon</td><td>Icon für Vorhersage</td></tr> | ||||||
|  |     <a id="Weather-get-fc?_low_c"></a> | ||||||
|     <tr><td>fc?_low_c</td><td>vorhergesagte niedrigste Tagestemperatur in Grad Celsius</td></tr> |     <tr><td>fc?_low_c</td><td>vorhergesagte niedrigste Tagestemperatur in Grad Celsius</td></tr> | ||||||
|  |     <a id="Weather-get-humidity"></a> | ||||||
|     <tr><td>humidity</td><td>gegenwärtige Luftfeuchtgkeit in %</td></tr> |     <tr><td>humidity</td><td>gegenwärtige Luftfeuchtgkeit in %</td></tr> | ||||||
|  |     <a id="Weather-get-icon"></a> | ||||||
|     <tr><td>icon</td><td>relativer Pfad für das aktuelle Icon</td></tr> |     <tr><td>icon</td><td>relativer Pfad für das aktuelle Icon</td></tr> | ||||||
|  |     <a id="Weather-get-pressure"></a> | ||||||
|     <tr><td>pressure</td><td>Luftdruck in hPa</td></tr> |     <tr><td>pressure</td><td>Luftdruck in hPa</td></tr> | ||||||
|  |     <a id="Weather-get-temperature"></a> | ||||||
|     <tr><td>temperature</td><td>gegenwärtige Temperatur in Grad Celsius</td></tr> |     <tr><td>temperature</td><td>gegenwärtige Temperatur in Grad Celsius</td></tr> | ||||||
|  |     <a id="Weather-get-temp_c"></a> | ||||||
|     <tr><td>temp_c</td><td>gegenwärtige Temperatur in Grad Celsius</td></tr> |     <tr><td>temp_c</td><td>gegenwärtige Temperatur in Grad Celsius</td></tr> | ||||||
|  |     <a id="Weather-get-temp_f"></a> | ||||||
|     <tr><td>temp_f</td><td>gegenwärtige Temperatur in Grad Celsius</td></tr> |     <tr><td>temp_f</td><td>gegenwärtige Temperatur in Grad Celsius</td></tr> | ||||||
|  |     <a id="Weather-get-visibility"></a> | ||||||
|     <tr><td>visibility</td><td>Sichtweite in km</td></tr> |     <tr><td>visibility</td><td>Sichtweite in km</td></tr> | ||||||
|  |     <a id="Weather-get-wind"></a> | ||||||
|     <tr><td>wind</td><td>Windgeschwindigkeit in km/h</td></tr> |     <tr><td>wind</td><td>Windgeschwindigkeit in km/h</td></tr> | ||||||
|  |     <a id="Weather-get-wind_condition"></a> | ||||||
|     <tr><td>wind_condition</td><td>Windrichtung und -geschwindigkeit</td></tr> |     <tr><td>wind_condition</td><td>Windrichtung und -geschwindigkeit</td></tr> | ||||||
|  |     <a id="Weather-get-wind_direction"></a> | ||||||
|     <tr><td>wind_direction</td><td>Gradangabe der Windrichtung (0 = Nordwind)</td></tr> |     <tr><td>wind_direction</td><td>Gradangabe der Windrichtung (0 = Nordwind)</td></tr> | ||||||
|  |     <a id="Weather-get-wind_speed"></a> | ||||||
|     <tr><td>wind_speed</td><td>Windgeschwindigkeit in km/h (mit wind identisch)</td></tr> |     <tr><td>wind_speed</td><td>Windgeschwindigkeit in km/h (mit wind identisch)</td></tr> | ||||||
|  |     <a id="Weather-get-validity"></a> | ||||||
|     <tr><td>validity</td><td>stale, wenn der Veröffentlichungszeitpunkt auf dem entfernten Server vor dem Zeitpunkt der aktuellen Daten (readings) liegt</td></tr> |     <tr><td>validity</td><td>stale, wenn der Veröffentlichungszeitpunkt auf dem entfernten Server vor dem Zeitpunkt der aktuellen Daten (readings) liegt</td></tr> | ||||||
|     </table> |     </table> | ||||||
|     <br> |     <br> | ||||||
| @@ -1515,16 +1567,20 @@ sub Weather_CheckOptions { | |||||||
|   </ul> |   </ul> | ||||||
|   <br> |   <br> | ||||||
|  |  | ||||||
|   <a name="Weatherattr"></a> |   <a id="Weather-attr"></a> | ||||||
|   <b>Attribute</b> |   <h4>Attribute</h4> | ||||||
|   <ul> |   <ul> | ||||||
|     <li>disable: stellt die Abfrage der Wetterdaten ab - der Timer läft |     <a id="Weather-attr-disable"></a> | ||||||
|  |     <li><i>disable</i> - stellt die Abfrage der Wetterdaten ab - der Timer läft | ||||||
|     gemäß Plan doch es werden keine Daten vom |     gemäß Plan doch es werden keine Daten vom | ||||||
|     API angefordert.</li> |     API angefordert.</li> | ||||||
|     <li><a href="#readingFnAttributes">readingFnAttributes</a></li> |     <li><a href="#readingFnAttributes">readingFnAttributes</a></li> | ||||||
|     <li>forecast - hourly/daily, Anzeige von forecast Daten.</li> |     <a id="Weather-attr-forecast"></a> | ||||||
|     <li>forecastLimit - Anzahl der Forecast-Datensätze welche als Reading geschrieben werden sollen.</li> |     <li><i>forecast</i> - hourly/daily, Anzeige von forecast Daten.</li> | ||||||
|     <li>alerts - 0/1 Sollen Alert Meldungen änlich Unwetterwarnung geschrieben werden.</li> |     <a id="Weather-attr-forecastLimit"></a> | ||||||
|  |     <li><i>forecastLimit</i> - Anzahl der Forecast-Datensätze welche als Reading geschrieben werden sollen.</li> | ||||||
|  |     <a id="Weather-attr-alerts"></a> | ||||||
|  |     <li><i>alerts</i> - 0/1 Sollen Alert Meldungen änlich Unwetterwarnung geschrieben werden.</li> | ||||||
|  |  | ||||||
|   </ul> |   </ul> | ||||||
|   <br> |   <br> | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| UPD 2023-01-05_18:36:31 55320 FHEM/59_Weather.pm | UPD 2023-01-07_13:19:38 57768 FHEM/59_Weather.pm | ||||||
| UPD 2023-01-04_16:37:24 49883 lib/FHEM/APIs/Weather/DarkSkyAPI.pm | UPD 2023-01-04_16:37:24 49883 lib/FHEM/APIs/Weather/DarkSkyAPI.pm | ||||||
| UPD 2023-01-05_19:39:00 33259 lib/FHEM/APIs/Weather/OpenWeatherMapAPI.pm | UPD 2023-01-05_19:42:34 33259 lib/FHEM/APIs/Weather/OpenWeatherMapAPI.pm | ||||||
| UPD 2023-01-04_16:37:24 36090 lib/FHEM/APIs/Weather/wundergroundAPI.pm | UPD 2023-01-04_16:37:24 36090 lib/FHEM/APIs/Weather/wundergroundAPI.pm | ||||||
|   | |||||||
							
								
								
									
										36
									
								
								hooks/commit-msg
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										36
									
								
								hooks/commit-msg
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,36 @@ | |||||||
|  | #!/bin/sh | ||||||
|  | # | ||||||
|  | # An example hook script to check the commit log message. | ||||||
|  | # Called by "git commit" with one argument, the name of the file | ||||||
|  | # that has the commit message.  The hook should exit with non-zero | ||||||
|  | # status after issuing an appropriate message if it wants to stop the | ||||||
|  | # commit.  The hook is allowed to edit the commit message file. | ||||||
|  | # | ||||||
|  | # To enable this hook, rename this file to "commit-msg". | ||||||
|  |  | ||||||
|  | # Uncomment the below to add a Signed-off-by line to the message. | ||||||
|  | # Doing this in a hook is a bad idea in general, but the prepare-commit-msg | ||||||
|  | # hook is more suited to it. | ||||||
|  | # | ||||||
|  | # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') | ||||||
|  | # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" | ||||||
|  |  | ||||||
|  | # This example catches duplicate Signed-off-by lines. | ||||||
|  |  | ||||||
|  | commit_msg=$(cat "${1:?Missing commit message file}") | ||||||
|  |  | ||||||
|  | test "" = "$(grep '^Signed-off-by: ' "$1" | | ||||||
|  | 	 sort | uniq -c | sed -e '/^[ 	]*1[ 	]/d')" || { | ||||||
|  | 	echo >&2 Duplicate Signed-off-by lines. | ||||||
|  | 	exit 1 | ||||||
|  | } | ||||||
|  |  | ||||||
|  | if ! echo "$commit_msg" | grep -Eq "^(build|chore|ci|docs|feat|feat!|fix|perf|refactor|revert|style|test)(\(.+\))?: .*$" ; then  | ||||||
|  |  | ||||||
|  |   echo "Invalid commit message"  | ||||||
|  |  | ||||||
|  |     exit 1  | ||||||
|  |  | ||||||
|  | fi  | ||||||
|  |  | ||||||
|  | echo "Commit message is valid!" | ||||||
							
								
								
									
										18
									
								
								hooks/post-commit
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										18
									
								
								hooks/post-commit
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,18 @@ | |||||||
|  | #!/bin/bash | ||||||
|  | set -eu | ||||||
|  |  | ||||||
|  | # destination of the final changelog file | ||||||
|  | OUTPUT_FILE=CHANGELOG.md | ||||||
|  |  | ||||||
|  | # generate the changelog | ||||||
|  | git --no-pager log --no-merges --format="### %s%d%n>%aD%n%n>Author: %aN (%aE)%n%n>Commiter: %cN (%cE)%n%n%b%n%N%n" > $OUTPUT_FILE | ||||||
|  |  | ||||||
|  | # prevent recursion! | ||||||
|  | # since a 'commit --amend' will trigger the post-commit script again | ||||||
|  | # we have to check if the changelog file has changed or not | ||||||
|  | res=$(git status --porcelain | grep -c ".\$OUTPUT_FILE$") | ||||||
|  | if [ "$res" -gt 0 ]; then | ||||||
|  |   git add $OUTPUT_FILE | ||||||
|  |   git commit --amend | ||||||
|  |   echo "Populated Changelog in $OUTPUT_FILE" | ||||||
|  | fi | ||||||
		Reference in New Issue
	
	Block a user