The Basics of Solar Energy and Smart Metering