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 0542a10d03
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 10 additions and 7 deletions

View File

@ -12,9 +12,12 @@ $doorEntry = (object)($door->getCurrent());
{
"api_compatibility": ["14"],
"space": "Programvareverkstedet",
"logo": "https://git.pvv.ntnu.no/Drift/pvv-nixos-config/raw/branch/main/assets/logo_blue_regular.png",
"logo": "https://git.pvv.ntnu.no/assets/img/logo.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": <?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": {
"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"