diff --git a/www/spaceapi.php b/www/spaceapi.php index 0faadbb..cb4709e 100644 --- a/www/spaceapi.php +++ b/www/spaceapi.php @@ -15,6 +15,9 @@ $doorEntry = (object)($door->getCurrent()); "logo": "https://git.pvv.ntnu.no/Drift/pvv-nixos-config/raw/branch/main/assets/logo_blue_regular.png", "url": "https://www.pvv.ntnu.no/", "location": { + "ext_campus": "NTNU Gløshaugen", + "ext_room_name": "Oppredning/Gruvedrift, Floor 2, Room 247", + "ext_mazemap": "https://link.mazemap.com/2n2HWa7H", "address": "Sem Sælands vei 1, 7034 Trondheim, Norway", "timezone": "Europe/Oslo", "lon": 10.242, @@ -30,12 +33,17 @@ $doorEntry = (object)($door->getCurrent()); "issue_report_channels": ["email"], "state": { "open": open ? "true" : "false"); ?>, - "lastchange": time ? $doorEntry->time : 0); ?> + "lastchange": time ? $doorEntry->time : 0); ?>, + "message": "open ? "open for public, members are present" : "closed"); ?>" }, "feeds": { "wiki": { "type": "atom", "url": "https://www.pvv.ntnu.no/w/api.php?hidebots=1&urlversion=1&action=feedrecentchanges&feedformat=atom" + }, + "calendar": { + "type": "html", + "url": "https://www.pvv.ntnu.no/hendelser/" } }, "projects": [ @@ -44,11 +52,6 @@ $doorEntry = (object)($door->getCurrent()); "https://www.pvv.ntnu.no/prosjekt/" ], "links": [ - { - "name": "Events", - "url": "https://www.pvv.ntnu.no/hendelser/", - "description": "Upcoming events at Programvareverkstedet" - }, { "name": "YouTube", "url": "https://www.youtube.com/@pvvntnu5640"