From 1ac32e25453f9e32ca4a4db28eb2d4564a87940f Mon Sep 17 00:00:00 2001 From: Max G Date: Mon, 4 Mar 2019 20:10:36 +0100 Subject: [PATCH] Now printing rss feeds insted of events --- Calendar/E-Paper.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Calendar/E-Paper.py b/Calendar/E-Paper.py index f771e9f..f87cc01 100644 --- a/Calendar/E-Paper.py +++ b/Calendar/E-Paper.py @@ -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)