mirror of
https://github.com/ALLFATHER-BV/wadamesh.git
synced 2026-07-11 13:18:48 +00:00
5efaefbf7f
The firmware fetches map tiles as .jpg, but the tiles.wadamesh.com proxy was a
plain PNG passthrough (no .jpg handler) -> every Wi-Fi tile fetch 404'd. Add the
transcode service (tile-transcode.py on 127.0.0.1:5005, fetches OSM PNG and
re-encodes JPEG with Pillow) + its systemd unit, and update the nginx vhost to
proxy /{z}/{x}/{y}.jpg and /elev to it while keeping the legacy .png passthrough.
Same design as the meshcomod tile proxy. HTTP-only by design (device can't TLS).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
19 lines
550 B
Desktop File
19 lines
550 B
Desktop File
[Unit]
|
|
Description=wadamesh tile transcode service (OSM PNG -> JPEG for touch firmware)
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=/opt/wadamesh-tiles
|
|
# Runs from a venv so it doesn't depend on the system Python's package set.
|
|
# Falls back to /usr/bin/python3 if the venv isn't present (see deploy notes).
|
|
ExecStart=/opt/wadamesh-tiles/venv/bin/python /opt/wadamesh-tiles/tile-transcode.py
|
|
Restart=on-failure
|
|
RestartSec=3
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|