70_SolarEdgeAPI: show SolarEdge logo to comply with API requirements

git-svn-id: https://svn.fhem.de/fhem/trunk@20391 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
pizmus
2019-10-21 19:34:40 +00:00
parent ff96cdcb0d
commit 88e2d19d4c
2 changed files with 19 additions and 0 deletions

View File

@@ -132,6 +132,8 @@ sub SolarEdgeAPI_Initialize($)
"enableOverviewReadings:1,0 ".
"enableDebugReadings:1,0 ".
$readingFnAttributes;
$hash->{FW_detailFn} = "SolarEdgeAPI_fhemwebFn";
}
sub SolarEdgeAPI_Define($$)
@@ -980,6 +982,22 @@ sub SolarEdgeAPI_UpdateReadings($$$)
readingsEndUpdate($hash, 1);
}
###############################################################################
# show SolarEdge logo
###############################################################################
sub SolarEdgeAPI_fhemwebFn($$$)
{
my ($FW_wname, $d, $room) = @_;
return << 'EOF'
<br>
<a href="https://www.solaredge.com">
<img src="https://www.solaredge.com/sites/default/files/SolarEdge_logo_header_new.png">
</a>
<br>
EOF
}
1;