Initialize modular ATM10 CC control system

This commit is contained in:
2026-07-13 02:46:11 +02:00
commit 5362d31036
28 changed files with 331 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
local log = require("core.log")
local network = require("core.network")
local M = {}
local function loadConfig()
if not fs.exists("config/local.lua") then error("config/local.lua fehlt") end
return dofile("config/local.lua")
end
function M.run()
if not fs.exists("runtime") then fs.makeDir("runtime") end
local config = loadConfig()
os.setComputerLabel(config.nodeName)
network.open()
local role = require("roles." .. config.role)
log.info("Starte " .. config.nodeName .. " als " .. config.role)
role.run(config)
end
return M