mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 02:10:32 +00:00
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:
parent
8834582552
commit
33510fcdbf
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||||
# Do not insert empty lines here, update check depends on it.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- change: 70_SolarEdgeAPI: show SolarEdge logo to comply with API requirements
|
||||||
- update: 98_MSwitch: New Version 2.6a
|
- update: 98_MSwitch: New Version 2.6a
|
||||||
(Forum: https://forum.fhem.de/index.php/topic,86199.msg984087.html#msg984087)
|
(Forum: https://forum.fhem.de/index.php/topic,86199.msg984087.html#msg984087)
|
||||||
- feature: 89_FULLY: New command set foreground
|
- feature: 89_FULLY: New command set foreground
|
||||||
|
@ -132,6 +132,8 @@ sub SolarEdgeAPI_Initialize($)
|
|||||||
"enableOverviewReadings:1,0 ".
|
"enableOverviewReadings:1,0 ".
|
||||||
"enableDebugReadings:1,0 ".
|
"enableDebugReadings:1,0 ".
|
||||||
$readingFnAttributes;
|
$readingFnAttributes;
|
||||||
|
|
||||||
|
$hash->{FW_detailFn} = "SolarEdgeAPI_fhemwebFn";
|
||||||
}
|
}
|
||||||
|
|
||||||
sub SolarEdgeAPI_Define($$)
|
sub SolarEdgeAPI_Define($$)
|
||||||
@ -980,6 +982,22 @@ sub SolarEdgeAPI_UpdateReadings($$$)
|
|||||||
readingsEndUpdate($hash, 1);
|
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;
|
1;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user