Mercurial > lbo > hg > geohub
changeset 102:b41635cf42e1
track_ICE: Fix URL parameter
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sat, 12 Dec 2020 16:55:47 +0100 |
parents | 25f3c00ea12e |
children | d84de437f00c |
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 Sat Dec 12 09:09:25 2020 +0100 +++ b/examples/track_ICE/collect.py Sat Dec 12 16:55:47 2020 +0100 @@ -21,7 +21,7 @@ def send_point(args, info: dict[str, str]): geohub_templ = args.geohub + '/{CLIENT}/log?secret={SECRET}' geohub_url = geohub_templ.format(HOST=args.geohub_host, CLIENT=args.client or info.get('tzn', 'TRAIN'), SECRET=args.secret, PROTOCOL=args.geohub_scheme) - additional = '&lat={lat}&longitude={long}&spd={spd}&time={ts}'.format( + additional = '&lat={lat}&longitude={long}&s={spd}&time={ts}'.format( lat=info['latitude'], long=info['longitude'], spd=info['speed'], ts=format_server_time(info['serverTime'])) # Delete unnecessary data. for k in ['latitude', 'longitude', 'speed', 'serverTime']: