-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
89fe98b
commit 478dae7
Showing
13 changed files
with
282 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
** Copyright (C) 2023 Victron Energy B.V. | ||
*/ | ||
|
||
import QtQuick | ||
import Victron.VenusOS | ||
import Victron.Veutil | ||
import "/components/Utils.js" as Utils | ||
|
||
QtObject { | ||
id: root | ||
|
||
property string serviceUid | ||
|
||
readonly property AcOutputPhase phase1: AcOutputPhase { | ||
serviceUid: root.serviceUid + "/Ac/Out/L1" | ||
} | ||
readonly property AcOutputPhase phase2: AcOutputPhase { | ||
serviceUid: root.serviceUid + "/Ac/Out/L2" | ||
} | ||
readonly property AcOutputPhase phase3: AcOutputPhase { | ||
serviceUid: root.serviceUid + "/Ac/Out/L3" | ||
} | ||
readonly property bool is3Phase: phase1.valid && phase2.valid &&phase3.valid | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
** Copyright (C) 2023 Victron Energy B.V. | ||
*/ | ||
|
||
import QtQuick | ||
import Victron.VenusOS | ||
import Victron.Veutil | ||
import "/components/Utils.js" as Utils | ||
|
||
QtObject { | ||
id: root | ||
|
||
property string serviceUid | ||
readonly property real frequency: _frequency.value === undefined ? NaN : _frequency.value | ||
readonly property real current: _current.value === undefined ? NaN : _current.value | ||
readonly property real voltage: _voltage.value === undefined ? NaN : _voltage.value | ||
readonly property real power: _power.value === undefined ? NaN : _power.value | ||
readonly property bool valid: !Number.isNaN(frequency) && | ||
!Number.isNaN(current) && | ||
!Number.isNaN(voltage) && | ||
!Number.isNaN(power) | ||
|
||
readonly property VeQuickItem _frequency: VeQuickItem { | ||
uid: serviceUid + "/F" | ||
} | ||
|
||
readonly property VeQuickItem _current: VeQuickItem { | ||
uid: serviceUid + "/I" | ||
} | ||
|
||
readonly property VeQuickItem _voltage: VeQuickItem { | ||
uid: serviceUid + "/F" | ||
} | ||
|
||
readonly property VeQuickItem _power: VeQuickItem { | ||
uid: serviceUid + "/P" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.