So I’m trying to use GPSLogger in my HA set-up. I have the following in my config file:
device_tracker:
- platform: ddwrt
host: myIP
username: myusrname
password: !secret api_psk
interval_seconds: 5
- platform: gpslogger
I have also installed GPS logger on my phone, configured per the settings as described by the component page (including the custom URL) which I have formatted as follows:
https://mydomain.duckdns.org/api/gpslogger?latitude=%LAT&longitude=%LON&device=%SER&accuracy=%ACC&battery=%BATT&speed=%SPD&direction=%DIR&altitude=%ALT&provider=%PROV&activity=%ACT&api_password=myPassword
However, I cannot seem to get the message to successfully send. GPSLogger says “Error while executing… Could not send to custom URL”.
I imagine this is an issue with how I formatted the URL in GPSLogger. Any help would be great.
Thanks.
Is your HA instance http or https? I could never get secure to work so when I setup gpslogger I had to set mine as ‘http://’.
Currently, my instance is HTTPS. I’d really rather not change my HA instance to HTTP if I don’t have to. Bummer if that’s the only way.
I don’t think it is, just how mine had to be. I struggled with https for 2 weeks then gave up. I was just hoping it was an easy fix for you.
Do you use the default port as well? I use an alternative port for access so i have to include it in everything I do.
Yeah, I’m using default ports.
@danny4213 which instructions did you use to setup gpslogger?
This may seem like a strange question (pardon my noobishness) but what exactly is the username in this case:
https://username:[email protected] /api/gpslogger?latitude=%LAT&longitude=%LON&battery=%BATT&device=%SER&accuracy=%ACC
Is it just hass or homeassistant?
1 Like
That is typically the username and password of an account on the webserver you would use to frontend the https connection on the raspberry pi. Please see here: http://www.routereflector.com/2016/10/exposing-home-assistant-in-a-secure-way/
Again, that is how I have it setup using the instructions on that page…There could be many other ways to set it up…
@danny4213 did you solve your problem? If yes how?
danny4213
(Danny)
January 29, 2018, 12:23am
12
@Rodolfo_Vieira No I did not, sorry.
maison
(totot301)
January 30, 2018, 6:36am
13
Same issue using gpslogger with duckdns (we can conclude https is not working with gps logger )
@maison try zanzito its working for me.
@danny4213 I just switched from Zanzito to GPS Logger, and I can assure you it works with https!
You URL looks correct (as long as there are no line breaks and it is one long continuous line). Verify your config has your api password as well:
- platform: gpslogger
password: !secret http_password
This is the same password you use to log into your Home Assistant GUI.
You can name your device if you want; just replace %SER
with your_device_name
in the URL. Then, in known_devices.yaml, just change name:
under your_device_name:
to a friendly name.
1 Like
toonazd
(neil)
February 1, 2018, 5:25pm
16
I have both zanzito and GPS logger working with zones, don’t forget to add port number in GPS config, if on hassio its hustle 8123 with duckdns
If you are using https on 443, you don’t need the port as that is the standard port for https.
toonazd
(neil)
February 1, 2018, 8:05pm
18
Yep this is true, cheers mate.
maison
(totot301)
February 16, 2018, 5:31am
19
hello,
could you explain how do you use zanzito in the GPS logger configuration ?
I don’t find any documentation to use zanzito with gps logger or as a GPS logger ?
I m using Home assistant 0.63.0 with duckdns and let’s encrypt deydrated to generate certificats
from the gps logger I tried this
https://username:[email protected] /api/gpslogger?latitude=%LAT&longitude=%LON&battery=�TT&device=%SER&accuracy=�C
where username is the user name of home assistant user running hass service
mypassword is the home assistant server password
mydomain is the http adresse make home assistant reachable from internet external network
So far I can’t make it work
tha,ks for help
Hello friend. I dont know if i understand your question… Because zanzito is one app, and gps logger other. Which one do you want to use?