added yearly Energy and costs
This commit is contained in:
1 parent
ac0621ffe4
commit
989d58ad1a
8 files changed
+54
-12
No files matched your search
@@ -21,6 +21,8 @@ class EnergyCounterChild extends IPSModule
|
||||
$this->RegisterPropertyBoolean('ShowDayCost', true);
|
||||
$this->RegisterPropertyBoolean('ShowMonthEnergy', true);
|
||||
$this->RegisterPropertyBoolean('ShowMonthCost', true);
|
||||
$this->RegisterPropertyBoolean('ShowYearEnergy', true);
|
||||
$this->RegisterPropertyBoolean('ShowYearCost', true);
|
||||
|
||||
$this->EnsureProfiles();
|
||||
$this->RegisterValueVariables();
|
||||
@@ -63,6 +65,8 @@ class EnergyCounterChild extends IPSModule
|
||||
$this->RegisterVariableFloat('DayCost', $this->Translate('Daily Cost'), self::COST_PROFILE, 40);
|
||||
$this->RegisterVariableFloat('MonthEnergy', $this->Translate('Monthly Energy'), self::ENERGY_PROFILE, 50);
|
||||
$this->RegisterVariableFloat('MonthCost', $this->Translate('Monthly Cost'), self::COST_PROFILE, 60);
|
||||
$this->RegisterVariableFloat('YearEnergy', $this->Translate('Yearly Energy'), self::ENERGY_PROFILE, 70);
|
||||
$this->RegisterVariableFloat('YearCost', $this->Translate('Yearly Cost'), self::COST_PROFILE, 80);
|
||||
}
|
||||
|
||||
private function ApplyVisibility()
|
||||
@@ -73,7 +77,9 @@ class EnergyCounterChild extends IPSModule
|
||||
'DayEnergy' => $this->ReadPropertyBoolean('ShowDayEnergy'),
|
||||
'DayCost' => $this->ReadPropertyBoolean('ShowDayCost'),
|
||||
'MonthEnergy' => $this->ReadPropertyBoolean('ShowMonthEnergy'),
|
||||
'MonthCost' => $this->ReadPropertyBoolean('ShowMonthCost')
|
||||
'MonthCost' => $this->ReadPropertyBoolean('ShowMonthCost'),
|
||||
'YearEnergy' => $this->ReadPropertyBoolean('ShowYearEnergy'),
|
||||
'YearCost' => $this->ReadPropertyBoolean('ShowYearCost')
|
||||
];
|
||||
|
||||
foreach ($visibility as $ident => $visible) {
|
||||
|
||||
Reference in new issue
Block a user