mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
httpmod.template: ORF_weather - correct bug readingOExpr
git-svn-id: https://svn.fhem.de/fhem/trunk@23475 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
abd5aede82
commit
91ef4d630b
@ -261,7 +261,7 @@ attr DEVICE get02Regex Sonnenaufgang um <\/span>(.*)<s[\w\W]*Sonnenuntergang um
|
||||
attr DEVICE get02URL MAINURL
|
||||
attr DEVICE reading01Regex (?s)Temperatur.*?.*?>.*?(?<temperature>(−)?[\d,]+)&thinsp.*?Taupunkt.*?.*?>.*?(?<taupunkt>(−)?[\d,]+)&thinsp.*?Wind.*?>\n\s*(?<wind>[^<]+)\s<abbr.*?Windspitzen.*?>\n\s*(?<windspitzen>[^<]+)\s<abbr.*?Luftdruck.*?>\n\s*(?<luftdruck>[^<]+)\s<abbr.*?Luftfeuchtigkeit.*?>\n\s*(?<humidity>[^<]+)\s<abbr.*?Sonnenschein.*?>\n\s*(?<sonne>[^<]+)\s<abbr.*?Niederschlag.*?>\n\s*(?<rain>[^<\n]+).*?</p.*?(?<messwerte>Messwerte[^<\n]+)
|
||||
attr DEVICE room WHICHROOM
|
||||
attr ORF_Weather readingOExpr $val =~ s/([\d]+),([\d]+) */$1.$2/ if $val =~ m{[\d]+,[\d]+ *\z};$val=~s/&minus\;/-/;$val
|
||||
attr DEVICE readingOExpr $val =~ s/([\d]+),([\d]+) */$1.$2/ if $val =~ m{[\d]+,[\d]+ *\z};$val=~s/&minus\;/-/;$val
|
||||
attr DEVICE stateFormat W: wind, H: humidity%rH, T: temperature°C
|
||||
attr DEVICE model ORF_weather
|
||||
setreading DEVICE attrTemplateVersion 20201129
|
||||
|
Loading…
x
Reference in New Issue
Block a user