From 5498aff9a3edab774f06780778e0d6e15447d8be Mon Sep 17 00:00:00 2001 From: itzmarkoni Date: Sat, 14 Jun 2025 12:30:27 -0400 Subject: [PATCH] refactor report function to list peripherals instead of fetching temperature --- temperature_monitor.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/temperature_monitor.lua b/temperature_monitor.lua index 2755ece..197506c 100644 --- a/temperature_monitor.lua +++ b/temperature_monitor.lua @@ -1,7 +1,12 @@ local function report() - local reactor = peripheral.find("fissionReactorLogicAdapter") - return reactor.getTemerature() + local peripherals = peripheral.getNames() + for i, name in ipairs(peripherals) do + print("Peripheral " .. i .. ": " .. name) + end + return "abc" + -- local reactor = peripheral.find("fissionReactorLogicAdapter") + -- return reactor.getTemerature() end return { report = report } \ No newline at end of file