Solar automatic charging device