This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
LubsonGG's profile picture

Openccsensors Energy Conducted

Started by LubsonGG, 29 August 2013 - 08:12 AM
LubsonGG #1
Posted 29 August 2013 - 10:12 AM
I'm trying to read EU going through IC2 glass fiber cables but for some strange reason it doesn't work.

os.loadAPI("ocs/apis/sensor")
PowerSensor = sensor.wrap("right")
PowerSensor.getTargets()
details = PowerSensor.getTargetDetails("1,1,-1")
print(details.EnergyConducted)
It always gives a blank output. EU reader says there is around 34EU/t going through. It works fine for MFSU storage, capacity and output.
Using:
Minecraft 1.5.2
OpenCCSensors-1.5.2.0
Computercraft 1.53
industrialcraft-2_1.117.385-lf

Thanks in advance :)/>/>
Lyqyd #2
Posted 29 August 2013 - 10:57 AM
Split into new topic.

Can you upload a screenshot of ocs/programs/sensorview with the target you're trying to read highlighted. I think the index string is slightly different than what you have there.
LubsonGG #3
Posted 29 August 2013 - 11:28 AM
I've looked up the strings from here: https://github.com/C...ialcraft-Sensor
It's the cable going into the MFSU

EDIT: Nevermind it worked with EnergySunken instead of EnergyConducted so no problems! Thanks :)/>