diff options
author | Jonas Smedegaard <dr@jones.dk> | 2024-02-25 09:28:24 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-02-25 09:28:24 +0100 |
commit | f39ada62a0f8c904f2d35339d6142331d5be588d (patch) | |
tree | 34b0c8992e0b84d38b5d9d6e3632dfe5b1aa73ca /bin | |
parent | e0ca917a2043d4751bd3b22c29c888c8e0bde491 (diff) |
cover events
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cal-fetch.sh | 7 | ||||
-rwxr-xr-x | bin/cal-publish.sh | 21 |
2 files changed, 28 insertions, 0 deletions
diff --git a/bin/cal-fetch.sh b/bin/cal-fetch.sh new file mode 100755 index 0000000..d6c91a4 --- /dev/null +++ b/bin/cal-fetch.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +# Depends: vdirsyncer + +set -eu + +vdirsyncer sync jonas_calendar/_ruc_thoughtroam jonas_calendar/_ruc_thoughtroam-learn jonas_calendar/_ruc_thoughtroam-code jonas_calendar/_ruc_thoughtroam-use diff --git a/bin/cal-publish.sh b/bin/cal-publish.sh new file mode 100755 index 0000000..7d541ee --- /dev/null +++ b/bin/cal-publish.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +# Depends: ical2html + +set -eu + +STARTDATE=$(date --date "1 week ago" +%Y%m%d) + +OUTDIR=events + +mkdir --parents "$OUTDIR/learn" "$OUTDIR/code" "$OUTDIR/use" "$OUTDIR/superteam" + +#icalmerge ~/.calendars/_ruc_thoughtroam-learn/*.ics "$OUTDIR"/learn/learn.ics +icalmerge ~/.calendars/_ruc_thoughtroam-code/*.ics "$OUTDIR"/code/code.ics +#icalmerge ~/.calendars/_ruc_thoughtroam-use/*.ics "$OUTDIR"/use/use.ics +icalmerge ~/.calendars/_ruc_thoughtroam/*.ics "$OUTDIR"/superteam/superteam.ics + +#ical2html --monday --title "RUC HumTek-23 Thoughtroam kode" "$STARTDATE" P40D "$OUTDIR"/learn/learn.ics > "$OUTDIR"/learn/index.html +ical2html --monday --title "RUC HumTek-23 Thoughtroam læring" "$STARTDATE" P40D "$OUTDIR"/code/code.ics > "$OUTDIR"/code/index.html +#ical2html --monday --title "RUC HumTek-23 Thoughtroam brug" "$STARTDATE" P40D "$OUTDIR"/use/use.ics > "$OUTDIR"/use/index.html +ical2html --monday --title "RUC HumTek-23 Thoughtroam fælles" "$STARTDATE" P40D "$OUTDIR"/superteam/superteam.ics > "$OUTDIR"/superteam/index.html |