Replace host_ip, host_port, your_username, your_password by your credentials. You can change the refresh delay in seconds after sleep command.
Then in QGIS, add a delimited text file layer, choose /tmp/owntracks.txt, comma separated, and declare field_3 as X and field_4 as Y, CRS EPSG:4326-WGS 84.
Dot showing your friends should now appear in an owntracks layer. In the layer property, add a tag for field_1, and in rendering, tick to reload the layer every 60 s for example.
I was wondering how to watch my friends location on a map displayed by QGIS.
If you have a Linux computer, it is quite easy actually.
You should have
jq
andmosquitto-clients
installed. To do this use your package manager, or, for Debian-Ubuntu-Mint like distros, type in a terminal :Then type in a terminal :
Replace host_ip, host_port, your_username, your_password by your credentials. You can change the refresh delay in seconds after sleep command.
Then in QGIS, add a delimited text file layer, choose /tmp/owntracks.txt, comma separated, and declare field_3 as X and field_4 as Y, CRS EPSG:4326-WGS 84.
Dot showing your friends should now appear in an owntracks layer. In the layer property, add a tag for field_1, and in rendering, tick to reload the layer every 60 s for example.