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

I need help creating a program to monitor storage remotely

Started by weaponologist, 09 June 2012 - 10:31 PM
weaponologist #1
Posted 10 June 2012 - 12:31 AM
Hi,
I've been learning about computercraft for a long time now and there are things I simply can't get my head around, there are too many aspects to learn about and I need help for this, so if you know, please help, it would be much appreciated.

basically, I'd like to know how to monitor storage remotely, including: lava levels in my tank, oil levels, and energy levels in my MFSU.

I'm not too sure but I think it may have something to do with detectors and possibly other components.

I not only need help with the coding of the program/API/directory or whatever, but I also need help with the placement of certain components, such as: how do i wire up a detector and then display it's information so it can inform me upon a detection.

please help me someone, as I said, I've been trying to figure it out for a long time and nothing's working for me, I hope this is the place where my journey ends!
MysticT #2
Posted 10 June 2012 - 01:47 AM
Well, it depends on what are those detectors you use. Are they from ccSensor? or other mod?
weaponologist #3
Posted 10 June 2012 - 03:30 AM
I'm not using any sensors at the moment, i just said i thought it may involve them, I'm really not clued up at all and i dont know which mod they are from, but they are the one's that say detector - storage and detector - growth and all of those. I have the technic pack and i'm not sure if it has cc sensors yet
tfoote #4
Posted 10 June 2012 - 05:08 PM
1st: You need sensors to give you some sort of red-stone input. For example in IC2 the MFSU's can give off redstone signals when they are empty, full, or contain energy… (only 1)
Once you have some sort of input you want to probably use bundled cable to contain all the redstone signals in 1.
Once you start programming you will want to use this then…

if colors.test(redstone.getBundledInput("side"), colors.(your color)) == true then -- in this you are checking a bundled cable on whatever side for a specific color. Then it returns if it is on or off (T or F)
--Inside the if statement you can put whatever you want to happen when it is on.
end
--do this for each color
If you have any other question just let me know. I have code that I can add that illustrates my point better. also check out the rs api
weaponologist #5
Posted 14 June 2012 - 04:56 PM
thank you very much, i'll get right to it and let you know if there's any problems, much appreciated :(/>/>