Some helpful utilities for Weewx