Actually this is for personal use

This commit is contained in:
mez 2025-04-27 12:16:13 +01:00
parent 8562d9f2bf
commit a0cb496ffc
20 changed files with 2229 additions and 0 deletions

3
build.sh Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
python3 generate.py
rclone copy build prazevps:/var/www/tre/public/trackers/ -P

BIN
build/games/360.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

BIN
build/games/3DS.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
build/games/B.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
build/games/C.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
build/games/E.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
build/games/NDS.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
build/games/PC.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
build/games/PS2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 885 B

BIN
build/games/PS3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
build/games/PS5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

BIN
build/games/Switch.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
build/games/UF.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
build/games/UP.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

1188
build/games/backloggery.css Normal file

File diff suppressed because it is too large Load diff

BIN
build/games/nowplaying.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
build/games/paused.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

1008
generate.py Normal file

File diff suppressed because it is too large Load diff

25
placegen.py Normal file
View file

@ -0,0 +1,25 @@
import time
from geopy.geocoders import Nominatim
geo = Nominatim(user_agent="python3")
place = input("Place to look up: ")
lat = None
while lat == None:
try:
lat = geo.geocode(place).latitude
except:
time.sleep(3)
continue
thelong = None
while thelong == None:
try:
thelong = geo.geocode(place).longitude
except:
time.sleep(3)
continue
print("{\"lookup\":\"" + place + "\",\"lat\":" + str(lat) + ",\"long\":" + str(thelong) + "}")

5
readme.org Normal file
View file

@ -0,0 +1,5 @@
=secrets.py= should contain ~orgpath = "full path to journal root directory"~.
=placelist.py= should contain ~disambig = {"bowness":"westmorland"}~ etc. and ~places = [{"lookup":"aberystwyth","lat":52.4143113,"long":-4.0816846}]~ etc. (ideally symlinked from personal files).
Run =placegen.py= for any new places (should be flagged by the generate script) and add them to =places= in =placelist.py=.