2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2024-11-21 20:49:51 +00:00

fhem.cfg.demo: added Weather and RSS

git-svn-id: https://svn.fhem.de/fhem/trunk@7519 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2015-01-11 12:10:28 +00:00
parent b12aedbfd5
commit d9c930c0ee
9 changed files with 68 additions and 0 deletions

50
fhem/demolog/layout Normal file
View File

@ -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") }

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

View File

@ -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