Ce commit ajoute un support rudimentaire de space-api: (voir https://spaceapi.io/docs/) Il consiste en deux parties: * un fichier spaceapi/space.json contenant les infos du lol * une mise à jour de status/set-status.sh qui utilise jq pour répercuter les changements de l'état d'ouverture du lolcal TODO: Ajouter nos capteurs (ce n'est pas trivial, amha, il faudra revoir l'architecture du système pour le faire correctement)
31 lines
820 B
JSON
31 lines
820 B
JSON
{
|
|
"api_compatibility": ["15"],
|
|
"space": "Laboratoire Ouvert Lyonnais",
|
|
"logo": "https://labolyon.fr/images/logo_picto.svg",
|
|
"url": "https://labolyon.fr/",
|
|
"location": {
|
|
"address": "7 Place Louis Chazette 69001 Lyon, France",
|
|
"lon": 4.8372366,
|
|
"lat": 45.7732494,
|
|
"country_code": "FR",
|
|
"timezone": "Europe/Paris"
|
|
},
|
|
"contact": {
|
|
"irc": "ircs://irc.geeknode.org:6697/labolyon",
|
|
"ml": "discussions@listes.labolyon.fr",
|
|
"mastodon": "@labolyon@nerdculture.de",
|
|
"matrix": "#general:chat.labolyon.fr"
|
|
},
|
|
"state": {
|
|
"icon": {
|
|
"closed": "https://labolyon.fr/status/status.ferm%C3%A9.png",
|
|
"open": "https://labolyon.fr/status/status.ouvert.png"
|
|
},
|
|
"open": false
|
|
},
|
|
"projects": [
|
|
"https://git.labolyon.fr/",
|
|
"https://wiki.labolyon.fr/"
|
|
]
|
|
}
|