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

How to make computers read EU and MJ from MFSU's and Redstone Energy Cells

Started by Durfsurn, 28 January 2014 - 12:19 AM
Durfsurn #1
Posted 28 January 2014 - 01:19 AM
I need a program that reads the energy of MFSU's and Redstone Energy Cells and then sends that number to one centralised computer via wireless modems and adds them together so I get a total EU and MJ number. I want the monitor to show like this:

MFSU 1: 1,000,000
MFSU 2: 200,000
MFSU 3: 900

Total: 1,200,900 EU

RE Cell 1: 600,000
RE Cell 2: 70,000
RE Cell 3: 200
Total: 670,200 MJ

It also needs to be expandable.
Can anyone help? I am running Unleashed 1.1.3 with Open-peripherals but not with CC Sensors. The server has banned networking cable and wired modems so I cant use those.

Thanks :)/>
Lyqyd #2
Posted 28 January 2014 - 10:13 AM
You'll need to put a computer with a wireless modem next to each device you want to read. That's actually a worse way to set it up than wired networks as far as server performance is concerned, I would suspect. Oh well.
Durfsurn #3
Posted 30 January 2014 - 06:01 AM
Yeh, I'm not quite sure why they re banned either. But can someone help with the actual code? I tried myself but couldn't get it to work,
Lyqyd #4
Posted 30 January 2014 - 10:54 AM
Please post the code you did come up with and we can help you correct and refine it. Be sure to give the full text of any error messages you receive while running it.