From a7a710208ae725a18854a070e02e8dfb91f0e401 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sat, 22 Feb 2025 17:29:42 -0800 Subject: [PATCH] Update send-environment-metrics.py --- script/send-environment-metrics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/send-environment-metrics.py b/script/send-environment-metrics.py index b77ef76..57783e2 100644 --- a/script/send-environment-metrics.py +++ b/script/send-environment-metrics.py @@ -16,7 +16,7 @@ interface = meshtastic.tcp_interface.TCPInterface(hostname='127.0.0.1', noProto= # Create a telemetry data object telemetry_data = telemetry_pb2.Telemetry() telemetry_data.time = int(time.time()) -telemetry_data.local_stats.upTime = 0 +#telemetry_data.local_stats.upTime = 0 telemetry_data.environment_metrics.temperature = 0 # telemetry_data.environment_metrics.voltage = 0 # telemetry_data.environment_metrics.current = 0 @@ -36,8 +36,8 @@ telemetry_data.environment_metrics.temperature = 0 # telemetry_data.environment_metrics.weight = 0 # Read the uptime -with open('/proc/uptime', 'r') as uptime: - telemetry_data.local_stats.upTime = int(float(uptime.readline().split()[0])) +# with open('/proc/uptime', 'r') as uptime: +# telemetry_data.local_stats.upTime = int(float(uptime.readline().split()[0])) # Read the CPU temperature with open('/sys/class/thermal/thermal_zone0/temp', 'r') as cpu_temp: