Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- mon = peripheral.wrap("top")
- mon.clear()
- mon.setTextScale(2)
- ctrl = sensors.getController()
- data = sensors.getSensors(ctrl)
- reactorSensor = data[1]
- data = sensors.getSensorInfo(ctrl,reactorSensor)
- sensors.setSensorRange(ctrl,reactorSensor,"2")
- data = sensors.getProbes(ctrl,reactorSensor)
- eustorageProbe = data[3]
- data = sensors.getAvailableTargetsforProbe(ctrl,reactorSensor,eustorageProbe)
- print("")
- local cursorY = 2
- for k,v in pairs(data) do
- mfsuTarget = data[k]
- if mfsuTarget then
- if string.find(mfsuTarget,"MFSU") then
- print("MFSU "..k)
- sensors.setTarget(ctrl,reactorSensor,mfsuTarget)
- data = sensors.getSensorReadingAsDict(ctrl,reactorSensor,mfsuTarget,eustorageProbe)
- mon.setCursorPos(1, cursorY)
- mon.write("MFSU EU:"..data.energy)
- mon.setCursorPos(1, cursorY+1)
- mon.write("MFSU Out:"..data.output)
- print("MFSU EU:"..data.energy)
- print("MFSU Out:"..data.output)
- cursorY = cursorY + 2
- end
- end
- end
- sleep(1)
- end
Add Comment
Please, Sign In to add comment