Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local turbine
- local reactor
- turbine = peripheral.wrap("left")
- reactor = peripheral.wrap("BigReactors-Reactor_0")
- function wipeScreen()
- term.clear()
- term.setCursorPos(1, 1)
- end
- while true do
- sleep(0)
- --Turbine Info
- turbine1capacitor = turbine.getEnergyStored()
- turbine1rpm = turbine.getRotorSpeed()
- turbine1RFT = turbine.getEnergyProducedLastTick()
- turbine1Flow = turbine.getFluidFlowRate()
- --Reactor Info
- reactor1Temp = reactor.getFuelTemperature()
- reactor1Steam = reactor.getEnergyProducedLastTick()
- reactor1Fuel = reactor.getFuelConsumedLastTick()
- --make table of info
- t = {}
- t["bank"] = 3
- t["turbine1capacitor"] = turbine.getEnergyStored()
- t["turbine1rpm"] = turbine.getRotorSpeed()
- t["turbine1RFT"] = turbine.getEnergyProducedLastTick()
- t["turbine1Flow"] = turbine.getFluidFlowRate()
- t["reactor1Temp"] = reactor.getFuelTemperature()
- t["reactor1Steam"] = reactor.getEnergyProducedLastTick()
- t["reactor1Fuel"] = reactor.getFuelConsumedLastTick()
- sleep(1)
- rednet.open("bottom")
- rednet.send(1, t)
- wipeScreen()
- print('Reactor - Turbine Monitor')
- term.setCursorPos(1,2)
- print('Data Broadcast Live')
- term.setCursorPos(1,3)
- print('System Status')
- term.setCursorPos(1,4)
- print('Turbine:')
- term.setCursorPos(1,5)
- print('RPM: '..turbine.getRotorSpeed()..'')
- term.setCursorPos(1,6)
- print('Flow Rate: '..turbine.getFluidFlowRate()..'mb/t')
- term.setCursorPos(1,7)
- print('Generation: '..turbine.getEnergyProducedLastTick()..' rf/t')
- term.setCursorPos(1,8)
- print('Capacitor: '..turbine.getEnergyStored()..'')
- term.setCursorPos(1,10)
- print('Reactor:')
- term.setCursorPos(1,11)
- print('Temp: '..reactor.getFuelTemperature()..'')
- term.setCursorPos(1,12)
- print('Steam Pressure: '..reactor.getEnergyProducedLastTick()..'')
- term.setCursorPos(1,13)
- print('Fuel Consumption: '..reactor.getFuelConsumedLastTick()..'')
- end
Advertisement
Add Comment
Please, Sign In to add comment