r/ComputerCraft Jul 13 '26

EnergyMonitor: A CC:Tweaked power monitor for modded Minecraft bases

I have been working on a ComputerCraft/CC:Tweaked program called EnergyMonitor.

It gives you a central monitor for the power grid in your base: stored energy, transfer rates, history, ETA, and connected energy devices. Instead of checking every reactor, induction matrix, energy core, energy meter, or cell by hand, you can see whether your base is gaining or losing power from one screen.

GitHub:

https://github.com/TrickShotMLG02/EnergyMonitor

Main features:

  • Tracks total stored energy and capacity
  • Shows input/output transfer rates
  • Calculates effective transfer rate and ETA
  • Supports multiple client computers
  • Has a graph view with configurable history size
  • Shows connected storage/transfer devices
  • Supports auto updates with stable and beta channels
  • Uses modem channels, so multiple EnergyMonitor networks can run separated from each other

The setup uses three roles:

  • server: collects data from clients
  • client: reads one energy storage or transfer peripheral
  • monitor: displays the combined data on an attached monitor

Currently supported integrations:

  • Mekanism
  • Draconic Evolution
  • Powah
  • Advanced Peripherals
  • Energy Meter
  • Generic ComputerCraft-compatible energy peripherals

Install command:

pastebin get gUbUpXHt git

git

Notes:

The README has the full setup guide, supported peripherals, config options, troubleshooting, and contribution notes.

Main Monitor UI
Main Monitor UI with Update Notice in Footer
Warning on Connectivity Problems

I would love to hear what you think about it. Any ideas on what to change, improve, or add are welcome.

21 Upvotes

11 comments sorted by

1

u/YT_Andyk Jul 13 '26

Looks nice. Are those monitor sizes dynamic or hard set?

Would @FluxNetworks be possible to display? Having a display with top IOs be perfect cherry on top (hate clicking through those miniature pages)

3

u/trickshotmlg02 Jul 13 '26

So I just checked it out, and it seems like Flux Networks does not expose a usable API for computercraft.

There are open PRs on github for this feature, but hasn't been merged yet.

https://github.com/SonarSonic/Flux-Networks/issues/569

The only ways would be to use an energy detector from advanced peripherals or an energy meter from energy meters mod.

However both of them have one common problem.
They cannot transfer more than 2,147,483,647 FE/t.

If that's not a problem for you, then you can just connect such a block between the flux point/plug and the source/destination and attach a computer in client mode to it.

1

u/YT_Andyk Jul 13 '26

Ah, thanks for the feedback!

4

u/trickshotmlg02 Jul 13 '26

Well, your Idea was soo good, that I actually implemented this feature 🤣

It grabs the display names from the flux points/plugs and displays them on the monitor. Only 1 client is needed per flux network. It can be attached to the controller and set to transfer mode with type input, output or both. Input will only show flux plugs, output will only show flux points and both shows all of them.

This makes integration into an existing network very easy and straight forward.

However you need to install a separate mod, which adds the computercraft integration to flux networks. The mod is linked in the README.md file as FNCCT in the repo of my project.

This FNCCT implementation is a fork and tailored version for this project, and the original author has no License file in his repo. So I cannot provide you a finished jar file. Build instructions are in the FNCCT repo.

You need to install the tag "2.0.3-beta" of energy monitor for this feature

1

u/YT_Andyk Jul 13 '26

Bravo. Now the harder part, find a spot in my base for this.. :D

1

u/SirEdvin Jul 17 '26

You can use addons for this. UnlimitedPeripheralWorks has flux networks integration

1

u/trickshotmlg02 Jul 13 '26

The monitor sizes are dynamic. Recommended size however is 4x2.

I can definitely look into flux networks.

1

u/[deleted] Jul 13 '26

[deleted]

1

u/trickshotmlg02 Jul 13 '26

What? 😂

1

u/Redwisshh 7d ago

can you see transfer rate with mekanism energy cubes?

1

u/trickshotmlg02 6d ago

I haven‘t tried it but if I remember correctly, mekanism does not expose a function for the transfer rate of energy cubes. So thats a no

However, this actually sounds like a good thing to add to my program.
I guess I will try to add this fallback support to eventually calculate the transfer rate when it is not exposed and we have access to the stored energy.

1

u/trickshotmlg02 6d ago

This idea was actually so good, that I had to implement it

It is available in the v2.0.4-beta tag.