Get latitude and longitude automatically
This commit is contained in:
parent
ff76322a82
commit
2886ca7192
4 changed files with 36 additions and 63 deletions
|
@ -3,8 +3,9 @@
|
|||
* About
|
||||
The scripts in this repository take information from a structured set of =.org= files and use them to build static webpages that track various activities (so far, gaming and travelling). These pages can be used as a replacement for third-party services e.g. Backloggery.
|
||||
* Dependencies
|
||||
- =python3=
|
||||
- =geopy= if you are tracking places visited (install via pip)
|
||||
- =orgparse= (install via pip)
|
||||
- =python3=
|
||||
- =rclone= (for syncing to the server)
|
||||
* General setup
|
||||
** Structure of the .org files
|
||||
|
@ -40,8 +41,8 @@ In =variables.py=, edit:
|
|||
- =placestartyear=: year from which to begin tracking (an integer)
|
||||
- =placecss=: location of the CSS file you wish to apply, relative to the site root
|
||||
** Testing
|
||||
- Run =python3 generateplaces.py local= to build in =placebuild=.
|
||||
- If new places have been added since the last build, they will be added to =places.py= and the terminal will signal this. Add the latitude and longitude for these places in =places.py= before building again.
|
||||
- Run =python3 generateplaces.py local= to build in =placebuild=. (This may take some time.)
|
||||
- Check whether places are displayed accurately in the output file. If not, add regions/countries to disambiguate any incorrectly displayed places to the =disambig= dictionary in =variables.py= (see examples).
|
||||
* First run (or if adding any new trackers)
|
||||
- Run =python3 init.py= and then =chmod +x build.sh=.
|
||||
- Create directories on the server corresponding to any =*serverpath= variables you have set.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue