Fully automatic solar energy controller