Author SHA1 Message Date
epickiwi 745fb81db9 Merge pull request 'Ajout de la permanence du samedi de 14h à18h' (#4) from nouvelle-perm into main
Reviewed-on: #4
2026-10-06 08:12:43 +00:00
epickiwi f4bd1a1f74 Ajout de la permanence du samedi de 14h à18h 2026-10-04 09:48:34 +02:00
epickiwi 75789ff6a8 Suppression de l'affiche drags and nerds 2026-08-06 15:30:13 +02:00
epickiwi 2fc2fed5f1 Suppression lien presentation 2026-03-28 15:46:33 +01:00
epickiwi 4ba7494fd7 Merge branch 'ajout-description' 2026-03-28 15:45:40 +01:00
epickiwi 471f0e993d Fini la trixie release party 2026-03-28 15:44:48 +01:00
epickiwi bcef3d80f0 Pas de retour a la ligne dans le nav 2026-03-28 15:44:43 +01:00
mirsal 87bf475e8d spaceapi: Signalement de compatibilité avec la version 14 2025-12-11 09:16:51 +00:00
mirsal 0cd5df6fb8 Merge pull request 'Support initial de space-api' (#2) from space-api into main
Reviewed-on: #2
Reviewed-by: Vincent F. <vincent@noreply.localhost>
2025-12-10 20:43:17 +01:00
mirsal 1834dec5b1 Support initial de space-api
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)
2025-12-10 19:36:52 +00:00
4 changed files with 53 additions and 6 deletions

No files matched your search

+4
View File
@@ -393,6 +393,10 @@ main > aside {
text-decoration: none !important;
}
#main-nav > a {
display: inline-block;
}
/* Affiches */
.affiche {
+13 -6
View File
@@ -44,7 +44,6 @@
<a property="url" href="https://listes.infini.fr/listes.labolyon.fr/subscribe/discussions">Liste de diffusion</a>
<a property="url" href="https://nerdculture.de/@labolyon">Fédiverse</a>
<a property="url" href="https://matrix.to/#/#general:chat.labolyon.fr">Salon Matrix</a>
<a property="url" href="/presentation.html">Présentation</a>
</nav>
</header>
@@ -112,15 +111,23 @@
<p>On parle technique mais aussi logiciel libre, hacking, de nos projets personnels ou collectifs</p>
</div>
<p class="event-hours"><strong><span property="eventSchedule" typeof="Schedule">
Tous les <data property="byDay" content="Tuesday">mardis</data> à partir de&nbsp;<data property="startTime" content="19:00">19h</data>
</span><br/>
<p>
<span class="event-hours"><strong><span property="eventSchedule" typeof="Schedule">
Tous les <data property="byDay" content="Tuesday">mardis</data> à partir de&nbsp;<data property="startTime" content="19:00">19h</data>
</span></strong></span><br/>
et<br/>
<span class="event-hours"><strong><span property="eventSchedule" typeof="Schedule">
Tous les <data property="byDay" content="Saturday">samedis</data> de <data property="startTime" content="14:00">14h</data> à <data property="endTime" content="19:00">19h</data>
</span></strong></span><br/>
au <span property="location" href="https://labolyon.fr/">local du LOL</span></strong></p>
<p>Adhésion conseillée (prix libre)</p>
</article>
<article class="event affiche affiche-drags-nerds-hackathon">
<!--<article class="event affiche affiche-drags-nerds-hackathon">
<style>
@font-face {
font-family: "Press Start 2P";
@@ -232,7 +239,7 @@
Inscrivez vous en envoyant un email à<br/><a href="mailto:drags-nerds@epickiwi.fr">drags‑nerds@epickiwi.fr</a><br/>
Ou rendez vous sur <a href="https://drags-nerds.net/" target="_blank">drags‑nerds.net</a>
</p>
</article>
</article>-->
<!--<article class="event affiche affiche-debian-release-party" property="event" typeof="Event">
<style>
+30
View File
@@ -0,0 +1,30 @@
{
"api_compatibility": ["14", "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/"
]
}
+6
View File
@@ -8,10 +8,16 @@ if [ "$#" = "0" ]; then
exit 1
fi
SPACE_JSON=/var/www/html/spaceapi/space.json
if [ "$1" = "opened" ]; then
ln -sf "index.ouvert.html" "/var/www/html/status/index.html"
jq "setpath([\"state\", \"open\"]; true) | setpath([\"state\", \"lastchange\"]; $(date +%s))" < $SPACE_JSON > $SPACE_JSON.new &&
mv -f $SPACE_JSON.new $SPACE_JSON
fi
if [ "$1" = "closed" ]; then
ln -sf "index.fermé.html" "/var/www/html/status/index.html"
jq "setpath([\"state\", \"open\"]; false) | setpath([\"state\", \"lastchange\"]; $(date +%s))" < $SPACE_JSON > $SPACE_JSON.new &&
mv -f $SPACE_JSON.new $SPACE_JSON
fi