diff --git a/fhem/FHEM/00_THZ.pm b/fhem/FHEM/00_THZ.pm index 5fdc3d8a7..8182e9f85 100644 --- a/fhem/FHEM/00_THZ.pm +++ b/fhem/FHEM/00_THZ.pm @@ -2,7 +2,7 @@ # 00_THZ # $Id$ # by immi 04/2014 -# v. 0.092 +# v. 0.093 # this code is based on the hard work of Robert; I just tried to port it # http://robert.penz.name/heat-pump-lwz/ # http://heatpumpmonitor.penz.name/heatpumpmonitorwiki/ @@ -51,6 +51,7 @@ sub THZ_debugread($); sub THZ_GetRefresh($); sub THZ_Refresh_all_gets($); sub THZ_Get_Comunication($$); +sub THZ_PrintcurveSVG; @@ -295,9 +296,10 @@ sub THZ_Initialize($) ."interval_sHC2:0,60,120,180,300,600,3600,7200,43200,86400 " ."interval_sHistory:0,3600,7200,28800,43200,86400 " ."interval_sLast10errors:0,3600,7200,28800,43200,86400 " - ."internal_sHeatRecoveredDay:0,3600,7200,28800,43200,86400 " - ."internal_sHeatRecoveredTotal:0,3600,7200,28800,43200,86400 " + ."interval_sHeatRecoveredDay:0,1200,3600,7200,28800,43200,86400 " + ."interval_sHeatRecoveredTotal:0,3600,7200,28800,43200,86400 " . $readingFnAttributes; + $data{FWEXT}{"/THZ_PrintcurveSVG"}{FUNC} = "THZ_PrintcurveSVG"; } @@ -1159,11 +1161,126 @@ sub THZ_Undef($$) { DevIo_CloseDev($hash); return undef; } +##################################### +# sub THZ_PrintcurveSVG +# plots heat curve +#define wl_hr weblink htmlCode {THZ_PrintcurveSVG} +# da mettere dentro lo style per funzionare sopra svg { height:200px; width:800px;} +#define wl_hr2 weblink htmlCode
wl_hr2