Merge pull request 'main' (#2) from Frontend/Homepage:main into main
Reviewed-on: moke/Homepage#2
BIN
assets/logo.png
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 18 KiB |
|
@ -90,6 +90,9 @@ latest_remote_sha () {
|
||||||
|
|
||||||
# do the build
|
# do the build
|
||||||
build_page() {
|
build_page() {
|
||||||
|
# sync logo with spaceapi
|
||||||
|
./spaceapi.py "$CLONE_DIR"
|
||||||
|
|
||||||
TMPDIR=$(mktemp -d -t hugo_build_XXXXX)
|
TMPDIR=$(mktemp -d -t hugo_build_XXXXX)
|
||||||
|
|
||||||
$HUGO_CMD \
|
$HUGO_CMD \
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
---
|
||||||
|
title: "25.3.23: Tag des offenen Hackspace"
|
||||||
|
slug: tag-des-offenen-hackspace
|
||||||
|
date: 2023-03-13T20:00:00+02:00
|
||||||
|
type: post
|
||||||
|
draft: false
|
||||||
|
categories:
|
||||||
|
- Veranstaltungen
|
||||||
|
tags:
|
||||||
|
- dezentrale
|
||||||
|
- Tag des offenen Hackspace
|
||||||
|
- CCC
|
||||||
|
author: p1ng0ut
|
||||||
|
---
|
||||||
|
Dieses Jahr findet am 25. März zum zweiten Mal der
|
||||||
|
[Tag des offenen Hackspaces](https://www.ccc.de/de/updates/2023/intopenhackerspaces)
|
||||||
|
statt. Über fünfzig Hackerspaces aus Deutschland, der Schweiz und Luxemburg
|
||||||
|
machen mit und öffnen ihre Tore. Die dezentrale beteiligt sich auch an der
|
||||||
|
Initiative des Chaos Computer Club und wir haben dafür ein kleines Programm
|
||||||
|
zusammengestellt.
|
||||||
|
|
||||||
|
Ab 15 Uhr könnt ihr bei uns vorbeikommen und euch bei einem Getränk den Space
|
||||||
|
anschauen und verschiedenen Vorträgen lauschen. Die Vorträge starten ab
|
||||||
|
15:30 Uhr. Solltet ihr selbst noch kleine Themen haben, die ihr präsentierten
|
||||||
|
wollt, ist ab 20 Uhr Platz dafür bei den Lightning Talks.
|
||||||
|
|
||||||
|
### Themen:
|
||||||
|
|
||||||
|
* Rust im Linux Kernel
|
||||||
|
* 10 Designgrundsätze für bessere Nutzerfreundlichkeit von Software, die viel zu oft ignoriert werden
|
||||||
|
* Programmieren lernen mit Kotlin
|
||||||
|
* uvm.
|
|
@ -32,6 +32,12 @@ Hinweis
|
||||||
|
|
||||||
[chaoszone]: https://chaoszone.cz
|
[chaoszone]: https://chaoszone.cz
|
||||||
|
|
||||||
|
|
||||||
|
### 2023
|
||||||
|
|
||||||
|
* _25.03.2023_ -- [Tag des offenen Hackspace]({{< ref "/posts/2023/03/tag-des-offenen-hackspace.md" >}})
|
||||||
|
|
||||||
|
|
||||||
### 2022
|
### 2022
|
||||||
|
|
||||||
* _27.12. - 30.12.2022_ -- [localverse2022: locally distributed chaos experience]({{< ref "/posts/2022/12/localverse2022-fahrplan.md" >}})
|
* _27.12. - 30.12.2022_ -- [localverse2022: locally distributed chaos experience]({{< ref "/posts/2022/12/localverse2022-fahrplan.md" >}})
|
||||||
|
|
|
@ -0,0 +1,60 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
# Python Requirements
|
||||||
|
# python3
|
||||||
|
# requests
|
||||||
|
# shutil
|
||||||
|
|
||||||
|
import requests
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
from typing import List
|
||||||
|
|
||||||
|
path: str = sys.argv[1]
|
||||||
|
api: str = "https://api.dezentrale.cloud/spaceapi/v14"
|
||||||
|
space_open: str = path + "/assets/logo_open"
|
||||||
|
space_closed: str = path + "/assets/logo_closed"
|
||||||
|
space_unknown: str = path + "/assets/logo_unknown"
|
||||||
|
space_logo: str = path + "/assets/logo"
|
||||||
|
|
||||||
|
extensions: List[str] = [".png", ".svg"]
|
||||||
|
|
||||||
|
# every extension needs to be linked
|
||||||
|
def link(src: str, dest: str):
|
||||||
|
for ext in extensions:
|
||||||
|
try:
|
||||||
|
os.symlink(src + ext, dest + ext)
|
||||||
|
print("linked " + dest + ext + " to " + src + ext)
|
||||||
|
except:
|
||||||
|
print("cannot link " + dest + ext + " to " + src + ext)
|
||||||
|
|
||||||
|
def delete(file: str):
|
||||||
|
for ext in extensions:
|
||||||
|
try:
|
||||||
|
os.remove(file + ext)
|
||||||
|
print("deleted " + file + ext)
|
||||||
|
except:
|
||||||
|
try:
|
||||||
|
os.unlink(file + ext)
|
||||||
|
print("unlinked "+ file + ext)
|
||||||
|
except:
|
||||||
|
print(file + ext + " is already deleted and unlinked")
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
delete(space_logo)
|
||||||
|
try:
|
||||||
|
resp: requests.Response = requests.get(api)
|
||||||
|
resp_dict: dict = resp.json()
|
||||||
|
|
||||||
|
door_open: bool = resp_dict.get("state").get("open")
|
||||||
|
print(door_open)
|
||||||
|
|
||||||
|
path = ""
|
||||||
|
if door_open:
|
||||||
|
path = space_open
|
||||||
|
else:
|
||||||
|
path = space_closed
|
||||||
|
# the linking seems to be the wrong way around, but it links correct
|
||||||
|
# the link is pointing from dest to src (https://docs.python.org/3/library/os.html)
|
||||||
|
link(path, space_logo)
|
||||||
|
except:
|
||||||
|
link(space_unknown, space_logo)
|