Improvement and bug fix are welcome.
Idea for improvement, I see GPIO 1 & 2 are free, so why not set GPIO1 as output
and switch it high if the solar panel voltage suddenly drops to say... zero.
You could call that status bit ALARM!
http://www.wind-sun.com/ForumVB/showthread.php?t=1611
Or I'll simply do it myself when I get motivated
Cheers Art.