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

MFSU storage tracking?

Started by leachtyler, 27 October 2012 - 11:48 PM
leachtyler #1
Posted 28 October 2012 - 01:48 AM
If I was to make some mfsu's close to my reactors, is there a way to display the amount of power being stored in a total amount of all the mfsu's being used on a 3x5 monitor?
Dlcruz129 #2
Posted 28 October 2012 - 01:57 AM
Yes, you can use ccSensors.
leachtyler #3
Posted 28 October 2012 - 01:11 AM
Yes, you can use ccSensors.

Does it require a written code too?
Luanub #4
Posted 28 October 2012 - 01:39 AM
Its a peripheral mod for CC. Located here: http://www.computercraft.info/forums2/index.php?/topic/126-mc-125-cc-133-ccsensors-smpssp/
Shazz #5
Posted 28 October 2012 - 02:02 AM
If you are using Tekkit/Technic - I have a feeling you are - ccSensors should be included.
Harcole #6
Posted 28 October 2012 - 03:35 PM

function GetPowerStorage()
-- Get sensor details
mf_targets = sensors.getAvailableTargetsforProbe(m_sensor_side, m_sensor_name, "EUStorage");
mf_value = sensors.getSensorReadingAsDict(m_sensor_side, m_sensor_name, mf_targets[1], "EUStorage");
-- Assign Values
m_max_storage = mf_value.maxStorage;
m_curr_storage = mf_value.energy;
m_tier = mf_value.tier;
end

That function will return a single EU Storage box, you'll need to look at adding a for each loop to do more than one box, but its a good starting point for you :D/>/>