2022-01-15 14:40:52 +01:00
|
|
|
Static HTML page with the libregaming matrix spaces
|
|
|
|
The HTML is generated with script.py using the spaces json
|
2022-01-16 20:18:13 +01:00
|
|
|
|
2023-12-01 18:50:18 +01:00
|
|
|
# Update libregamingspaces.json
|
|
|
|
|
|
|
|
Get server baseurl and Access Token from your client e.g. Element -> All settings -> Help & About -> Advanced
|
|
|
|
|
|
|
|
```
|
|
|
|
SERVER=
|
|
|
|
TOKEN=
|
|
|
|
SPACE='!IdUUdKALNzBLKEjvbP:matrix.org'
|
|
|
|
|
|
|
|
URL="$SERVER/_matrix/client/v1/rooms/$SPACE/hierarchy?access_token=$TOKEN"
|
|
|
|
# first call can take about 30s
|
|
|
|
FROM=$(curl "$URL" | tee -a hierarchy.json | jq -r .next_batch); echo $FROM
|
|
|
|
# repeat pagination until "null"
|
|
|
|
FROM=$(curl "$URL&from=$FROM" | tee -a hierarchy.json | jq -r .next_batch); echo $FROM
|
|
|
|
|
|
|
|
jq -s 'map(.rooms) | add' hierarchy.json > libregamingspaces.json
|
|
|
|
./script.py > space.html
|
|
|
|
```
|
|
|
|
|
2022-01-16 20:18:13 +01:00
|
|
|
# License
|
|
|
|
|
|
|
|
Everything on this repository is licensed as CC0
|