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

IC2 Eu meter

Started by Jojo.bacon, 29 June 2012 - 06:34 PM
Jojo.bacon #1
Posted 29 June 2012 - 08:34 PM
Hello, I am making an IC2 power plant to service my SMP server's town, so I need a way to accurately measure my client's Energy consumption to bill them. I have a set up (picture at end of post) where the computer is getting a redstone input from the left side and on the bottom there is a redstone switch to turn off power.

I need my program to do the following things:

1. count the amount of ticks the left input is on and multiply it by 32 and store that in a value and send it over wireless to another computer live.

2. if that value goes over 40000 then the bottom side emits redstone.

3. if the computer gets the string "stop" from a certain computer (over rednet), the bottom side will emit redstone.

4. if the comuter gets the string "start" from a certain computer (over rednet), the bottom side will stop emitting redstone

Pinkishu #2
Posted 30 June 2012 - 09:09 AM
Since theres seemignly some reaction delay for splitter cables ithink the best way might be to make a batbox full, then cut the cable, then empty the batbox and you know it's been 30000 or so