Actually this is for personal use
3
build.sh
Executable 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
After Width: | Height: | Size: 8.6 KiB |
BIN
build/games/3DS.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
build/games/B.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
build/games/C.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
build/games/E.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
build/games/NDS.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
build/games/PC.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
build/games/PS2.png
Normal file
After Width: | Height: | Size: 885 B |
BIN
build/games/PS3.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
build/games/PS5.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
build/games/Switch.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
build/games/UF.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
build/games/UP.png
Normal file
After Width: | Height: | Size: 15 KiB |
1188
build/games/backloggery.css
Normal file
BIN
build/games/nowplaying.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
build/games/paused.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
1008
generate.py
Normal file
25
placegen.py
Normal 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
|
@ -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=.
|