ical2org.sh 507 B

12345678910111213141516
  1. #!/bin/bash
  2. # customize these
  3. DATE=$(date "+%F-%R")
  4. WGET=/usr/bin/wget
  5. ICS2ORG=/home/eddie/pipes/ical2org
  6. ICSFILE=/home/eddie/.calendars/calendar-$DATE.ics
  7. ORGFILE=/home/eddie/Documents/org/calendars/calendar.org
  8. URL="https://my.owndrive.com/index.php/apps/calendar/export.php?calid=8852"
  9. passs=$(pass Internet/Cloud/Owndrive | head -n 1)
  10. # no customization needed below
  11. $WGET -O $ICSFILE $URL --http-user=PieceMaker --http-password=$passs --auth-no-challenge --no-clobber
  12. $ICS2ORG < $ICSFILE > $ORGFILE