X-Git-Url: https://git.realraum.at/?p=svn42.git;a=blobdiff_plain;f=go%2Fr3-netstatus%2Fwebstatus.go;h=3da6e7df694e14b9775bd8016d77a416a3cce74f;hp=224fdc417d52c8258fcb15c7c15fe26ec3eec5a3;hb=d660271629ff32c40cff4fdff4449a39fe950159;hpb=df03216ae02275765ae9a6757aed77bf0ac3da20 diff --git a/go/r3-netstatus/webstatus.go b/go/r3-netstatus/webstatus.go index 224fdc4..3da6e7d 100644 --- a/go/r3-netstatus/webstatus.go +++ b/go/r3-netstatus/webstatus.go @@ -107,6 +107,9 @@ func EventToWeb(ps *pubsub.PubSub) { spaceapidata.MergeInSensor(spaceapi.MakeTempCSensor(fmt.Sprintf("Temp%d",event.Sensorindex),tempsensorlocation, event.Value)) case r3events.IlluminationSensorUpdate: spaceapidata.MergeInSensor(spaceapi.MakeIlluminationSensor("Photodiode","LoTHR","1024V/5V", event.Value)) + case r3events.GasLeakAlert: + spaceapidata.AddSpaceEvent("GasLeak", "alert", "GasLeak Alert has been triggered") + publishStateToWeb() } } }