Posted 28 November 2012 - 01:04 PM
Hey guys I am sorry I looked all over the place, and if I missed it I am sorry.
I am trying to get a readout from mfsu form ccsensors. I have like 20 MFSU's and trying to get a reading from all of them and display them on a lage computer monitor.
I read about this program
But I get the error sensors:106: No such method getAvailableTargets
Is there a way to do this on a older version of computercraft? I really would love some help and appreciated any advice.
Thank you
I am trying to get a readout from mfsu form ccsensors. I have like 20 MFSU's and trying to get a reading from all of them and display them on a lage computer monitor.
I read about this program
total_max_storage = 0
total_curr_storage = 0
local maxStorage = {}
local currStorage = {}
Targets = sensors.getAvailableTargetsforProbe("right",dataSensor,dataProbe)
for i = 1, #Targets do
dataReadings = sensors.getSensorReadingAsDict("right",dataSensor,Targets,dataProbe)
table.insert(maxStorage, tonumber(dataReadings.maxStorage))
table.insert(currStorage, tonumber(dataReadings.energy))
table.insert(tier, tonumber(dataReadings.tier))
end
cp(1, 1, 1)
for i = 1, #maxStorage do
total_max_storage = total_max_storage + maxStorage
end
for i = 1, #currStorage do
total_curr_storage = total_curr_storage + currStorage
end
But I get the error sensors:106: No such method getAvailableTargets
Is there a way to do this on a older version of computercraft? I really would love some help and appreciated any advice.
Thank you