{"id":25614604,"url":"https://github.com/maxvalue/c3-sos-icalender","last_synced_at":"2026-02-28T15:32:14.138Z","repository":{"id":275663566,"uuid":"926792219","full_name":"MaxValue/c3-sos-icalender","owner":"MaxValue","description":"Congress Self Organized Session to iOS Calendar","archived":false,"fork":false,"pushed_at":"2025-02-03T22:02:41.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T16:57:03.595Z","etag":null,"topics":["apple-shortcuts","c3","chaos-communication-congress","shortcuts","shortcuts-app"],"latest_commit_sha":null,"homepage":"https://www.icloud.com/shortcuts/acde3f799de84800aa08de88491b71f5","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MaxValue.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-03T21:33:40.000Z","updated_at":"2025-02-03T22:02:15.000Z","dependencies_parsed_at":"2025-02-03T22:33:26.042Z","dependency_job_id":"4513169f-518e-4989-8b5b-df32fb4e5979","html_url":"https://github.com/MaxValue/c3-sos-icalender","commit_stats":null,"previous_names":["maxvalue/c3-sos-icalender"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/MaxValue/c3-sos-icalender","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxValue%2Fc3-sos-icalender","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxValue%2Fc3-sos-icalender/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxValue%2Fc3-sos-icalender/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxValue%2Fc3-sos-icalender/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaxValue","download_url":"https://codeload.github.com/MaxValue/c3-sos-icalender/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxValue%2Fc3-sos-icalender/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29940284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T13:49:17.081Z","status":"ssl_error","status_checked_at":"2026-02-28T13:48:50.396Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple-shortcuts","c3","chaos-communication-congress","shortcuts","shortcuts-app"],"created_at":"2025-02-22T02:33:05.763Z","updated_at":"2026-02-28T15:32:14.110Z","avatar_url":"https://github.com/MaxValue.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Congress Self Organized Session to iOS Calendar\n\n_Creates a calendar event from the content of the info page of a self organized session at the CCC_\n\nAt the moment, the Self Organized Sessions cannot be viewed directly in the Fahrplan app, as in: those cannot be bookmarked in any useful way. So this project came to be to help (at least iOS users) getting those into the own calendar.\n\n[TOC]\n\n## How to use it\n1. Open the info page of a self organized session in Safari\n2. Open the share menu and tap the Shortcut name\n3. The Calendar app opens and shows you the newly created event\n\n## How to install it\n- [Via iCloud](https://www.icloud.com/shortcuts/acde3f799de84800aa08de88491b71f5)\n- [Via RoutineHub](https://routinehub.co/shortcut/21421/)\n- by downloading the the binary Shortcut file from Apple\n    1. [Go to the JSON-description page of the shortcut](https://www.icloud.com/shortcuts/api/records/acde3f799de84800aa08de88491b71f5)\n    2. Find the key \"fields.shortcut.value.downloadURL\" and download that URL\n- by compiling the source Shortcut file yourself and installing it manually\n    - there is the XML source: `C3 SoS to Calendar.xml`\n    - there is the JSON source: `C3 SoS to Calendar.json`\n\n### How the JSON and XML sources were generated\nI used [this gist](https://gist.github.com/0xdevalias/27d9aea9529be7b6ce59055332a94477) for background info\n1. Download the download URL\n3. plutil -convert xml1 -e 'C3 SoS to Calendar.xml' -- 'C3 SoS to Calendar.plist'\n4. plutil -convert json -e 'C3 SoS to Calendar.json' -- 'C3 SoS to Calendar.plist'\n\n## You just came here to get the extraction logic to build your own helper?\n- If you found this because you want to fix the software of the hub: add an ics Button to download an ICS file for the event. Also a JSON-LD document in the page source would be nice.\n- If you found this because you want to fix the software of the Fahrplan: detect SOS pages as part of the schedule and allow bookmarking for those.\n\nThis is what you are looking for:\n```javascript\n// get starting time\nvar timeStartStr = document.querySelector(\".hub-event-details__time\").childNodes[0].nodeValue.trim();\n\n// get ending time\nvar timeEndStr = document.querySelector(\".hub-event-details__time\").childNodes[4].nodeValue.trim();\n\n// get day number\nvar dayStr = document.querySelector(\".hub-event-details__day\").textContent;\nvar day = parseInt(dayStr.replace(/^(Day|Tag) /i, \"\"));\n\n// determine current year\nvar currentYear = parseInt(document.location.pathname.replace(/^\\/congress\\/([0-9]{4})\\//i,\"$1\"));\n\n// build date from day 0 + event day\nvar dateStart = new Date(`${currentYear}-12-26T00:00:00.000+01:00`);\ndateStart.setDate(dateStart.getDate() + day);\nvar dateEnd = new Date(dateStart);\n\n// change times of start date to actual starting time\nvar timeStartSplit = timeStartStr.split(\":\");\ndateStart.setHours(timeStartSplit[0]);\ndateStart.setMinutes(timeStartSplit[1]);\n\n// change times of end date to actual ending time\nvar timeEndSplit = timeEndStr.split(\":\");\ndateEnd.setHours(timeEndSplit[0]);\ndateEnd.setMinutes(timeEndSplit[1]);\n\n// get event title\nvar title = document.querySelector(\".hub-head-main\").textContent.trim();\n\n// get event location\nvar location = document.querySelector(\"main.container.hub-content \u0026gt; article \u0026gt; div.hub-vlayout \u0026gt; div.hub-row.hub-card \u0026gt; div.hub-vlayout-l \u0026gt; div \u0026gt; h2.hub-section-title + div.hub-text\").textContent.trim();\n\n// get event description\nvar description = document.querySelector(\"main.container.hub-content \u0026gt; article \u0026gt; div.hub-vlayout \u0026gt; div.hub-row.hub-card \u0026gt; div.hub-vlayout-l \u0026gt; div.hub-text \u0026gt; section.hub-markdown\").textContent.trim();\n\n// return data to shortcut\ncompletion({\n    \"title\": title,\n    \"location\": location,\n    \"start\": dateStart.toUTCString(),\n    \"end\": dateEnd.toUTCString(),\n    \"url\": document.location.href,\n    \"notes\": description\n});\n```\n\n## Authors\n* **Max Fuxjäger** - *Initial work* - [MaxValue](https://gitlab.com/MaxValue)\n\nSee also the list of [contributors](https://gitlab.com/MaxValue/c3-sos-icalender/-/graphs/main?ref_type=heads) who participated in this project.\n\n## Project History\nI was asked just before 38C3 to create a macro or similar to add SOS to the calendar. At that time I thought it had to be made with ics files and got lost. Some time after 38C3 i needed something to procrastinate with so I finally implemented this Shortcut.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxvalue%2Fc3-sos-icalender","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxvalue%2Fc3-sos-icalender","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxvalue%2Fc3-sos-icalender/lists"}