This commit is contained in:
2025-06-15 22:09:54 -04:00
parent e0bc2d75d5
commit 9c7005b4f7
3 changed files with 21 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
local maxValue = 70
local minValue = 60
local minCoolant = 10
local maxValue = 90
local minValue = 80
local minCoolant = 20
local function getValue()
return (reactor.getCoolantFilledPercentage() or 1) * 100

View File

@@ -35,16 +35,23 @@ local function playInternalAlarm(speakers)
end
local function playTTSFile()
-- local ttsRoute = "https://ttsmp3.com/makemp3_new.php"
-- local fileName = "tts"
local ttsRoute = "https://ttsmp3.com/makemp3_new.php"
local fileName = "tts"
local params = {
msg = "Test",
lang = "Gwyneth",
source = "ttsmp3"
}
-- local response = http.request({
-- url = url,
-- method = "POST",
-- body = body,
-- headers = headers,
-- binary = false
-- })
local stringBody = textutils.serialiseJSON(params)
local response = http.request({
url = ttsRoute,
method = "POST",
body = stringBody,
headers = headers,
binary = false
})
end
local function createSoundFile(fileName)

View File

@@ -1,5 +1,5 @@
local max = 350
local min = 315
local max = 310
local min = 300
local function getValue()