wreuvers
(Wayne Reuvers)
January 24, 2022, 9:31pm
21
Hi
I have HA on a RPi4+ on my yacht. I want it to be the GPS for WorldTides and other.
So I plugged a GPS Dongle into it and tried the instructions as per
But I have the same issue mentioned - it errors with
-bash: sudo: command not found
Any help would be greatly appreciated.
Thanks
Wayne
jbnimble
(Jesse)
February 21, 2022, 7:38pm
22
I documented how I did something similar. I had to use 2 rPI’s, one for HAOS and one for gpsd. Unless you use docker containers in HAOS I don’t believe you can use apt
in HAOS. I had 2 rpi’s laying around, so ended up going this route.
Project
The location of the home assistant install is on a mobile platform (examples: boat, RV, vehicle), and the desired outcome was to dynamically update the Home on the Map as the physical location changed.
Hardware Setup
WiFi/Network Router
raspberry PI (rpi_haos) with network cable to router
raspberry Pi (rpiclient) with network cable to router
USB GPS compatible with gpsd connected to rpiclient
Software Setup
rpiclient has Raspberry PI OS configured with gpsd and python3 with these p…
hymerq
July 7, 2022, 7:31pm
23
If your /etc/os-release tells you that you’re running Alpne Linux the correct command for installing gpsd is: “apk add gpsd”
I have just tested the install process on my home setup on VMware - which dosen’t have a GPS - I’ll check on my Raspberry Pi in our caravan tomorrow.
hymerq
July 9, 2022, 7:10pm
24
Installation works also on RPi… I am not sure if there is data coming but that’s next step.
corvy
(Corvy)
June 19, 2023, 10:27pm
25
Just FYI, here is an addon to accomplish the same
This is a gpsd — a GPS service daemon to MQTT Home Assistant Addon.
This addon will run gpsd and serve the data to MQTT and show a device tracker device (device_tracker.gpsd_location). The addon has been tested with Mosquitto MQTT addon but can also be configued to use another broker if wanted. The idea is to update the home zone in Home Assistant with the actual position from gpsd, in order to run automations based on actual position. Perfect for installations of Home Assistant in cars, carava…