changed comments a bit

This commit is contained in:
wildercayden 2025-06-25 21:11:05 -04:00
parent 0663113546
commit ce1ba5290c

View File

@ -1,9 +1,8 @@
# client.py on Pi
from networktables import NetworkTables
import time
import psutil
NetworkTables.initialize(server='192.168.1.76') # Laptop IP here
NetworkTables.initialize(server='192.168.1.76') # Reciving device
table = NetworkTables.getTable("PiStatus")
while True:
@ -17,7 +16,7 @@ while True:
cputemp = f"{temps[label][0].current:.1f}"
break
else:
# fallback for Pi
#Force to work on PI
try:
with open("/sys/class/thermal/thermal_zone0/temp") as f:
cputemp = f"{int(f.read()) / 1000:.1f}"