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
import OwmForecasts
import IcalEvents
import RssParserPosts
locale.setlocale(locale.LC_ALL, datetime_locals[language])
debug = DebugConsole()
@ -59,9 +60,13 @@ def main ():
owm = OwmForecasts.OwmForecasts(api_key)
design.add_weather(OwmForecasts.OwmForecasts(api_key))
debug.print_line('Fetching events from your calendar')
events_cal = IcalEvents.IcalEvents(ical_urls)
design.add_calendar(events_cal)
#debug.print_line('Fetching events from your calendar')
#events_cal = IcalEvents.IcalEvents(ical_urls)
#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:
output.render(design)