Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI "MonAPI"
- local turbine1
- local reactor1
- local mon = monAPI.wrapMonitor("right")
- mon.setTextColor(colors.white)
- mon.setBackgroundColor(color.black)
- mon.clear()
- mon.setCursorPos(1,1)
- local section1 = mon.createSection(1,1,20,19)
- section1.clear()
- local section2 = mon.createSection(21,1,51,19)
- section2.clear()
- local section3 = mon.createSection(52,1,82,19)
- section3.clear()
- while true do
- rednet.open("back")
- id,message = rednet.receive()
- if id == 158 then
- section2.clear()
- section2.setCursorPos(1,1)
- section2.write('Reactor - Turbine Monitoring')
- section2.setCursorPos(1,2)
- section2.write('Data Broadcast Received')
- section2.setCursorPos(1,3)
- section2.write('System Status')
- section2.setCursorPos(1,4)
- section2.write('Turbine:')
- section2.setCursorPos(1,5)
- section2.write('RPM: '..message["turbine1rpm"]..'')
- section2.setCursorPos(1,6)
- section2.write('Flow Rate: '..message["turbine1Flow"]..'mb/t')
- section2.setCursorPos(1,7)
- section2.write('Generation: '..message["turbine1RFT"]..' rf/t')
- section2.setCursorPos(1,8)
- section2.write('Capacitor: '..message["turbine1capacitor"]..'')
- section2.setCursorPos(1,10)
- section2.write('Reactor:')
- section2.setCursorPos(1,11)
- section2.write('Temp: '..message["reactor1Temp"]..'')
- section2.setCursorPos(1,12)
- section2.write('Steam Pressure: '..message["reactor1Steam"]..'')
- section2.setCursorPos(1,13)
- section2.write('Fuel Consumption: '..message["reactor1Fuel"]..'')
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment