X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=go%2Fr3-netstatus%2Fwebstatus.go;h=3da6e7df694e14b9775bd8016d77a416a3cce74f;hb=d660271629ff32c40cff4fdff4449a39fe950159;hp=c3b3f2d6817b3fc97e7c7bedff07b01b7f370fe0;hpb=24beb46159420e5fba929b328d045bf40e6ff433;p=svn42.git diff --git a/go/r3-netstatus/webstatus.go b/go/r3-netstatus/webstatus.go index c3b3f2d..3da6e7d 100644 --- a/go/r3-netstatus/webstatus.go +++ b/go/r3-netstatus/webstatus.go @@ -98,15 +98,18 @@ func EventToWeb(ps *pubsub.PubSub) { var tempsensorlocation string switch event.Sensorindex { case 0: - tempsensorlocation = "HHL" + tempsensorlocation = "LoTHR" case 1: - tempsensorlocation = "Gang" + tempsensorlocation = "CX" default: tempsensorlocation = "Sonstwo" } spaceapidata.MergeInSensor(spaceapi.MakeTempCSensor(fmt.Sprintf("Temp%d",event.Sensorindex),tempsensorlocation, event.Value)) case r3events.IlluminationSensorUpdate: - spaceapidata.MergeInSensor(spaceapi.MakeIlluminationSensor("Photodiode","MHR","1024V/5V", event.Value)) + spaceapidata.MergeInSensor(spaceapi.MakeIlluminationSensor("Photodiode","LoTHR","1024V/5V", event.Value)) + case r3events.GasLeakAlert: + spaceapidata.AddSpaceEvent("GasLeak", "alert", "GasLeak Alert has been triggered") + publishStateToWeb() } } }