}
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","HHL","1024V/5V", event.Value))
}
}
}
except Exception, e:
logging.debug(e)
+
+ for k in set(sensor_store.keys()).difference(set(uwscfg.zmq_subscribe.split(" "))):
+ del sensor_store[k] # del old sensordata of sensor we do not subscribe to
+
+ for k in sensor_store.keys():
+ try:
+ if len(sensor_store[k][0]) > 1:
+ sensor_cols_num_[k] = len(sensor_store[k][0]) -1
+ except:
+ pass
+
while True:
try:
#Start zmq connection to publish / forward sensor data