Gps logger not working

Hello!

I noticed that my gps logger wasn’t working anymore.
I get this error:

Error handling request
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py”, line 381, in start
resp = await self._request_handler(request)
File “/usr/lib/python3.6/site-packages/aiohttp/web_app.py”, line 310, in _handle
resp = await handler(request)
File “/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py”, line 88, in impl
return await handler(request)
File “/usr/lib/python3.6/site-packages/homeassistant/components/http/static.py”, line 68, in staticresource_middleware
return await handler(request)
File “/usr/lib/python3.6/site-packages/homeassistant/components/http/real_ip.py”, line 27, in real_ip_middleware
return await handler(request)
File “/usr/lib/python3.6/site-packages/homeassistant/components/http/ban.py”, line 68, in ban_middleware
return await handler(request)
File “/usr/lib/python3.6/site-packages/homeassistant/components/http/auth.py”, line 52, in auth_middleware
return await handler(request)
File “/usr/lib/python3.6/site-packages/homeassistant/components/http/view.py”, line 104, in handle
result = await result
File “/usr/lib/python3.6/asyncio/coroutines.py”, line 210, in coro
res = func(*args, **kw)
File “/usr/lib/python3.6/site-packages/homeassistant/components/device_tracker/gpslogger.py”, line 86, in get
accuracy = int(float(data[‘accuracy’]))
ValueError: could not convert string to float: ‘�C’

But when I remove all the parameters except for LAT, LONG and device it works…
Thing is that I need it for my battery status…

Any idea’s?

1 Like

Looks like the error is for the accuracy, so try removing just that from the custom url. TBH, you probably really only need lat,lon,bat, & device.

I tried that, but it only works with lat, long, and device. If I add any of the other params, I get a error 500 from the API.

I also got this error this morning:

Log Details (WARNING) Fri Apr 06 2018 08:27:25 GMT+0200 (CEST)

Could not parse gps value for tom: (’%LAT’, ‘%LON’)

See if this helps

I google before creating this thread, I saw you post but didn’t fix it for me :frowning:

Any updates with this? I’m having the same problem (except using python 3.5). Could it be some locale thing?

Ive got the same issue anything after LON& fails:
/api/gpslogger?latitude=%LAT&longitude=%LON&

Any progress or is it still not working for you? “The same Could not parse gps value for [devicename]: (’%LAT’, ‘%LON’)” error?

If I don’t remove direction, speed and altitude the test fails in GPSLogger app. And without them I get the fault message about unable to parse gps value. Same as you´re experiencing?

I’m also having issues. I have it set up correctly, I think, but when i try sending a custom query via browser, it looks ok, i see the followign in logs:

2018-08-31 11:56:13 INFO (MainThread) [homeassistant.components.http.view] Serving /api/gpslogger to 10.32.0.33 (auth: True)
2018-08-31 11:57:15 INFO (MainThread) [homeassistant.components.http.view] Serving /api/gpslogger to 10.32.0.33 (auth: True)
2018-08-31 11:57:23 INFO (MainThread) [homeassistant.components.http.view] Serving /api/gpslogger to 10.32.0.33 (auth: True)

I get a download in my browser with the following contents:
Setting location for FA6BJ0303994

but no gps device shows up in current states.