modem = peripheral.find("modem") ecell = peripheral.find("thermalexpansion:storage_cell") modem.open(255) modem.open(256) function farkal() ilkenj = ecell.getEnergyStored() sleep(0.05) ikienj = ecell.getEnergyStored() fark = ikienj-ilkenj end while true do if (getEnergyStored <= getEnergyCapacity-10000000) then farkal() print(fark) modem.transmit(255,256,fark) else modem.transmit(255,256,"kapat") end end