daylight demonstrates accumulating minutes of daylight

daylight.py

daylight.minutes_of_daylight(pv)

This program counts minutes of daylight in a 24 hour period. The following measurement setup configuration is assumed: Analog type for PV reading, measurement interval is one minute

Parameters:pv – analog reading form PV sensor
Returns:number of daylight minutes so far