Helpers¶
-
solarhouse.helpers.
prepare_period
(tz, date: datetime.datetime = None, month: datetime.datetime = None, year: datetime.datetime = None, period: tuple = None) → tuple¶ Prepare period to retrieve data of weather and calculate sun power. :param tz: - time zone of geoposition of building :param date: :param month: :param year: :param period: :return: tuple (start , end) - begin and end of period.