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