mirror of
https://github.com/osmarks/random-stuff
synced 2024-11-08 13:39:53 +00:00
11 lines
375 B
Lua
11 lines
375 B
Lua
local modem = {peripheral.find("modem", function(_, o) return o.isWireless() end)}
|
|
local function send(...)
|
|
for _, modem in pairs(modem) do
|
|
modem.transmit(48869, 48869, {...})
|
|
end
|
|
end
|
|
local sensor = peripheral.find "environmentDetector"
|
|
while true do
|
|
send("mek_radiation_sv_h", "Mekanism radiation level (Sv/h)", sensor.getRadiationRaw())
|
|
sleep(1)
|
|
end |