Your laptop moves. It does not stay at home.
Geoclue is installed and activated by default with tumbleweed.
Default settings in /etc/geoclue/geoclue.conf is good. No need to alter the default settings.
You need to install gpsd and gpsd utilities.
You need to plug a GNSS receiver, for example this one
or this one
create a script with these statements
#!/bin/bash
busybox nc -ll -p 2948 -e gpspipe -Br &
avahi-publish -s 'GNSS data in style of NMEA-0183' _nmea-0183._tcp 2948 accuracy=exact &
In kde add this script as connecting scrip according to execute it when you connect to your profile.
You can check in a text console it works with
cgps -s
or with a graphical tool “xgps”
That’s all. Enjoy.
my experiment :
- it may take some minutes, some hours, a day (!) to get a localization.
- localization may be randomly accurate or very bad
- with Firefox wait for 15 s to 30 s
- with this receiver, the result is better, surely because of a bigger antenna
DIYmalls VK-162 G-Mouse USB GPS Dongle Navigation Externe Récepteur Antenne pour Raspberry Pi Windows Google Earth : Amazon.fr: High-Tech
Surely it is because my home is made of concrete and my receiver is a bad quality one.
If someone know a great quality GNSS receiver, thanks.
Is there a Linux compliant GNSS receiver list ?
You can mix this solution to this one
https://forums.opensuse.org/t/howto-for-a-desktop-not-a-laptop-getting-a-localization-with-firefox/