View difference between Paste ID: sf1Mqr0D and tV9qrSPz
SHOW: | | - or go back to the newest paste.
1
os.loadAPI "MonAPI"
2
local turbine1
3-
local monitor
3+
4-
monitor = peripheral.wrap("right")
4+
local mon = monAPI.wrapMonitor("right")
5-
local ButWindow = window.create(monitor,1,1,20,19)
5+
6-
local Window1 = window.create(monitor,21,1,30,19)
6+
mon.setTextColor(colors.white)
7-
local Window2 = window.create(monitor,52,1,30,19)
7+
mon.setBackgroundColor(color.black)
8
mon.clear()
9
mon.setCursorPos(1,1)
10
11
local section1 = mon.createSection(1,1,20,19)
12
section1.clear()
13
local section2 = mon.createSection(21,1,51,19)
14-
   Window1.clear()
14+
section2.clear()
15-
   Window1.setCursorPos(1,1)
15+
local section3 = mon.createSection(52,1,82,19)
16-
   Window1.write('Reactor - Turbine Monitoring')
16+
section3.clear()
17-
   Window1.setCursorPos(1,2)
17+
18-
   Window1.write('Data Broadcast Received')
18+
19-
   Window1.setCursorPos(1,3)
19+
20-
   Window1.write('System Status')
20+
21-
   Window1.setCursorPos(1,4)
21+
22-
   Window1.write('Turbine:')
22+
23-
   Window1.setCursorPos(1,5)
23+
24-
   Window1.write('RPM: '..message["turbine1rpm"]..'')
24+
   section2.clear()
25-
   Window1.setCursorPos(1,6)
25+
   section2.setCursorPos(1,1)
26-
   Window1.write('Flow Rate: '..message["turbine1Flow"]..'mb/t')
26+
   section2.write('Reactor - Turbine Monitoring')
27-
   Window1.setCursorPos(1,7)
27+
   section2.setCursorPos(1,2)
28-
   Window1.write('Generation: '..message["turbine1RFT"]..' rf/t')
28+
   section2.write('Data Broadcast Received')
29-
   Window1.setCursorPos(1,8)
29+
   section2.setCursorPos(1,3)
30-
   Window1.write('Capacitor: '..message["turbine1capacitor"]..'')
30+
   section2.write('System Status')
31-
   Window1.setCursorPos(1,10)
31+
   section2.setCursorPos(1,4)
32-
   Window1.write('Reactor:')
32+
   section2.write('Turbine:')
33-
   Window1.setCursorPos(1,11)
33+
   section2.setCursorPos(1,5)
34-
   Window1.write('Temp: '..message["reactor1Temp"]..'')
34+
   section2.write('RPM: '..message["turbine1rpm"]..'')
35-
   Window1.setCursorPos(1,12)
35+
   section2.setCursorPos(1,6)
36-
   Window1.write('Steam Pressure: '..message["reactor1Steam"]..'')
36+
   section2.write('Flow Rate: '..message["turbine1Flow"]..'mb/t')
37-
   Window1.setCursorPos(1,13)
37+
   section2.setCursorPos(1,7)
38-
   Window1.write('Fuel Consumption: '..message["reactor1Fuel"]..'')  
38+
   section2.write('Generation: '..message["turbine1RFT"]..' rf/t')
39
   section2.setCursorPos(1,8)
40
   section2.write('Capacitor: '..message["turbine1capacitor"]..'')
41
   section2.setCursorPos(1,10)
42
   section2.write('Reactor:')
43
   section2.setCursorPos(1,11)
44
   section2.write('Temp: '..message["reactor1Temp"]..'')
45
   section2.setCursorPos(1,12)
46
   section2.write('Steam Pressure: '..message["reactor1Steam"]..'')
47
   section2.setCursorPos(1,13)
48
   section2.write('Fuel Consumption: '..message["reactor1Fuel"]..'')  
49
 end
50
end