spaceapi: Moves calendar into feeds

Co-authored-by: h7x4 <h7x4@nani.wtf>
This commit is contained in:
Felix Albrigtsen 2024-05-14 19:53:35 +02:00 committed by h7x4
parent c6df8e6ae3
commit a7a69ca2ac
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 9 additions and 6 deletions

View File

@ -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", "logo": "https://git.pvv.ntnu.no/Drift/pvv-nixos-config/raw/branch/main/assets/logo_blue_regular.png",
"url": "https://www.pvv.ntnu.no/", "url": "https://www.pvv.ntnu.no/",
"location": { "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", "address": "Sem Sælands vei 1, 7034 Trondheim, Norway",
"timezone": "Europe/Oslo", "timezone": "Europe/Oslo",
"lon": 10.242, "lon": 10.242,
@ -30,12 +33,17 @@ $doorEntry = (object)($door->getCurrent());
"issue_report_channels": ["email"], "issue_report_channels": ["email"],
"state": { "state": {
"open": <?php echo($doorEntry->open ? "true" : "false"); ?>, "open": <?php echo($doorEntry->open ? "true" : "false"); ?>,
"lastchange": <?php echo($doorEntry->time ? $doorEntry->time : 0); ?> "lastchange": <?php echo($doorEntry->time ? $doorEntry->time : 0); ?>,
"message": "<?php echo($doorEntry->open ? "open for public, members are present" : "closed"); ?>"
}, },
"feeds": { "feeds": {
"wiki": { "wiki": {
"type": "atom", "type": "atom",
"url": "https://www.pvv.ntnu.no/w/api.php?hidebots=1&urlversion=1&action=feedrecentchanges&feedformat=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": [ "projects": [
@ -44,11 +52,6 @@ $doorEntry = (object)($door->getCurrent());
"https://www.pvv.ntnu.no/prosjekt/" "https://www.pvv.ntnu.no/prosjekt/"
], ],
"links": [ "links": [
{
"name": "Events",
"url": "https://www.pvv.ntnu.no/hendelser/",
"description": "Upcoming events at Programvareverkstedet"
},
{ {
"name": "YouTube", "name": "YouTube",
"url": "https://www.youtube.com/@pvvntnu5640" "url": "https://www.youtube.com/@pvvntnu5640"