remove tre from scanner.py, add test routine

This commit is contained in:
matt committed 2026-10-14 06:51:04 -07:00
1 parent 0bfcde0f64
commit 3c1c3ed432
3 files changed
+12 -17

No files matched your search

+2 -6
View File
@@ -71,7 +71,6 @@ load_state()
r = redis.Redis(host=bind_ip, port=redis_port)
def update_redis(data):
# push data to redis
# Publish to the Redis channel that the WS server is listening on
r.publish('temp_hum', json.dumps(data))
if debug_output:
@@ -89,11 +88,8 @@ def update_cache() -> None:
# now that we have MACs, let's get sensor data
print("Updating sensor data...")
sensor_data = None
try:
sensor_data = sensor_data_query(new_macs)
# print(sensor_data)
except Exception as e:
print(f"Aww fuck, no data :( - {e}")
sensor_data = sensor_data_query(new_macs)
# print(sensor_data)
# now we update the data in the sensor objects
print("Sensor data collected:")
for sensor_datum in sensor_data: