Plugin ‚piratewthr‘ Konfiguration
Im folgenden sind etwaige Anforderungen und unterstützte Hardware beschrieben. Danach folgt die Beschreibung, wie das Plugin piratewthr konfiguriert wird. Außerdem ist im folgenden beschrieben, wie das Plugin in den Item Definitionen genutzt werden kann. [1]
Es handelt sich bei diesem Plugin um ein web Plugin.
Beschreibung
Anforderungen
Minimum SmartHomeNG Version: 1.9.5.4
Konfiguration
Im folgenden ist beschrieben, wie das Plugin piratewthr konfiguriert wird. Außerdem ist im folgenden beschrieben, wie das Plugin in den Item Definitionen genutzt werden kann.
Parameter
Das Plugin verfügt über folgende Parameter, die in der Datei ../etc/plugin.yaml konfiguriert werden:
cycle
Datentyp: int
Standardwert: 900
key
Datentyp: str
lang
Datentyp: str
Standardwert: de
latitude
Datentyp: num
Standardwert: 0
longitude
Datentyp: num
Standardwert: 0
units
Datentyp: str
Standardwert: ca
Item Attribute
Das Plugin unterstützt folgende Item Attribute, die in den Dateien im Verzeichnis ../items verwendet werden:
pw_matchstring
Datentyp: str
Item-Structs
Das Plugin stellt die folgenden Item-Structs zur Verfügung. Diese Informationen sind aus der plugin.yaml entnommen und möglicherweise nicht vollständig.
_dayStruct
- _dayStruct (foo, —)
time_epoch (num, —)
time (str, —)
summary (str, —)
icon (str, —)
icon_visu (str, —)
nearestStormDistance (num, —)
precipIntensity (num, —)
precipIntensityError (num, —)
precipProbability (num, —)
precipType (str, —)
temperature (num, —)
apparenttemperature (num, —)
dewpoint (num, —)
humidity (num, —)
pressure (num, —)
windSpeed (foo, —)
windGust (foo, —)
windBearing (foo, —)
cloudCover (num, —)
uvIndex (num, —)
rain (num, Precipitation volume, mm)
snow (num, (where available) Snow volume, mm)
visibility (num, —)
ozone (num, —)
temperatureMin (num, —)
temperatureMinTime (num, —)
temperatureMax (num, —)
temperatureMaxTime (num, —)
apparentTemperatureMin (num, —)
apparentTemperatureMinTime (num, —)
apparentTemperatureMax (num, —)
apparentTemperatureMaxTime (num, —)
date (str, —)
weekday (str, —)
precipProbability_mean (num, —)
precipIntensity_mean (num, —)
temperature_mean (num, —)
hours (dict, —)
_hourStruct
- _hourStruct (foo, —)
time_epoch (num, —)
time (str, —)
summary (str, —)
icon (str, —)
icon_visu (str, —)
nearestStormDistance (num, —)
precipIntensity (num, —)
precipIntensityError (num, —)
precipProbability (num, —)
precipType (str, —)
temperature (num, —)
apparenttemperature (num, —)
dewpoint (num, —)
humidity (num, —)
pressure (num, —)
windSpeed (num, —)
windGust (num, —)
windBearing (num, —)
cloudCover (num, —)
uvIndex (num, —)
visibility (num, —)
ozone (num, —)
date (str, —)
weekday (str, —)
_windBearingStruct
- _windBearingStruct (num, —)
windDirectionString (str, —)
_windSpeedStruct
- _windSpeedStruct (num, —)
beaufortNr (num, Wind speed as beaufort number)
beaufortString (str, Wind speed as beaufort description)
current_weather
Current weather of Weather report from pirateweather.net - By default, data is not written to database
- current_weather (foo, Current weather of Weather report from pirateweather.net - By default, data is not written to database)
- currently (foo, —)
time_epoch (num, —)
time (str, —)
weekday (str, —)
summary (str, —)
icon (str, —)
icon_visu (str, —)
nearestStormDistance (num, —)
precipIntensity (num, —)
precipIntensityError (num, —)
precipProbability (num, —)
precipType (str, —)
temperature (num, —)
apparenttemperature (num, —)
dewpoint (num, —)
humidity (num, —)
pressure (num, —)
windSpeed (foo, —)
windGust (foo, —)
windBearing (foo, —)
cloudCover (num, —)
uvIndex (num, —)
visibility (num, —)
ozone (num, —)
date (str, —)
day (num, —)
forecast_daily
Daily forcast of Weather report from pirateweather.net - By default, data is not written to database
- forecast_daily (foo, Daily forcast of Weather report from pirateweather.net - By default, data is not written to database)
- daily (foo, —)
summary (str, —)
icon (str, —)
icon_visu (str, —)
day0 (foo, —)
day1 (foo, —)
day2 (foo, —)
day3 (foo, —)
day4 (foo, —)
day5 (foo, —)
day6 (foo, —)
day7 (foo, —)
forecast_hourly
Hourly forcast of Weather report from pirateweather.net - By default, data is not written to database
- forecast_hourly (foo, Hourly forcast of Weather report from pirateweather.net - By default, data is not written to database)
- hourly (foo, —)
summary (str, —)
icon (str, —)
icon_visu (str, —)
hour0 (foo, —)
hour1 (foo, —)
hour2 (foo, —)
hour3 (foo, —)
hour4 (foo, —)
hour5 (foo, —)
hour6 (foo, —)
hour7 (foo, —)
hour8 (foo, —)
hour9 (foo, —)
hour10 (foo, —)
hour11 (foo, —)
hour12 (foo, —)
weather
Complete weather report from pirateweather.net - Current weather and forecasts are written to database
- weather (foo, Complete weather report from pirateweather.net - Current weather and forecasts are written to database)
- locals (foo, —)
lat (num, —)
lon (num, —)
timezone (str, —)
location (str, —)
- minutely (foo, —)
summary (str, —)
icon (str, —)
icon_visu (str, —)
- alerts (foo, —)
list (list, —)
string_detail (str, —)
- flags (foo, —)
sources (str, —)
units (str, —)
nearest_station (num, —)
Logik Parameter
Das Plugin verfügt über folgende Parameter, die in der Datei ../etc/logic.yaml konfiguriert werden:
Keine Logik Parameter in den Metadaten beschrieben - Bitte in der README nachsehen (siehe Fußnote)
Plugin Functions
Das Plugin verfügt über folgende öffentliche Funktionen, die z.B. in Logiken aufgerufen werden können.
map_icon(icon)
Ergebnistyp der Funktion: str
- icon
Datentyp: str