diff --git a/bash/workflow_nextcloud/sync_spaceship.sh b/bash/workflow_nextcloud/sync_spaceship.sh index 6bc82576..161ec074 100644 --- a/bash/workflow_nextcloud/sync_spaceship.sh +++ b/bash/workflow_nextcloud/sync_spaceship.sh @@ -12,7 +12,7 @@ # crontab -e # # m h dom mon dow command -# */30 * * * * bash ~/sync_spaceship.sh +# */30 * * * * bash ~/Nextcloud/ressources/workflow_nextcloud/sync_spaceship.sh # # ----------------- configs ----------------- # functions_sync.sh définit les constantes utiles diff --git a/bash/workflow_nextcloud/update_calendar.sh b/bash/workflow_nextcloud/update_calendar.sh index a1be4e56..26125891 100644 --- a/bash/workflow_nextcloud/update_calendar.sh +++ b/bash/workflow_nextcloud/update_calendar.sh @@ -1,23 +1,17 @@ #!/bin/bash # getting a nextcloud calendar without auth and convert it to org file # add this to a cronjob -# -echo "updating calendar from nextcloud" -#URL="https://cloud.tykayn.fr/remote.php/dav/public-calendars/M2XZMF5KpfmXJcfc\?export" # public link to orgmode calendar of nextcloud https://cloud.tykayn.fr/index.php/apps/calendar/timeGridWeek/now +# nécessite icsorg, installable par : +# npm install icsorg -g -URL_CAL="https://nuage.tykayn.fr/remote.php/dav/public-calendars/cHkSk5rG445MftpZ?export" # calendrier tkwulfi +echo "updating calendar from nextcloud" +#URL="https://cloud.tykayn.fr/remote.php/dav/public-calendars/ABCDEFFFFFFFFFFFFFFF\?export" # public link to orgmode calendar of nextcloud https://cloud.tykayn.fr/index.php/apps/calendar/timeGridWeek/now + +URL_CAL="https://nuage.tykayn.fr/remote.php/dav/public-calendars/ABCDEFFFFFFFFFFFFFFF?export" # calendrier partagé echo $URL_CAL wget $URL_CAL -O orgcalendar.ics --show-progress -# add content of other calendars -#URL_CAL="https://cloud.tykayn.fr/remote.php/dav/calendars/super_admin_tykayn/mobilizonfr/?export" -#wget $URL_CAL -O ->> orgcalendar.ics --show-progress - -# annivs -#URL_CAL="https://cloud.tykayn.fr/remote.php/dav/calendars/super_admin_tykayn/contact_birthdays/?export" -#wget $URL_CAL -O ->> orgcalendar.ics --show-progress -# convert the ics to an org file du -sch orgcalendar.ics icsorg -i orgcalendar.ics -o calendar.org -p 999999 cat calendar.org |wc -l diff --git a/bash/workflow_nextcloud/workflow_variables.sh b/bash/workflow_nextcloud/workflow_variables.sh index e69de29b..2a264009 100644 --- a/bash/workflow_nextcloud/workflow_variables.sh +++ b/bash/workflow_nextcloud/workflow_variables.sh @@ -0,0 +1,5 @@ +#!/bin/bash +export workflow_path=~/Nextcloud/ressources/workflow_nextcloud/ +export orgmode_path=~/Nextcloud/textes/orgmode +export orgroam_path=~/Nextcloud/textes/orgmode/org-roam +export BORG_PASSCOMMAND="cat /home/$USER/.tk-borg-passphrase-light" \ No newline at end of file