Skip to content

dhoulder/hwc-routes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HWC routes uploader

See the main script for more details.

Requires Python 3 and several additional packages (see the import statements in the source code), which can be installed with pip

See post-data.md for additional information.

Example usage

Run the script in a command window. Use the -h option to see the command options

david@blackbox:hwc$ ./routes-import.py -h
usage: routes-import.py [-h] [-n] [-v] username excel_file gpx_dir

positional arguments:
  username       HWC login username
  excel_file     Spreadsheet filename
  gpx_dir        Directory containing GPX files

options:
  -h, --help     show this help message and exit
  -n, --dry-run  Log in, check spreadsheet but don't upload anything
  -v, --verbose  Verbose output
david@blackbox:hwc$

To add routes to the HWC database, provide your username, spreadsheet and the directory containing GPX files. The script will prompt for your password.

david@blackbox:hwc$ ./routes-import.py [email protected] test/test.xlsx test/
Password: (enter your HWC web password here)
Created https://www.hobartwalkingclub.org.au/portal/routes/370/ from route 9319 DH test 1
david@blackbox:hwc$

About

HWC routes uploader

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages