diff --git a/SkyCamera.py b/SkyCamera.py index 06cb4af..bfd45d4 100644 --- a/SkyCamera.py +++ b/SkyCamera.py @@ -38,7 +38,7 @@ def takeSkyPicture(): camera.exposure_mode = "auto" try: - camera.rotation = 180 + camera.rotation = config.CAMERA_ROTATION #camera.rotation = 270 camera.resolution = (1920, 1080) # Camera warm-up time diff --git a/SkyWeather.py b/SkyWeather.py index 6dd429b..c3506dd 100644 --- a/SkyWeather.py +++ b/SkyWeather.py @@ -211,8 +211,8 @@ def togglePower(GroveSavePin): import SDL_Pi_GrovePowerDrive -TEMPFANTURNON = 37.0 -TEMPFANTURNOFF = 34.0 +TEMPFANTURNON = config.FAN_ON_TEMP +TEMPFANTURNOFF = config.FAN_OFF_TEMP myPowerDrive = SDL_Pi_GrovePowerDrive.SDL_Pi_GrovePowerDrive(config.GPIO_Pin_PowerDrive_Sig1, config.GPIO_Pin_PowerDrive_Sig2, False, False) diff --git a/config.py b/config.py index 3d129c2..19b31df 100644 --- a/config.py +++ b/config.py @@ -50,10 +50,14 @@ USEWEATHERSTEM = False INTERVAL_CAM_PICS__SECONDS = 60 +CAMERA_ROTATION = 180 STATIONMAC = MACADDRESS STATIONKEY="XXXXYYYY" STATIONHARDWARE="" +FAN_ON_TEMP = 37 +FAN_OFF_TEMP = 34 + # WeatherUnderground Station