Jump to content




Openccsensors Energy Conducted


  • You cannot reply to this topic
2 replies to this topic

#1 LubsonGG

  • Members
  • 5 posts
  • LocationBulgaria

Posted 29 August 2013 - 09: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 :)/>

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 29 August 2013 - 09: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.

#3 LubsonGG

  • Members
  • 5 posts
  • LocationBulgaria

Posted 29 August 2013 - 10:28 AM

I've looked up the strings from here: https://github.com/C...ialcraft-Sensor
Posted ImagePosted ImageIt's the cable going into the MFSU

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users