Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("bottom")
- local reactor
- reactor = peripheral.wrap("BigReactors-Reactor_0")
- function prepMsg()
- local R_Temp = reactor.getFuelTemperature()
- -- local R_HFL = reactor.getHotFluidProducedLastTick()
- local R_Active= reactor.getActive()
- local R_StoredRF=reactor.getEnergyStored()
- local R_CaseTemp=reactor.getCasingTemperature()
- if R_Active then
- R_Active="Active"
- else
- R_Active="OFFLINE"
- end
- local fuellvl = reactor.getFuelAmount("")
- local fuelmax = reactor.getFuelAmountMax("")
- local fuelpct = fuellvl/fuelmax
- msg=R_Active.."|"..R_Temp.."|"..fuelpct.."|"..R_StoredRF.."|"..R_CaseTemp
- rednet.open("bottom")
- shell.run("clear")
- rednet.send(63,msg) -- dev screen
- end
- print("Program is running <CTRL> <T> to stop")
- while true do
- prepMsg()
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement