I spent hours on this. It's not efficient by any means, but it seems to get the shit done. You might want to adjust heating tower's logic and supply.

Originally shared on the public FactorioPrints / Factorio School archive (factorioprints.com · factorio.school). Authorship preserved from the public catalog.
I spent hours on this. It's not efficient by any means, but it seems to get the shit done. You might want to adjust heating tower's logic and supply.