#!/bin/bash

# stdbuf is in coreutils 7.5 or better
stdbuf -oL sed \
	-e "s/Volts:       /Phase1 Volts:/" \
	-e "s/\(.*Ch1 Watts:.*\)/\1 < EV/" \
	-e "s/\(.*Ch2 Watts:.*\)/\1 < PV2/" \
	-e "s/\(.*Aux1 Watts:.*\)/\1 < Washer\/Dishwasher/" \
	-e "s/\(.*Aux2 Watts:.*\)/\1 < All Lights/" \
	-e "s/\(.*Aux3 Watts:.*\)/\1 < Furnace and Fans/" \
	-e "s/\(.*Aux4 Watts:.*\)/\1 < Kitchen\/LVR Plugs/" \
	-e "s/\(.*Aux5 Watts:.*\)/\1 < GaragePlugs1\/GarageFans/"
