s3ptum

opencc graph

Dec 8th, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. --our output target
  2. mon = peripheral.wrap("top")
  3.  
  4. --our update function
  5. function update()
  6. local tab = sensor.call("right", "getTargetDetails", "-2,0,-1")
  7. return tab.Stored
  8. end
  9.  
  10. --our graph declaration. We use nil as the gradientTable parameter, so it will use the default red-green gradient.
  11. graphInstance = graph.new(mon, update, "EU Storage", nil, 0, 600000)
  12.  
  13. while true do
  14. --update the graph
  15. graphInstance:draw()
  16. sleep(0.5)
  17. end
Add Comment
Please, Sign In to add comment