add features to show total heating time and percentage on heating tab
and total pump cycles on homepage
This commit is contained in:
@ -57,6 +57,12 @@ class GeneralInformation extends Component<GeneralInformationRestControllerProps
|
||||
secondary={props.data.lastPumpDuration !== 0 ? stringifyTime(props.data.lastPumpDuration) : "-"}
|
||||
/>
|
||||
</ListItem>
|
||||
<ListItem>
|
||||
<ListItemText
|
||||
primary="Pumpzyklen seit Programmstart"
|
||||
secondary={props.data.pumpcycles}
|
||||
/>
|
||||
</ListItem>
|
||||
<ListItem>
|
||||
<ListItemText
|
||||
primary="WasserSensor / DruckSensor"
|
||||
|
@ -39,6 +39,12 @@ class HeatingInformation extends React.Component<HeatingRestcontollerprops> {
|
||||
secondary={props.data.lastheatduration === 0 ? "-" : props.data.lastheatduration === -1 ? "läuft gerade!" : stringifyTime(props.data.lastheatduration)}
|
||||
/>
|
||||
</ListItem>
|
||||
<ListItem>
|
||||
<ListItemText
|
||||
primary="Gesammte Heizdauer / Prozentuelle Einschaltzeit"
|
||||
secondary={stringifyTime(props.data.totalheattime) + ' / ' + props.data.heattimepercent + '%'}
|
||||
/>
|
||||
</ListItem>
|
||||
<ListItem>
|
||||
<ListItemText
|
||||
primary="Temperatur/Luftfeuchtigkeit:"
|
||||
|
@ -14,6 +14,7 @@ export interface GeneralInformaitonState {
|
||||
watersensor: boolean;
|
||||
pressuresensor: boolean;
|
||||
version: string;
|
||||
pumpcycles: number;
|
||||
}
|
||||
|
||||
export interface HeatingInformationState {
|
||||
@ -21,5 +22,6 @@ export interface HeatingInformationState {
|
||||
lastheatduration: number;
|
||||
hum: number;
|
||||
temp: number;
|
||||
|
||||
totalheattime: number;
|
||||
heattimepercent: number;
|
||||
}
|
||||
|
Reference in New Issue
Block a user