updated params
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
local maxValue = 80
|
local maxValue = 100
|
||||||
local minValue = 50
|
local minValue = 20
|
||||||
local minCoolant = 30
|
local minCoolant = 10
|
||||||
|
|
||||||
local function getValue()
|
local function getValue()
|
||||||
return (reactor.getCoolantFilledPercentage() or 1) * 100
|
return (reactor.getCoolantFilledPercentage() or 1) * 100
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
local dfpwm = require("cc.audio.dfpwm")
|
local dfpwm = require("cc.audio.dfpwm")
|
||||||
local encoder = dfpwm.make_encoder()
|
local encoder = dfpwm.make_encoder()
|
||||||
local decoder = dfpwm.make_decoder()
|
local decoder = dfpwm.make_decoder()
|
||||||
|
local baseRoute = "https://git.astrocore.space/root/NovaCorpLLC/raw/branch/main/"
|
||||||
|
|
||||||
local function getFileName(name)
|
local function getFileName(name)
|
||||||
local extension = ".dfpwm"
|
local extension = ".dfpwm"
|
||||||
@@ -33,13 +34,22 @@ local function playInternalAlarm(speakers)
|
|||||||
playSound(speakers,"internal_alarm")
|
playSound(speakers,"internal_alarm")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function playTTSFile()
|
||||||
|
-- local ttsRoute = "https://ttsmp3.com/makemp3_new.php"
|
||||||
|
-- local fileName = "tts"
|
||||||
|
|
||||||
|
-- local response = http.request({
|
||||||
|
-- url = url,
|
||||||
|
-- method = "POST",
|
||||||
|
-- body = body,
|
||||||
|
-- headers = headers,
|
||||||
|
-- binary = false
|
||||||
|
-- })
|
||||||
|
end
|
||||||
|
|
||||||
local function createSoundFile(fileName)
|
local function createSoundFile(fileName)
|
||||||
--local placeholder = "https://git.astrocore.space/root/NovaCorpLLC/raw/branch/main/placeholder.dfpwm"
|
|
||||||
local baseRoute = "https://git.astrocore.space/root/NovaCorpLLC/raw/branch/main/"
|
|
||||||
local name = getFileName(fileName)
|
local name = getFileName(fileName)
|
||||||
local fullPath = baseRoute .. name
|
local fullPath = baseRoute .. name
|
||||||
|
|
||||||
shell.execute("rm", name)
|
shell.execute("rm", name)
|
||||||
local response = http.request({
|
local response = http.request({
|
||||||
url = fullPath,
|
url = fullPath,
|
||||||
@@ -47,6 +57,7 @@ local function createSoundFile(fileName)
|
|||||||
binary = true
|
binary = true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
local event, url, handle
|
local event, url, handle
|
||||||
repeat
|
repeat
|
||||||
event, url, handle = os.pullEvent()
|
event, url, handle = os.pullEvent()
|
||||||
@@ -99,4 +110,13 @@ end
|
|||||||
local function report()
|
local function report()
|
||||||
end
|
end
|
||||||
|
|
||||||
return { report = report, watch = watch, startup = startup, shutdown = shutdown, playControlRoomAlarm = playControlRoomAlarm, addSoundFile = addSoundFile, playExternalAlarm = playExternalAlarm, playInternalAlarm = playInternalAlarm }
|
return { report = report,
|
||||||
|
watch = watch,
|
||||||
|
startup = startup,
|
||||||
|
shutdown = shutdown,
|
||||||
|
playControlRoomAlarm = playControlRoomAlarm,
|
||||||
|
addSoundFile = addSoundFile,
|
||||||
|
playExternalAlarm = playExternalAlarm,
|
||||||
|
playInternalAlarm = playInternalAlarm,
|
||||||
|
playTTSFile = playTTSFile
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
local max = 300
|
local max = 315
|
||||||
local min = 275
|
local min = 280
|
||||||
|
|
||||||
|
|
||||||
local function getValue()
|
local function getValue()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
local max = 90
|
local max = 95
|
||||||
local maxVent = 60
|
local maxVent = 80
|
||||||
local minVent = 80
|
local minVent = 90
|
||||||
local min = 20
|
local min = 20
|
||||||
|
|
||||||
local function getValue()
|
local function getValue()
|
||||||
|
|||||||
Reference in New Issue
Block a user