Beautiful map using those awesome free and open-source softwares:
- GPSLogger
- Leaflet
- Leaflet.Terminator (day/night regions)
- leaflet-ui (UI)
For each hiking adventure, GPS traces & medias will be stored into the "traces" folders. You don't have to deal with those folders.
If you need to set a timezone different from Europe/Paris, then create the traces/tz.txt
file with the content of the expected timezone.
For instance, an adventure taking place in the North of the New Zealand, the appropriate timezone would be Pacific/Auckland. For that example, you would put Pacific/Auckland
into the traces/tz.txt
file.
Copy all files from the host
folder to the PythonAnywhere hosting account.
Details:
- Python version:
3.10
- Force HTTPS: enabled
- Web app type: Bottle
Several endpoints are protected by a user/password combination.
Credentials are to be set in the host/basic_auth.txt
file using that format: user:password
.
$ python3.11 -m venv venv
$ . venv/bin/activate
$ python -m pip install -U pip
$ python -m pip install -r requirements-dev.txt
$ ./checks.sh
$ python -m pytest
$ python server.py