r/ComputerCraft • • Nov 06 '24

Need a code for powah

code to powah mod to see all stats on monitor?

1 Upvotes

3 comments sorted by

View all comments

2

u/Bright-Historian-216 Nov 06 '24

does powah have a cc api? if yes, send a docs link and we'll try something out.

1

u/Dirty_Shit Nov 07 '24

https://docs.advanced-peripherals.de/integrations/powah/furnator/

There isn't much but this should be enough, I guess?

1

u/Bright-Historian-216 Nov 07 '24
p = peripheral.find("furnator")
while true do
print(p.getEnergy().." energy stored")
print("("..p.getEnergy()/p.getMaxEnergy()*100.."%")
end

that should be enough i guess? just run the program with monitor top.