From 477894b251f6cb86137eace2a1e419eef1e3c1aa Mon Sep 17 00:00:00 2001 From: Max G Date: Sat, 9 Mar 2019 16:03:43 +0100 Subject: [PATCH] Implemented paid_subscription option for owm --- Calendar/E-Paper.py | 2 +- Calendar/settings.py.sample | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Calendar/E-Paper.py b/Calendar/E-Paper.py index affb7c8..e6df861 100644 --- a/Calendar/E-Paper.py +++ b/Calendar/E-Paper.py @@ -66,7 +66,7 @@ def main (): raise ImportError("choosen_design must be valid (" + choosen_design + ")") debug.print_line("Fetching weather information from open weather map") - owm = OwmForecasts.OwmForecasts(location, api_key) + owm = OwmForecasts.OwmForecasts(location, api_key, paid_api=owm_paid_subscription) design.add_weather(owm) debug.print_line('Fetching events from your calendar') diff --git a/Calendar/settings.py.sample b/Calendar/settings.py.sample index ac63081..740540b 100644 --- a/Calendar/settings.py.sample +++ b/Calendar/settings.py.sample @@ -9,6 +9,7 @@ rss_feeds = [ ] api_key = "" +owm_paid_subscription = False location = "Julich, DE" week_starts_on = "Monday" display_colours = "bwr"