mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
git-svn-id: https://svn.fhem.de/fhem/trunk@2877 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
34fd46aa1b
commit
61a8fc1a93
@ -421,10 +421,10 @@ sub EMX_FormatValues ($) {
|
|||||||
#-- daily/monthly accumulated value
|
#-- daily/monthly accumulated value
|
||||||
my @monthv = EMX_GetMonth($hash);
|
my @monthv = EMX_GetMonth($hash);
|
||||||
my $total = $monthv[0]+$vval;
|
my $total = $monthv[0]+$vval;
|
||||||
$dvalue = sprintf("D_%02d Wd: %5.2f Wm: %6.2f Cd: %5.2f €",$day,$vval,$total,int($cost*100)/100);
|
$dvalue = sprintf("D_%02d Wd: %5.2f %s Wm: %6.2f %s Cd: %5.2f €",$day,$vval,$unit,$total,$unit,int($cost*100)/100);
|
||||||
readingsBulkUpdate($hash,"day",$dvalue);
|
readingsBulkUpdate($hash,"day",$dvalue);
|
||||||
if( $monthbreak == 1){
|
if( $monthbreak == 1){
|
||||||
$mvalue = sprintf("M_%02d Wm: %6.2f",$month,$total);
|
$mvalue = sprintf("M_%02d Wm: %6.2f %s",$month,$total,$unit);
|
||||||
readingsBulkUpdate($hash,"month",$mvalue);
|
readingsBulkUpdate($hash,"month",$mvalue);
|
||||||
Log 1,$name." has monthbreak $msg ".$mvalue;
|
Log 1,$name." has monthbreak $msg ".$mvalue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user