automatic solar energy measurement