Posted 05 December 2013 - 08:49 PM
Heres the simple IC2 Nuclear Reactor monitor i wrote to work with the smart helmet I thought I would Share.
http://pastebin.com/UXkyhBcz,
You Can install it using
pastebin get UXkyhBcz SRM
--Simple Reactor Monitor By THC_Butterz--
-- Set Script to Loop --
while true do
-- Set up Terminal --
term.clear()
term.setCursorPos(1, 1)
-- variables go here --
ps = redstone.getInput("back") -- checks if reactor is on based on a redstone signal from the back originates from reactor input signal, I have it inverted--
ts = redstone.getInput("left") -- checks if reactor is overheating based on redstone signal from the left of the computer originates from thermal monitor--
us = redstone.getInput("right") -- checks if uranium is depleted based on redstone signal from the right, originates from inverted signal from a mfsu, set to output if full --
f = false -- used for comparing the state of the above variables --
m = peripheral.wrap("bottom") -- sets location of smallnetsender --
-- Gather redstone states and create variables based on returned values --
if ps ~= f then
op = "Reactor Is Off"
elseif ps == f then
op = "Reactor Is On"
end
if ts ~= f then
cs = "Reactor Is Overheating"
elseif ts == f then
cs = "Reactor Is Cool"
end
if us ~= f then
ds = "Uranium Depleted"
elseif us == f then
ds = "Cells are OK"
end
-- output --
-- send to smart helmet --
m.send("smartHelmet", op)
m.send("smartHelmet", cs)
m.send("smartHelmet", ds)
-- Print to terminal --
print(op)
print(cs)
print(ds)
-- Set Script Interval --
sleep(20)
-- Close Script --
end
http://pastebin.com/UXkyhBcz,
You Can install it using
pastebin get UXkyhBcz SRM
Edited on 05 December 2013 - 08:00 PM