Add Null values and new measurements

This commit is contained in:
Nise Void 2018-09-28 13:54:28 +02:00
parent c6e735950f
commit c83feeb845
Signed by: NiseVoid
GPG key ID: FBA14AC83EA602F3
8 changed files with 331 additions and 11 deletions

View file

@ -46,10 +46,10 @@ func handleReq(c echo.Context) error {
}
for _, m := range v.Modules {
if m.Port == 4 {
continue
}
p := strconv.Itoa(m.Port)
if p == `4` {
p = `N`
}
sets[key][`UGem`+p] = m.Voltage
sets[key][`IGem`+p] = m.Ampere