Extensions to the weewx weather system for energy monitoring