Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("ocs/apis/graph")
- os.loadAPI("ocs/apis/sensor")
- local mon=peripheral.wrap("right")
- local aesensor1= "left"
- local aesystem1="0,0,3"
- local getdetails = "getTargetDetails"
- function update()
- local tab = sensor.call(aesensor1, getdetails, aesystem1)
- return tab.SystemPower
- end
- graphInstance = graph.new(mon, update, "System Power", nil, 1, 1000, false)
- while true do
- graphInstance:draw()
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement