3 import bellevue_city_calendar_renderer
4 import bellevue_reporter_rss_renderer
6 import cnn_rss_renderer
9 import google_news_rss_renderer
11 import health_renderer
12 import local_photos_mirror_renderer
13 import mynorthwest_rss_renderer
15 import reddit_renderer
16 import seattletimes_rss_renderer
17 import stevens_renderer
18 import kiosk_secrets as secrets
19 import recipe_renderer_and_trigger
21 import twitter_renderer
22 import urbanist_renderer
23 import weather_renderer
24 import wsj_rss_renderer
29 hours = kiosk_constants.seconds_per_hour
33 oauth = gdata_oauth.OAuth(secrets.google_client_secret)
36 # Note, the 1s updates don't really update every second; there's a max
37 # frequency in the renderer thread of ~once a minute. It just means that
38 # everytime it check these will be stale and happen.
40 # stranger_renderer.stranger_events_renderer(
41 # {"Fetch Events": (hours * 12), "Shuffle Events": (always)}
43 myq_renderer.garage_door_renderer(
44 {"Poll MyQ": (minutes * 5), "Update Page": (always)}
46 bellevue_city_calendar_renderer.bellevue_city_calendar_renderer(
48 "Fetch News": (hours * 1),
49 "Shuffle News": (always),
52 ["/calendar/events.xml"],
53 "Bellevue City Calendar",
55 bellevue_reporter_rss_renderer.bellevue_reporter_rss_renderer(
56 {"Fetch News": (hours * 1), "Shuffle News": (always)},
57 "www.bellevuereporter.com",
61 urbanist_renderer.urbanist_renderer(
62 {"Fetch News": (hours * 2), "Shuffle News": (always)},
63 "www.theurbanist.org",
67 mynorthwest_rss_renderer.mynorthwest_rss_renderer(
68 {"Fetch News": (hours * 1), "Shuffle News": (always)},
73 cnn_rss_renderer.cnn_rss_renderer(
74 {"Fetch News": (hours * 1), "Shuffle News": (always)},
76 ["/rss/cnn_tech.rss", "/rss/money_technology.rss"],
79 cnn_rss_renderer.cnn_rss_renderer(
80 {"Fetch News": (hours * 1), "Shuffle News": (always)},
82 ["/rss/cnn_topstories.rss", "/rss/cnn_world.rss", "/rss/cnn_us.rss"],
85 wsj_rss_renderer.wsj_rss_renderer(
86 {"Fetch News": (hours * 1), "Shuffle News": (always)},
88 ["/rss/RSSWorldNews.xml"],
91 wsj_rss_renderer.wsj_rss_renderer(
92 {"Fetch News": (hours * 1), "Shuffle News": (always)},
94 ["/rss/RSSMarketsMain.xml", "/rss/WSJcomUSBusiness.xml"],
97 stevens_renderer.stevens_renderer({"Unused": (minutes * 30)}),
98 google_news_rss_renderer.google_news_rss_renderer(
99 {"Fetch News": (minutes * 30), "Shuffle News": (always)},
101 ["/rss?hl=en-US&gl=US&ceid=US:en"],
104 health_renderer.periodic_health_renderer(
105 {"Update Perioidic Job Health": (seconds * 45)}
107 stock_renderer.stock_quote_renderer(
108 {"Update Prices": (minutes * 10)},
126 {"BTC-USD": "BTC", "GC=F": "GOLD"},
128 seattletimes_rss_renderer.seattletimes_rss_renderer(
129 {"Fetch News": (hours * 4), "Shuffle News": (always)},
130 "www.seattletimes.com",
131 ["/pacific-nw-magazine/feed/", "/life/feed/", "/outdoors/feed/"],
132 "Seattle Times Segments",
134 weather_renderer.weather_renderer(
135 {"Fetch Weather (Bellevue)": (hours * 3)}, "home"
137 weather_renderer.weather_renderer(
138 {"Fetch Weather (Stevens)": (hours * 3)}, "stevens"
140 weather_renderer.weather_renderer({"Fetch Weather (Telma)": (hours * 3)}, "telma"),
141 local_photos_mirror_renderer.local_photos_mirror_renderer(
142 {"Index Photos": (hours * 24), "Choose Photo": (always)}
144 gkeep_renderer.gkeep_renderer({"Update": (minutes * 10)}),
145 gcal_renderer.gcal_renderer(
146 {"Render Upcoming Events": (hours * 2), "Look For Triggered Events": (always)},
149 reddit_renderer.showerthoughts_reddit_renderer(
150 {"Scrape": (hours * 6), "Shuffle": (always)}
152 reddit_renderer.til_reddit_renderer({"Scrape": (hours * 6), "Shuffle": (always)}),
153 reddit_renderer.seattle_reddit_renderer(
154 {"Scrape": (hours * 6), "Shuffle": (always)}
156 reddit_renderer.quotes_reddit_renderer(
157 {"Scrape": (hours * 6), "Shuffle": (always)}
159 reddit_renderer.lifeprotips_reddit_renderer(
160 {"Scrape": (hours * 6), "Shuffle": (always)}
162 twitter_renderer.twitter_renderer(
163 {"Fetch Tweets": (minutes * 15), "Shuffle Tweets": (always)}
165 recipe_renderer_and_trigger.RecipeRenderer(
166 "/home/pi/.recipe_url", {"Maybe Render Recipe Page": (always)}