Now printing rss feeds insted of events

This commit is contained in:
Maximilian Giller 2019-03-04 20:10:36 +01:00
parent b7e8a5c662
commit 1ac32e2545

View file

@ -16,6 +16,7 @@ from settings import *
from MonthOvPanel import MonthOvPanel from MonthOvPanel import MonthOvPanel
import OwmForecasts import OwmForecasts
import IcalEvents import IcalEvents
import RssParserPosts
locale.setlocale(locale.LC_ALL, datetime_locals[language]) locale.setlocale(locale.LC_ALL, datetime_locals[language])
debug = DebugConsole() debug = DebugConsole()
@ -59,9 +60,13 @@ def main ():
owm = OwmForecasts.OwmForecasts(api_key) owm = OwmForecasts.OwmForecasts(api_key)
design.add_weather(OwmForecasts.OwmForecasts(api_key)) design.add_weather(OwmForecasts.OwmForecasts(api_key))
debug.print_line('Fetching events from your calendar') #debug.print_line('Fetching events from your calendar')
events_cal = IcalEvents.IcalEvents(ical_urls) #events_cal = IcalEvents.IcalEvents(ical_urls)
design.add_calendar(events_cal) #design.add_calendar(events_cal)
debug.print_line('Fetching posts from your rss-feeds')
rss = RssParserPosts.RssParserPosts(rss_feeds)
design.add_rssfeed(rss)
for output in output_adapters: for output in output_adapters:
output.render(design) output.render(design)