A proposed thermal energy network will harness heat from the earth and from wastewater to power renewable heating and cooling systems.