Skip to content

Commit

Permalink
Add gui variables for the remote override room setpoint functions, as
Browse files Browse the repository at this point in the history
requested via bug report #19.
  • Loading branch information
hvxl committed Feb 25, 2022
1 parent b022388 commit 0c760f0
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions otmonitor.vfs/otmonitor.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,17 @@ proc asfflags {list} {
}
return 0
}
proc overrideflags {list} {
reportflags {
} {
"Manual change priority" {"disable overrule" "enable overrule"}
"Program change priority" {"disable overrule" "enable overrule"}
} $list
lassign $list - flags
guiflag manualoverrule [expr {($flags & 1) != 0}]
guiflag programoverrule [expr {($flags & 2) != 0}]
return 0
}

proc returntemp {list} {
global gui
Expand Down Expand Up @@ -2124,11 +2135,7 @@ special 4 86 reportflags {
} {
"Nominal ventilation value" {read-only read/write}
}
special 4 100 reportflags {
} {
"Manual change priority" {"disable overrule" "enable overrule"}
"Program change priority" {"disable overrule" "enable overrule"}
}
special 4 100 overrideflags
special 4 103 reportflags {
"System type" {"DHW preheat" "DHW parallel"}
} {
Expand Down

0 comments on commit 0c760f0

Please sign in to comment.