spaceapi: Moves calendar into feeds
Co-authored-by: h7x4 <h7x4@nani.wtf>
This commit is contained in:
parent
c6df8e6ae3
commit
a7a69ca2ac
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue