From 9c7005b4f7c80514718f7c8ba415fe885afb61e7 Mon Sep 17 00:00:00 2001 From: itzmarkoni Date: Sun, 15 Jun 2025 22:09:54 -0400 Subject: [PATCH] updated --- coolant_driver.lua | 6 +++--- speaker_driver.lua | 25 ++++++++++++++++--------- temperature_driver.lua | 4 ++-- 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/coolant_driver.lua b/coolant_driver.lua index 3520050..303b6c9 100644 --- a/coolant_driver.lua +++ b/coolant_driver.lua @@ -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 diff --git a/speaker_driver.lua b/speaker_driver.lua index 87b76b2..f6b352f 100644 --- a/speaker_driver.lua +++ b/speaker_driver.lua @@ -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) diff --git a/temperature_driver.lua b/temperature_driver.lua index 0d219a0..6d5856a 100644 --- a/temperature_driver.lua +++ b/temperature_driver.lua @@ -1,5 +1,5 @@ -local max = 350 -local min = 315 +local max = 310 +local min = 300 local function getValue()