Methods and apparatus, including computer program products, implementing and using techniques for regulating water flow in a pipe. A water flow regulator includes a valve configured to regulate water flow, a power source, a communication module and a processor. The communication module is configured to receive instructions pertaining to water flow regulation over a wireless network and to send instructions to the processor. The instructions are based at least in part on weather data and on the physical location of the water flow regulator. The processor is coupled to the communication module, and is configured to send a control signal to the valve to regulate the water flow in accordance with a received instruction from the communication module.