From bee253f496498c658c89e70611eb51b4fbf8cca3 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 6 Jul 2016 20:18:11 +0200 Subject: Doc solar-python dep + add golden hour and blue hour MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- DEPENDENCIES | 1 + src/plugins/solar.py | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/DEPENDENCIES b/DEPENDENCIES index d7ec318..72ca15f 100644 --- a/DEPENDENCIES +++ b/DEPENDENCIES @@ -22,6 +22,7 @@ OPTIONAL RUNTIME DEPENDENCIES: imagemagick: for image support file: for image support librsvg: for image support + solar-python>=2.5: for solar data BUILD DEPENDENCIES: diff --git a/src/plugins/solar.py b/src/plugins/solar.py index 6873189..038e71b 100644 --- a/src/plugins/solar.py +++ b/src/plugins/solar.py @@ -86,6 +86,21 @@ class Solar: amateur astronomical twilight, measured in degrees ''' + SOLAR_ELEVATION_RANGE_GOLDEN_HOUR = solar_python.SOLAR_ELEVATION_RANGE_GOLDEN_HOUR + ''' + :(float, float) The Sun's lowest and highest elevation during + the golden "hour" (also known as magic hour), + measured in degrees. These elevations are + approximate. + ''' + + SOLAR_ELEVATION_RANGE_BLUE_HOUR = solar_python.SOLAR_ELEVATION_RANGE_BLUE_HOUR + ''' + :(float, float) The Sun's lowest and highest elevation during + the blue "hour", measured in degrees. These + elevations are approximate. + ''' + EQUINOX = 0 SUMMER = 1 -- cgit v1.2.3-70-g09d2