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",
|
||||
"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"
|
||||
|
|
Loading…
Reference in New Issue