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:
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user