mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
UConv.pm: add more weather reading conversions
git-svn-id: https://svn.fhem.de/fhem/trunk@12490 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3bb9241b61
commit
a2e370ef22
@ -158,9 +158,16 @@ my %units = (
|
|||||||
"txt_format_long" => '%VALUE% %unit_prefix% %unit_long%',
|
"txt_format_long" => '%VALUE% %unit_prefix% %unit_long%',
|
||||||
},
|
},
|
||||||
|
|
||||||
# hydro
|
# percent
|
||||||
"hg" => {
|
"pct" => {
|
||||||
"unit_symbol" => "%",
|
"unit_symbol" => "%",
|
||||||
|
"unit_long" => {
|
||||||
|
"de" => "Prozent",
|
||||||
|
"en" => "percent",
|
||||||
|
"fr" => "percent",
|
||||||
|
"nl" => "percent",
|
||||||
|
"pl" => "percent",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
# speed
|
# speed
|
||||||
@ -403,7 +410,7 @@ my %units = (
|
|||||||
},
|
},
|
||||||
|
|
||||||
# angular
|
# angular
|
||||||
"degree" => {
|
"deg" => {
|
||||||
"unit" => "°",
|
"unit" => "°",
|
||||||
"unit_long" => {
|
"unit_long" => {
|
||||||
"de" => "Grad",
|
"de" => "Grad",
|
||||||
@ -453,8 +460,18 @@ sub UnitDetails ($;$) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
my %weather_readings = (
|
my %weather_readings = (
|
||||||
|
"airpress" => {
|
||||||
|
"unified" => "pressure_hpa", # link only
|
||||||
|
},
|
||||||
|
"azimuth" => {
|
||||||
|
"short" => "AZ",
|
||||||
|
"unit" => "deg",
|
||||||
|
},
|
||||||
|
"compasspoint" => {
|
||||||
|
"short" => "CP",
|
||||||
|
},
|
||||||
"dewpoint" => {
|
"dewpoint" => {
|
||||||
"unified" => "dewpoint_c", # link only
|
"unified" => "dewpoint_c", # link only
|
||||||
},
|
},
|
||||||
"dewpoint_c" => {
|
"dewpoint_c" => {
|
||||||
"short" => "D",
|
"short" => "D",
|
||||||
@ -468,9 +485,46 @@ my %weather_readings = (
|
|||||||
"short" => "Dk",
|
"short" => "Dk",
|
||||||
"unit" => "k",
|
"unit" => "k",
|
||||||
},
|
},
|
||||||
|
"elevation" => {
|
||||||
|
"short" => "EL",
|
||||||
|
"unit" => "deg",
|
||||||
|
},
|
||||||
|
"feelslike" => {
|
||||||
|
"unified" => "feelslike_c", # link only
|
||||||
|
},
|
||||||
|
"feelslike_c" => {
|
||||||
|
"short" => "Tf",
|
||||||
|
"unit" => "c",
|
||||||
|
},
|
||||||
|
"feelslike_f" => {
|
||||||
|
"short" => "Tff",
|
||||||
|
"unit" => "f",
|
||||||
|
},
|
||||||
|
"heat_index" => {
|
||||||
|
"unified" => "heat_index_c", # link only
|
||||||
|
},
|
||||||
|
"heat_index_c" => {
|
||||||
|
"short" => "HI",
|
||||||
|
"unit" => "c",
|
||||||
|
},
|
||||||
|
"heat_index_f" => {
|
||||||
|
"short" => "HIf",
|
||||||
|
"unit" => "f",
|
||||||
|
},
|
||||||
|
"high" => {
|
||||||
|
"unified" => "high_c", # link only
|
||||||
|
},
|
||||||
|
"high_c" => {
|
||||||
|
"short" => "Th",
|
||||||
|
"unit" => "c",
|
||||||
|
},
|
||||||
|
"high_f" => {
|
||||||
|
"short" => "Thf",
|
||||||
|
"unit" => "f",
|
||||||
|
},
|
||||||
"humidity" => {
|
"humidity" => {
|
||||||
"short" => "H",
|
"short" => "H",
|
||||||
"unit" => "hg",
|
"unit" => "pct",
|
||||||
},
|
},
|
||||||
"humidityabs" => {
|
"humidityabs" => {
|
||||||
"unified" => "humidityabs_c", # link only
|
"unified" => "humidityabs_c", # link only
|
||||||
@ -487,6 +541,10 @@ my %weather_readings = (
|
|||||||
"short" => "Hak",
|
"short" => "Hak",
|
||||||
"unit" => "k",
|
"unit" => "k",
|
||||||
},
|
},
|
||||||
|
"horizon" => {
|
||||||
|
"short" => "HORIZ",
|
||||||
|
"unit" => "deg",
|
||||||
|
},
|
||||||
"indoordewpoint" => {
|
"indoordewpoint" => {
|
||||||
"unified" => "indoordewpoint_c", # link only
|
"unified" => "indoordewpoint_c", # link only
|
||||||
},
|
},
|
||||||
@ -504,7 +562,7 @@ my %weather_readings = (
|
|||||||
},
|
},
|
||||||
"indoorhumidity" => {
|
"indoorhumidity" => {
|
||||||
"short" => "Hi",
|
"short" => "Hi",
|
||||||
"unit" => "hg",
|
"unit" => "pct",
|
||||||
},
|
},
|
||||||
"indoorhumidityabs" => {
|
"indoorhumidityabs" => {
|
||||||
"unified" => "indoorhumidityabs_c", # link only
|
"unified" => "indoorhumidityabs_c", # link only
|
||||||
@ -525,26 +583,42 @@ my %weather_readings = (
|
|||||||
"unified" => "indoortemperature_c", # link only
|
"unified" => "indoortemperature_c", # link only
|
||||||
},
|
},
|
||||||
"indoortemperature_c" => {
|
"indoortemperature_c" => {
|
||||||
"short" => "T",
|
"short" => "Ti",
|
||||||
"unit" => "c",
|
"unit" => "c",
|
||||||
},
|
},
|
||||||
"indoortemperature_f" => {
|
"indoortemperature_f" => {
|
||||||
"short" => "Tf",
|
"short" => "Tif",
|
||||||
"unit" => "f",
|
"unit" => "f",
|
||||||
},
|
},
|
||||||
"indoortemperature_k" => {
|
"indoortemperature_k" => {
|
||||||
"short" => "Tk",
|
"short" => "Tik",
|
||||||
"unit" => "k",
|
"unit" => "k",
|
||||||
},
|
},
|
||||||
"israining" => {
|
"israining" => {
|
||||||
"short" => "IR",
|
"short" => "IR",
|
||||||
},
|
},
|
||||||
|
"level" => {
|
||||||
|
"short" => "LVL",
|
||||||
|
"unit" => "pct",
|
||||||
|
},
|
||||||
|
"low" => {
|
||||||
|
"unified" => "low_c", # link only
|
||||||
|
},
|
||||||
|
"low_c" => {
|
||||||
|
"short" => "Tl",
|
||||||
|
"unit" => "c",
|
||||||
|
},
|
||||||
|
"low_f" => {
|
||||||
|
"short" => "Tlf",
|
||||||
|
"unit" => "f",
|
||||||
|
},
|
||||||
"luminosity" => {
|
"luminosity" => {
|
||||||
"short" => "L",
|
"short" => "L",
|
||||||
"unit" => "lux",
|
"unit" => "lux",
|
||||||
},
|
},
|
||||||
"airpress" => {
|
"pct" => {
|
||||||
"unified" => "pressure_hpa", # link only
|
"short" => "PCT",
|
||||||
|
"unit" => "pct",
|
||||||
},
|
},
|
||||||
"pressure" => {
|
"pressure" => {
|
||||||
"unified" => "pressure_hpa", # link only
|
"unified" => "pressure_hpa", # link only
|
||||||
@ -614,8 +688,19 @@ my %weather_readings = (
|
|||||||
"short" => "Rdin",
|
"short" => "Rdin",
|
||||||
"unit" => "in",
|
"unit" => "in",
|
||||||
},
|
},
|
||||||
|
"rain_night" => {
|
||||||
|
"unified" => "rain_night_mm", # link only
|
||||||
|
},
|
||||||
|
"rain_night_mm" => {
|
||||||
|
"short" => "Rn",
|
||||||
|
"unit" => "mm",
|
||||||
|
},
|
||||||
|
"rain_night_in" => {
|
||||||
|
"short" => "Rnin",
|
||||||
|
"unit" => "in",
|
||||||
|
},
|
||||||
"rain_week" => {
|
"rain_week" => {
|
||||||
"unified" => "rain_week_mm", # link only
|
"unified" => "rain_week_mm", # link only
|
||||||
},
|
},
|
||||||
"rain_week_mm" => {
|
"rain_week_mm" => {
|
||||||
"short" => "Rw",
|
"short" => "Rw",
|
||||||
@ -647,11 +732,44 @@ my %weather_readings = (
|
|||||||
"short" => "Ryin",
|
"short" => "Ryin",
|
||||||
"unit" => "in",
|
"unit" => "in",
|
||||||
},
|
},
|
||||||
|
"snow" => {
|
||||||
|
"unified" => "snow_cm", # link only
|
||||||
|
},
|
||||||
|
"snow_cm" => {
|
||||||
|
"short" => "S",
|
||||||
|
"unit" => "cm",
|
||||||
|
},
|
||||||
|
"snow_in" => {
|
||||||
|
"short" => "Sin",
|
||||||
|
"unit" => "in",
|
||||||
|
},
|
||||||
|
"snow_day" => {
|
||||||
|
"unified" => "snow_day_cm", # link only
|
||||||
|
},
|
||||||
|
"snow_day_cm" => {
|
||||||
|
"short" => "Sd",
|
||||||
|
"unit" => "cm",
|
||||||
|
},
|
||||||
|
"snow_day_in" => {
|
||||||
|
"short" => "Sdin",
|
||||||
|
"unit" => "in",
|
||||||
|
},
|
||||||
|
"snow_night" => {
|
||||||
|
"unified" => "snow_night_cm", # link only
|
||||||
|
},
|
||||||
|
"snow_night_cm" => {
|
||||||
|
"short" => "Sn",
|
||||||
|
"unit" => "cm",
|
||||||
|
},
|
||||||
|
"snow_night_in" => {
|
||||||
|
"short" => "Snin",
|
||||||
|
"unit" => "in",
|
||||||
|
},
|
||||||
"sunshine" => {
|
"sunshine" => {
|
||||||
"unified" => "solarradiation", # link only
|
"unified" => "solarradiation", # link only
|
||||||
},
|
},
|
||||||
"solarradiation" => {
|
"solarradiation" => {
|
||||||
"short" => "S",
|
"short" => "SR",
|
||||||
"unit" => "wpsm",
|
"unit" => "wpsm",
|
||||||
},
|
},
|
||||||
"temp" => {
|
"temp" => {
|
||||||
@ -718,7 +836,7 @@ my %weather_readings = (
|
|||||||
},
|
},
|
||||||
"wind_direction" => {
|
"wind_direction" => {
|
||||||
"short" => "Wd",
|
"short" => "Wd",
|
||||||
"unit" => "degree",
|
"unit" => "deg",
|
||||||
},
|
},
|
||||||
"wind_dir" => {
|
"wind_dir" => {
|
||||||
"unified" => "wind_direction", # link only
|
"unified" => "wind_direction", # link only
|
||||||
|
Loading…
x
Reference in New Issue
Block a user