Circuit for AC measure?

MarkT:
Also the quality of mains power varies a lot - rural supplies are more susceptible to lightning surges.

And itchy cows. Whenever they rub a loose power pole the lights flicker and flash.