Mercurial > lbo > hg > geohub
changeset 90:82fab30c0d7a
track_ICE: Fix interval flag processing
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Tue, 08 Dec 2020 19:13:50 +0100 |
parents | 087ee6c6b7f6 |
children | 18e5120ba5e5 |
files | examples/track_ICE/collect.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/examples/track_ICE/collect.py Tue Dec 08 17:23:02 2020 +0100 +++ b/examples/track_ICE/collect.py Tue Dec 08 19:13:50 2020 +0100 @@ -34,7 +34,7 @@ parser.add_argument('--api', default='https://iceportal.de/api1/rs/status', help='Location of train API') parser.add_argument('--client', default='', help='Client name. By default, this will be the `tzn` (train number) of the current train.') parser.add_argument('--secret', default='', help='Secret. This protects your current location; to share it, you have to share the secret. By default, the points will be made public on your GeoHub instance.') - parser.add_argument('--interval', default=5, help='Poll interval') + parser.add_argument('--interval', default=5, type=int, help='Poll interval') parser.add_argument('--outfile', default='traindata.jsonlines', help='Where to write the JSON data received from the train.') parser.add_argument('--geohub_host', default='example.com', help='Host of your GeoHub. Use this if the URL --geohub works for you.') parser.add_argument('--geohub_scheme', default='https', help='Protocol scheme of the GeoHub instance. Use this if you do not want to specify the entire --geohub URL')