Energy production from power pole
Posted: Thu Jun 29, 2017 2:20 pm
I want to get how much energy a power network is producing from a power pole, is this even possible?
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
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
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