This commit is contained in:
2025-06-14 17:53:47 -04:00
parent 7000c008ef
commit a6e5fe9e90
5 changed files with 8 additions and 9 deletions

View File

@@ -3,8 +3,7 @@ local min = 212
local function getValue()
-- local kelvin = reactor.getTemperature() or 0
local kelvin = 3000
local kelvin = reactor.getTemperature() or 0
local fahrenheit = (kelvin - 273.15) * 9 / 5 + 32
return math.floor(fahrenheit * 10000 + 0.5) / 10000
end
@@ -27,7 +26,7 @@ local function watch()
checkTemperature()
end
function checkTemperature()
local function checkTemperature()
local temperature = getValue()
local upperThreshold = max - 20
local lowerThreshold = min + 20