diff --git a/fhem/demolog/layout b/fhem/demolog/layout new file mode 100644 index 000000000..9f92971c1 --- /dev/null +++ b/fhem/demolog/layout @@ -0,0 +1,50 @@ +font /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf + +rgb c0c0c0 # HTML color notation, RGB +pt 18 +date 25 470 +pt 48 # font size in points +time 20 525 # time @ (0.1*width, 0.9*height) +pt 18 + +img 20 525 0.5 png file { "www/images/default/weather/" . ReadingsVal("Weather","icon","") . ".png" } + +pt 18 + +text 104 548 { ReadingsVal("Weather","temperature","?"). "°C" } +text 104 570 { ReadingsVal("Weather","humidity","?"). "%" } + +pt 10 + +text 35 590 { ReadingsVal("Weather","wind","?") ."km/h" } +text 90 590 { ReadingsVal("Weather","pressure","?"). "hPa " . ReadingsVal("Weather","pressure_trend_sym","?") } + + + +text 350 525 { ReadingsVal("Weather","fc1_day_of_week","?") } +img 330 525 0.5 png file { "www/images/default/weather/" . ReadingsVal("Weather","fc1_icon","") . ".png" } +text 330 590 { ReadingsVal("Weather","fc1_low_c","?")."°C" } +text 370 590 { ReadingsVal("Weather","fc1_high_c","?")."°C" } + +text 440 525 { ReadingsVal("Weather","fc2_day_of_week","?") } +img 420 525 0.5 png file { "www/images/default/weather/" . ReadingsVal("Weather","fc2_icon","") . ".png" } +text 420 590 { ReadingsVal("Weather","fc2_low_c","?")."°C" } +text 460 590 { ReadingsVal("Weather","fc2_high_c","?")."°C" } + +text 530 525 { ReadingsVal("Weather","fc3_day_of_week","?") } +img 510 525 0.5 png file { "www/images/default/weather/" . ReadingsVal("Weather","fc3_icon","") . ".png" } +text 510 590 { ReadingsVal("Weather","fc3_low_c","?")."°C" } +text 550 590 { ReadingsVal("Weather","fc3_high_c","?")."°C" } + +text 620 525 { ReadingsVal("Weather","fc4_day_of_week","?") } +img 600 525 0.5 png file { "www/images/default/weather/" . ReadingsVal("Weather","fc4_icon","") . ".png" } +text 600 590 { ReadingsVal("Weather","fc4_low_c","?")."°C" } +text 640 590 { ReadingsVal("Weather","fc4_high_c","?")."°C" } + +text 710 525 { ReadingsVal("Weather","fc5_day_of_week","?") } +img 690 525 0.5 png file { "www/images/default/weather/" . ReadingsVal("Weather","fc5_icon","") . ".png" } +text 690 590 { ReadingsVal("Weather","fc5_low_c","?")."°C" } +text 730 590 { ReadingsVal("Weather","fc5_high_c","?")."°C" } + +text 735 15 { sunrise_abs("REAL") } +text 735 30 { sunset_abs("REAL") } diff --git a/fhem/demolog/pictures/copyright.txt b/fhem/demolog/pictures/copyright.txt new file mode 100644 index 000000000..3183b1d4c --- /dev/null +++ b/fhem/demolog/pictures/copyright.txt @@ -0,0 +1,3 @@ +Urheber: Dr. Boris Neubert, omega at online dot de +Die Fotos sind lizenziert unter einer Creative Commons Namensnennung - Keine Bearbeitungen 4.0 International Lizenz. +Siehe http://creativecommons.org/licenses/by-nd/4.0 \ No newline at end of file diff --git a/fhem/demolog/pictures/p1.jpg b/fhem/demolog/pictures/p1.jpg new file mode 100644 index 000000000..f5ce8902a Binary files /dev/null and b/fhem/demolog/pictures/p1.jpg differ diff --git a/fhem/demolog/pictures/p2.jpg b/fhem/demolog/pictures/p2.jpg new file mode 100644 index 000000000..56af360fe Binary files /dev/null and b/fhem/demolog/pictures/p2.jpg differ diff --git a/fhem/demolog/pictures/p3.jpg b/fhem/demolog/pictures/p3.jpg new file mode 100644 index 000000000..8b31ffbce Binary files /dev/null and b/fhem/demolog/pictures/p3.jpg differ diff --git a/fhem/demolog/pictures/p4.jpg b/fhem/demolog/pictures/p4.jpg new file mode 100644 index 000000000..9f3168b28 Binary files /dev/null and b/fhem/demolog/pictures/p4.jpg differ diff --git a/fhem/demolog/pictures/p5.jpg b/fhem/demolog/pictures/p5.jpg new file mode 100644 index 000000000..062feaa03 Binary files /dev/null and b/fhem/demolog/pictures/p5.jpg differ diff --git a/fhem/demolog/pictures/p6.jpg b/fhem/demolog/pictures/p6.jpg new file mode 100644 index 000000000..bcf133a2d Binary files /dev/null and b/fhem/demolog/pictures/p6.jpg differ diff --git a/fhem/fhem.cfg.demo b/fhem/fhem.cfg.demo index dc4819a1d..6ee8e4a28 100644 --- a/fhem/fhem.cfg.demo +++ b/fhem/fhem.cfg.demo @@ -315,3 +315,18 @@ attr CT room Light attr CT setFn {if( $CMD =~ m/on|off/ ) { $ARGS=$CMD;;$CMD = "state" } else {fhem ("setreading $DEVICE state on");;} fhem ("setreading $DEVICE $CMD $ARGS");;return undef;;} attr CT setList on:noArg off:noArg ct:colorpicker,CT,2000,1,6500 attr CT webCmd ct::ct 2040:ct 2630:ct 3703:ct 6250:on:off + +define Weather Weather 673513 1800 de +attr Weather group Weather +attr Weather room Weather + +#define Weather.weblink weblink htmlCode { WeatherAsHtmlH("Weather") } +#attr Weather.weblink alias Weather Forecast +#attr Weather.weblink room Weather + +define Display RSS jpg localhost ./demolog/layout +attr Display room System +attr Display size 800x600 +attr Display bg ./demolog/pictures +attr Display tmin 15 +attr Display refresh 5