mirror of
https://github.com/osmarks/random-stuff
synced 2024-10-31 19:06:15 +00:00
9 lines
269 B
Lua
9 lines
269 B
Lua
|
local c = peripheral.find "nc_geiger_counter"
|
||
|
local m = peripheral.wrap "top"
|
||
|
|
||
|
while true do
|
||
|
local lvl = c.getChunkRadiationLevel()
|
||
|
print(lvl)
|
||
|
m.transmit(3054, 3054, {"rads/" .. os.getComputerLabel(), "radiation level", "set", lvl})
|
||
|
sleep(1)
|
||
|
end
|