Energy production from power pole
Energy production from power pole
I want to get how much energy a power network is producing from a power pole, is this even possible?
My Mods:
Re: Energy production from power pole
Yes, electric_network_statistics does not give the correct info and electric_emissions does not workdarkfrei wrote:Did you try this?
http://lua-api.factorio.com/latest/LuaE ... statistics
http://lua-api.factorio.com/latest/LuaE ... _emissions
My Mods:
Re: Energy production from power pole
I've been messing with this a bit. electric_network_statistics does give correct info. It gives the total number of joules produced. You can get power by just reading it at two different times and getting the delta. If you take take two readings at 60 ticks apart, the delta is power in watts.coltonj96 wrote:Yes, electric_network_statistics does not give the correct info and electric_emissions does not workdarkfrei wrote:Did you try this?
http://lua-api.factorio.com/latest/LuaE ... statistics
http://lua-api.factorio.com/latest/LuaE ... _emissions
Re: Energy production from power pole
I figured that out a while agowithers wrote:I've been messing with this a bit. electric_network_statistics does give correct info. It gives the total number of joules produced. You can get power by just reading it at two different times and getting the delta. If you take take two readings at 60 ticks apart, the delta is power in watts.coltonj96 wrote:Yes, electric_network_statistics does not give the correct info and electric_emissions does not workdarkfrei wrote:Did you try this?
http://lua-api.factorio.com/latest/LuaE ... statistics
http://lua-api.factorio.com/latest/LuaE ... _emissions
My Mods: