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.
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
* Dependencies
- =python3=
- =geopy= if you are tracking places visited (install via pip)
- =orgparse= (install via pip)
- =orgparse= (install via pip)
- =python3=
- =rclone= (for syncing to the server)
- =rclone= (for syncing to the server)
* General setup
* General setup
** Structure of the .org files
** Structure of the .org files
@ -40,8 +41,8 @@ In =variables.py=, edit:
- =placestartyear=: year from which to begin tracking (an integer)
- =placestartyear=: year from which to begin tracking (an integer)
- =placecss=: location of the CSS file you wish to apply, relative to the site root
- =placecss=: location of the CSS file you wish to apply, relative to the site root
** Testing
** Testing
- Run =python3 generateplaces.py local= to build in =placebuild=.
- Run =python3 generateplaces.py local= to build in =placebuild=. (This may take some time.)
- 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.
- 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)
* First run (or if adding any new trackers)
- Run =python3 init.py= and then =chmod +x build.sh=.
- Run =python3 init.py= and then =chmod +x build.sh=.
- Create directories on the server corresponding to any =*serverpath= variables you have set.
- Create directories on the server corresponding to any =*serverpath= variables you have set.