---
# System prepended metadata

title: q_energy_CC

---

local q = peripheral.wrap("left")
local modem = peripheral.find("modem") or error("No modem attached", 0)
modem.close(0)
modem.open(17)

while true do
    msg = { nm=4, x=2, y=4, c1=32, c2=16 }
    msg['msg1'] = "Q BRIGE ENERGY:"
    msg['msg2'] = mekanismEnergyHelper.joulesToFE(q.getEnergy()) .. " FE                "
    modem.transmit(17, 1, msg)
    sleep(1)
end
