Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --our output target
- mon = peripheral.wrap("top")
- --our update function
- function update()
- local tab = sensor.call("right", "getTargetDetails", "-2,0,-1")
- return tab.Stored
- end
- --our graph declaration. We use nil as the gradientTable parameter, so it will use the default red-green gradient.
- graphInstance = graph.new(mon, update, "EU Storage", nil, 0, 600000)
- while true do
- --update the graph
- graphInstance:draw()
- sleep(0.5)
- end
Add Comment
Please, Sign In to add comment