From 55176891e114d9d6d9223611bc465a5efa872597 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 6 Jul 2016 20:14:36 +0200 Subject: Use the constants from solar-python MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/plugins/solar.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/plugins/solar.py b/src/plugins/solar.py index 845a347..6873189 100644 --- a/src/plugins/solar.py +++ b/src/plugins/solar.py @@ -26,61 +26,61 @@ class Solar: ''' - SOLAR_ELEVATION_SUNSET_SUNRISE = 0.0 + SOLAR_ELEVATION_SUNSET_SUNRISE = solar_python.SOLAR_ELEVATION_SUNSET_SUNRISE ''' :float The Sun's elevation at sunset and sunrise, measured in degrees ''' - SOLAR_ELEVATION_CIVIL_DUSK_DAWN = -6.0 + SOLAR_ELEVATION_CIVIL_DUSK_DAWN = solar_python.SOLAR_ELEVATION_CIVIL_DUSK_DAWN ''' :float The Sun's elevation at civil dusk and civil dawn, measured in degrees ''' - SOLAR_ELEVATION_NAUTICAL_DUSK_DAWN = -12.0 + SOLAR_ELEVATION_NAUTICAL_DUSK_DAWN = solar_python.SOLAR_ELEVATION_NAUTICAL_DUSK_DAWN ''' :float The Sun's elevation at nautical dusk and nautical dawn, measured in degrees ''' - SOLAR_ELEVATION_ASTRONOMICAL_DUSK_DAWN = -18.0 + SOLAR_ELEVATION_ASTRONOMICAL_DUSK_DAWN = solar_python.SOLAR_ELEVATION_ASTRONOMICAL_DUSK_DAWN ''' :float The Sun's elevation at astronomical dusk and astronomical dawn, measured in degrees ''' - SOLAR_ELEVATION_AMATEUR_ASTRONOMICAL_DUSK_DAWN = -15.0 + SOLAR_ELEVATION_AMATEUR_ASTRONOMICAL_DUSK_DAWN = solar_python.SOLAR_ELEVATION_AMATEUR_ASTRONOMICAL_DUSK_DAWN ''' :float The Sun's elevation at amateur astronomical dusk and amateur astronomical dawn, measured in degrees ''' - SOLAR_ELEVATION_RANGE_TWILIGHT = (-18.0, 0.0) + SOLAR_ELEVATION_RANGE_TWILIGHT = solar_python.SOLAR_ELEVATION_RANGE_TWILIGHT ''' :(float, float) The Sun's lowest and highest elevation during all periods of twilight, measured in degrees ''' - SOLAR_ELEVATION_RANGE_CIVIL_TWILIGHT = (-6.0, 0.0) + SOLAR_ELEVATION_RANGE_CIVIL_TWILIGHT = solar_python.SOLAR_ELEVATION_RANGE_CIVIL_TWILIGHT ''' :(float, float) The Sun's lowest and highest elevation during civil twilight, measured in degrees ''' - SOLAR_ELEVATION_RANGE_NAUTICAL_TWILIGHT = (-12.0, 0.0) + SOLAR_ELEVATION_RANGE_NAUTICAL_TWILIGHT = solar_python.SOLAR_ELEVATION_RANGE_NAUTICAL_TWILIGHT ''' :(float, float) The Sun's lowest and highest elevation during nautical twilight, measured in degrees ''' - SOLAR_ELEVATION_RANGE_ASTRONOMICAL_TWILIGHT = (-18.0, 0.0) + SOLAR_ELEVATION_RANGE_ASTRONOMICAL_TWILIGHT = solar_python.SOLAR_ELEVATION_RANGE_ASTRONOMICAL_TWILIGHT ''' :(float, float) The Sun's lowest and highest elevation during astronomical twilight, measured in degrees ''' - SOLAR_ELEVATION_RANGE_AMATEUR_ASTRONOMICAL_TWILIGHT = (-15.0, -18.0) + SOLAR_ELEVATION_RANGE_AMATEUR_ASTRONOMICAL_TWILIGHT = solar_python.SOLAR_ELEVATION_RANGE_AMATEUR_ASTRONOMICAL_TWILIGHT ''' :(float, float) The Sun's lowest and highest elevation during amateur astronomical twilight, measured in degrees -- cgit v1.2.3-70-g09d2