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

Power Grid Monitor

Started by leonardi, 24 July 2013 - 05:21 PM
leonardi #1
Posted 24 July 2013 - 07:21 PM
So I made a program that monitors the current powerlevel of my MFSU's and shows a pretty neat battery type graphic next to it to graphically support the data that is on the monitor.

Edit: I made it much more intuitive then it was before.
It will automatically detect the Monitor, Sensor and even the MFSU's

Some pics:

Spoiler

A video on how it works can be found here:
http://youtu.be/SZo2Dd7DL6M

The link to the installer for this program:

http://pastebin.com/vQZscSm7

(The installer will automatically pull the next 2 programs from Pastebin but I reckon you guys would like to see the code behind it so)
The main Program:
http://pastebin.com/9sCgurm3

The program that draws the lines:
http://pastebin.com/YN4Xmfwq

Hope that someone finds a use for this, If you decide to edit it or add new features please let me know I'd be quite interested in it.

The other note is that you do need openCCsensors for this to work.

- Leo
MinecraftRocks999 #2
Posted 27 July 2013 - 11:37 AM
Nice work. Would be good for a Tekkit Let's Play for example,
To measure power coming from someone's solar panels or nuclear reactors.
leonardi #3
Posted 11 October 2013 - 08:02 PM
Did a massive update on this today, Instead of having to manually put in the coordinates of each individual MFSU it now automatically detects them!

It also detects the monitor and sensor on its own.

I wrote a little installer application that puts everything in the right spot for the program to work.

And Fixed a bug where the screen wasn't being updated properly.

Overal Made it way more intuitive to use, Hope you guys enjoy!

- Leo
Wolf9988 #4
Posted 15 October 2013 - 06:33 PM
Anyway to update this to work with the new OpenCCsensors (OpenPeripherals)?
I would love to use this but im using the newer one
tuogex #5
Posted 16 October 2013 - 09:58 PM
Good to be able to see status from all MSFUs on one screen.
Expenox #6
Posted 16 October 2013 - 10:06 PM
Love this, looked over the code and I really like that installer, just makes it simpler and look very nice. Good job!
leonardi #7
Posted 16 October 2013 - 10:08 PM
Anyway to update this to work with the new OpenCCsensors (OpenPeripherals)?
I would love to use this but im using the newer one

I will look into that Wolf.
If I decide to do that I will update the OP

- Leo
Xixili #8
Posted 03 December 2013 - 09:40 AM
Good job, im using it on my server
Corky_McDuff #9
Posted 30 May 2015 - 10:08 AM
Apologies for getting my defibrillators out on this very old post.
But this is exactly what I have been searching for, and like other posters I only have the OpenPeripherals sensor, so it does not work.
Does anyone have a version that works or something very similar I can use to monitor power levels please?
It would be greatly appreciated as always.
Thank you.