Implemented paid_subscription option for owm

This commit is contained in:
Maximilian Giller 2019-03-09 16:03:43 +01:00
parent 5ad6dff6fb
commit 477894b251
2 changed files with 2 additions and 1 deletions

View file

@ -66,7 +66,7 @@ def main ():
raise ImportError("choosen_design must be valid (" + choosen_design + ")") raise ImportError("choosen_design must be valid (" + choosen_design + ")")
debug.print_line("Fetching weather information from open weather map") 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) design.add_weather(owm)
debug.print_line('Fetching events from your calendar') debug.print_line('Fetching events from your calendar')

View file

@ -9,6 +9,7 @@ rss_feeds = [
] ]
api_key = "" api_key = ""
owm_paid_subscription = False
location = "Julich, DE" location = "Julich, DE"
week_starts_on = "Monday" week_starts_on = "Monday"
display_colours = "bwr" display_colours = "bwr"