141 | | meterItems[METER_INDEX_BUTTON].meterEnabled = 1; /* 0: item not used, 1: meter enabled */ |
---|
142 | | meterItems[METER_INDEX_BUTTON].timeLastTick = getEpochTimeWithMs(); /* when did the last tick occur? epoch (seconds) */ |
---|
143 | | meterItems[METER_INDEX_BUTTON].timeBeforeLastTick = getEpochTimeWithMs(); /* when did the tick before last tick occur? epoch (seconds) */ |
---|
144 | | meterItems[METER_INDEX_BUTTON].valueLastTick = 1; /* what value did we have at the last tick? */ |
---|
145 | | meterItems[METER_INDEX_BUTTON].currentValue = 1; /* same: start value of the meter */ |
---|
146 | | meterItems[METER_INDEX_BUTTON].valueBeforeLastTick = 0; /* what value did we have at the tick before the last tick? */ |
---|
| 141 | meterItems[METER_INDEX_TST].meterEnabled = 1; /* 0: item not used, 1: meter enabled */ |
---|
| 142 | meterItems[METER_INDEX_TST].timeLastTick = getEpochTimeWithMs(); /* when did the last tick occur? epoch (seconds) */ |
---|
| 143 | meterItems[METER_INDEX_TST].timeBeforeLastTick = getEpochTimeWithMs(); /* when did the tick before last tick occur? epoch (seconds) */ |
---|
| 144 | meterItems[METER_INDEX_TST].valueLastTick = 1; /* what value did we have at the last tick? */ |
---|
| 145 | meterItems[METER_INDEX_TST].currentValue = 1; /* same: start value of the meter */ |
---|
| 146 | meterItems[METER_INDEX_TST].valueBeforeLastTick = 0; /* what value did we have at the tick before the last tick? */ |
---|
| 156 | // Init Electricity meter 1 |
---|
| 157 | meterItems[METER_INDEX_EL1].meterEnabled = 1; /* 0: item not used, 1: meter enabled */ |
---|
| 158 | meterItems[METER_INDEX_EL1].timeLastTick = getEpochTimeWithMs(); /* when did the last tick occur? epoch (seconds) */ |
---|
| 159 | meterItems[METER_INDEX_EL1].timeBeforeLastTick = getEpochTimeWithMs(); /* when did the tick before last tick occur? epoch (seconds) */ |
---|
| 160 | meterItems[METER_INDEX_EL1].valueLastTick = 1; /* what value did we have at the last tick? */ |
---|
| 161 | meterItems[METER_INDEX_EL1].currentValue = 1; /* same: start value of the meter */ |
---|
| 162 | meterItems[METER_INDEX_EL1].valueBeforeLastTick = 0; /* what value did we have at the tick before the last tick? */ |
---|
| 163 | |
---|
| 164 | // Init Electricity meter 2 |
---|
| 165 | meterItems[METER_INDEX_EL2].meterEnabled = 1; /* 0: item not used, 1: meter enabled */ |
---|
| 166 | meterItems[METER_INDEX_EL2].timeLastTick = getEpochTimeWithMs(); /* when did the last tick occur? epoch (seconds) */ |
---|
| 167 | meterItems[METER_INDEX_EL2].timeBeforeLastTick = getEpochTimeWithMs(); /* when did the tick before last tick occur? epoch (seconds) */ |
---|
| 168 | meterItems[METER_INDEX_EL2].valueLastTick = 1; /* what value did we have at the last tick? */ |
---|
| 169 | meterItems[METER_INDEX_EL2].currentValue = 1; /* same: start value of the meter */ |
---|
| 170 | meterItems[METER_INDEX_EL2].valueBeforeLastTick = 0; /* what value did we have at the tick before the last tick? */ |
---|
| 171 | |
---|
| 172 | |
---|
| 173 | |
---|