1 import bellevue_reporter_rss_renderer
3 import cnn_rss_renderer
8 import local_photos_mirror_renderer
9 import mynorthwest_rss_renderer
11 import pollen_renderer
12 import reddit_renderer
14 import seattletimes_rss_renderer
16 import stevens_renderer
17 import stranger_renderer
19 import twitter_renderer
20 import weather_renderer
21 import wsj_rss_renderer
23 oauth = gdata_oauth.OAuth(secrets.google_client_id,
24 secrets.google_client_secret)
25 if not oauth.has_token():
26 user_code = oauth.get_user_code()
27 print('------------------------------------------------------------')
28 print(('Go to %s and enter the code "%s" (no quotes, case-sensitive)' % (
29 oauth.verification_url, user_code)))
34 hours = constants.seconds_per_hour
37 # Note, the 1s updates don't really update every second; there's a max
38 # frequency in the renderer thread of ~once a minute. It just means that
39 # everytime it check these will be stale and happen.
41 stranger_renderer.stranger_events_renderer(
42 {"Fetch Events" : (hours * 12),
43 "Shuffle Events" : (always)}),
44 # pollen_renderer.pollen_count_renderer(
45 # {"Poll" : (hours * 1)}),
46 myq_renderer.garage_door_renderer(
47 {"Poll MyQ" : (minutes * 5),
48 "Update Page" : (always)}),
49 bellevue_reporter_rss_renderer.bellevue_reporter_rss_renderer(
50 {"Fetch News" : (hours * 1),
51 "Shuffle News" : (always)},
52 "www.bellevuereporter.com",
54 "Bellevue Reporter" ),
55 mynorthwest_rss_renderer.mynorthwest_rss_renderer(
56 {"Fetch News" : (hours * 1),
57 "Shuffle News" : (always)},
61 cnn_rss_renderer.cnn_rss_renderer(
62 {"Fetch News" : (hours * 1),
63 "Shuffle News" : (always)},
65 [ "/rss/money_latest.rss",
66 "/rss/money_mostpopular.rss",
67 "/rss/money_news_economy.rss",
68 "/rss/money_news_companies.rss" ],
70 cnn_rss_renderer.cnn_rss_renderer(
71 {"Fetch News" : (hours * 1),
72 "Shuffle News" : (always)},
74 [ "/rss/cnn_tech.rss",
75 "/rss/money_technology.rss" ],
77 cnn_rss_renderer.cnn_rss_renderer(
78 {"Fetch News" : (hours * 1),
79 "Shuffle News" : (always)},
81 [ "/rss/cnn_topstories.rss",
85 wsj_rss_renderer.wsj_rss_renderer(
86 {"Fetch News" : (hours * 1),
87 "Shuffle News" : (always)},
89 [ "/rss/RSSWorldNews.xml" ],
91 wsj_rss_renderer.wsj_rss_renderer(
92 {"Fetch News" : (hours * 1),
93 "Shuffle News" : (always)},
95 [ "/rss/RSSMarketsMain.xml",
96 "/rss/WSJcomUSBusiness.xml"],
98 health_renderer.periodic_health_renderer(
99 {"Update Perioidic Job Health" : (seconds * 45)}),
100 stock_renderer.stock_quote_renderer(
101 {"Update Prices" : (hours * 1)},
114 stevens_renderer.stevens_pass_conditions_renderer(
115 {"Fetch Pass Conditions" : (hours * 1)},
117 [ "/traffic/rssfeeds/stevens/Default.aspx" ]),
118 seattletimes_rss_renderer.seattletimes_rss_renderer(
119 {"Fetch News" : (hours * 1),
120 "Shuffle News" : (always)},
121 "www.seattletimes.com",
122 [ "/pacific-nw-magazine/feed/",
125 "Seattle Times Segments"),
126 weather_renderer.weather_renderer(
127 {"Fetch Weather (Bellevue)": (hours * 4)},
129 weather_renderer.weather_renderer(
130 {"Fetch Weather (Stevens)": (hours * 4)},
132 weather_renderer.weather_renderer(
133 {"Fetch Weather (Telma)" : (hours * 4)},
135 local_photos_mirror_renderer.local_photos_mirror_renderer(
136 {"Index Photos": (hours * 24),
137 "Choose Photo": (always)}),
138 gkeep_renderer.gkeep_renderer(
139 {"Update": (minutes * 10)}),
140 gcal_renderer.gcal_renderer(
141 {"Render Upcoming Events": (hours * 2),
142 "Look For Triggered Events": (always)},
144 reddit_renderer.showerthoughts_reddit_renderer(
145 {"Scrape": (hours * 6),
146 "Shuffle": (always)} ),
147 reddit_renderer.til_reddit_renderer(
148 {"Scrape": (hours * 6),
149 "Shuffle": (always)} ),
150 reddit_renderer.seattle_reddit_renderer(
151 {"Scrape": (hours * 6),
152 "Shuffle": (always)}),
153 reddit_renderer.quotes_reddit_renderer(
154 {"Scrape": (hours * 6),
155 "Shuffle": (always)}),
156 reddit_renderer.lifeprotips_reddit_renderer(
157 {"Scrape": (hours * 6),
158 "Shuffle": (always)}),
159 twitter_renderer.twitter_renderer(
160 {"Fetch Tweets": (minutes * 15),
161 "Shuffle Tweets": (always)})