-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calendar #43
base: main
Are you sure you want to change the base?
Conversation
const router = express.Router(); | ||
|
||
const mkRequestLogin = (res: express.Response) => async () => { | ||
res.status(403).send('Not logged in'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Handle logging in
|
||
res.type('text/calendar; charset=UTF-8'); | ||
|
||
const cal = ical({ name: 'Strava activities' }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Add proper caching of ical (only fetch new activities, e.g. from past week)
- Clear old caches after certain time
- Handle logout through GUI
- Add link to GUI
|
||
for await (const activity of eagerIterator(strava.getStravaActivities())) { | ||
const startTime = moment(activity.start_date).tz(activity.timezone.split(' ')[1]); | ||
const location = activity.start_latlng.join(', '); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Consider geocoding here
094f89f
to
d9215dd
Compare
56c2872
to
dbc9936
Compare
A UI could be provided with two buttons to launch a calendar app, or to copy the ICAL link allowing the user choice over which they use. This allows google calendar users to add it both on mobile and windows very easily |
4eda375
to
930fe98
Compare
7c7c144
to
fa8cb09
Compare
fa8cb09
to
4236ca2
Compare
4236ca2
to
362d8a9
Compare
98f255d
to
edacd73
Compare
32b43f8
to
fc010a8
Compare
ae5802a
to
fbf0534
Compare
1cc17e2
to
52818d2
Compare
30d6682
to
6a9ce7f
Compare
Add endpoint for serving an ical calendar containing all activities