Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("ocs/apis/sensor")
- local sense = sensor.wrap("top") --replace top with actual side
- while true do
- --get reactor data
- local reactorData = sense.getTargetDetails("-1,4,-3") --replace coordinates with actual coordinates.
- --you can use sensorview to figure out what you need to index in the details table
- print(reactorData.Heat)
- sleep(0.5)
- end
Add Comment
Please, Sign In to add comment