From bd337ca83809b97823bd2e0132918fb710f077a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20GUILLAUME?= Date: Tue, 22 Jan 2019 13:19:12 +0100 Subject: [PATCH] correcting readme --- README.md | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 6f9bab7..b8100d6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ - -# gitlab-ldap-sync +# nextcloud_ics_sync Python project to sync ics calendars into nextcloud. @@ -47,17 +46,22 @@ cd ./nextcloud_ics_sync && ./nextcloud_ics_sync.py You should get something like this : ```bash -Imported: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (204) -Imported: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (204) -Imported: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (204) -Imported: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (204) -Imported: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx@gmail.com (204) -Imported: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx@gmail.com (204) -Imported: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx@gmail.com (204) -Imported: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx@gmail.com (204) +[XXXX-XX-XX XX:XX:XX,XXX] [INFO] Initializing script... +[XXXX-XX-XX XX:XX:XX,XXX] [INFO] Done. +[XXXX-XX-XX XX:XX:XX,XXX] [INFO] Importing calendars... +[XXXX-XX-XX XX:XX:XX,XXX] [INFO] Working on section import_a +[XXXX-XX-XX XX:XX:XX,XXX] [INFO] Working with calendar nextcloud_a... +[XXXX-XX-XX XX:XX:XX,XXX] [INFO] Imported: uuid (Event Name) +[XXXX-XX-XX XX:XX:XX,XXX] [INFO] Imported: uuid (Event Name) +[XXXX-XX-XX XX:XX:XX,XXX] [INFO] Imported: uuid (Event Name) +[XXXX-XX-XX XX:XX:XX,XXX] [INFO] Imported: uuid (Event Name) +[XXXX-XX-XX XX:XX:XX,XXX] [INFO] Done. +[XXXX-XX-XX XX:XX:XX,XXX] [INFO] Done. +[XXXX-XX-XX XX:XX:XX,XXX] [INFO] Done. ``` You could add the script in a cron to run it periodically. + ## Deployment How to configure config.json @@ -87,11 +91,11 @@ ics_password : ``` For now ```ics_username``` and ```ics_password``` are mandatory in each import, meaning the keys should be here but empty if not needed by the distant ics server. -```create_user``` If set to true, the script will create the users in gitlab and add them in the corresponding groups. Be aware that gitlab will send a mail to every new users created. ## TODO - [ ] validate if ```ics_username``` and ```ics_password``` are in config to avoid putting empty value in config - [ ] your suggestions + ## Built With * [Python](https://www.python.org/)