updated
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
local maxValue = 70
|
local maxValue = 90
|
||||||
local minValue = 60
|
local minValue = 80
|
||||||
local minCoolant = 10
|
local minCoolant = 20
|
||||||
|
|
||||||
local function getValue()
|
local function getValue()
|
||||||
return (reactor.getCoolantFilledPercentage() or 1) * 100
|
return (reactor.getCoolantFilledPercentage() or 1) * 100
|
||||||
|
|||||||
@@ -35,16 +35,23 @@ local function playInternalAlarm(speakers)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function playTTSFile()
|
local function playTTSFile()
|
||||||
-- local ttsRoute = "https://ttsmp3.com/makemp3_new.php"
|
local ttsRoute = "https://ttsmp3.com/makemp3_new.php"
|
||||||
-- local fileName = "tts"
|
local fileName = "tts"
|
||||||
|
local params = {
|
||||||
|
msg = "Test",
|
||||||
|
lang = "Gwyneth",
|
||||||
|
source = "ttsmp3"
|
||||||
|
}
|
||||||
|
|
||||||
-- local response = http.request({
|
|
||||||
-- url = url,
|
local stringBody = textutils.serialiseJSON(params)
|
||||||
-- method = "POST",
|
local response = http.request({
|
||||||
-- body = body,
|
url = ttsRoute,
|
||||||
-- headers = headers,
|
method = "POST",
|
||||||
-- binary = false
|
body = stringBody,
|
||||||
-- })
|
headers = headers,
|
||||||
|
binary = false
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
local function createSoundFile(fileName)
|
local function createSoundFile(fileName)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
local max = 350
|
local max = 310
|
||||||
local min = 315
|
local min = 300
|
||||||
|
|
||||||
|
|
||||||
local function getValue()
|
local function getValue()
|
||||||
|
|||||||
Reference in New Issue
Block a user