Remove randome copy from rebase

This commit is contained in:
Nick Mowen 2022-02-20 07:51:14 -07:00
parent 6866141b4a
commit 395878ee9f
2 changed files with 0 additions and 32 deletions

View File

@ -880,17 +880,6 @@ class TrackedObjectProcessor(threading.Thread):
) )
) )
# send info on this frame to the recordings maintainer
self.recordings_info_queue.put(
(
camera,
frame_time,
tracked_objects,
motion_boxes,
regions,
)
)
# update zone counts for each label # update zone counts for each label
# for each zone in the current camera # for each zone in the current camera
for zone in self.config.cameras[camera].zones.keys(): for zone in self.config.cameras[camera].zones.keys():

View File

@ -40,27 +40,6 @@ def read_temperature(path):
return None return None
def get_temperatures():
temps = {}
# Get temperatures for all attached Corals
base = "/sys/class/apex/"
if os.path.isdir(base):
for apex in os.listdir(base):
temp = read_temperature(os.path.join(base, apex, "temp"))
if temp is not None:
temps[apex] = temp
return temps
def read_temperature(path):
if os.path.isfile(path):
with open(path) as f:
line = f.readline().strip()
return int(line) / 1000
return None
def get_temperatures(): def get_temperatures():
temps = {} temps = {}