Skip to content

Commit

Permalink
Add configurable options for GPSD
Browse files Browse the repository at this point in the history
  • Loading branch information
corvy committed Jul 24, 2024
1 parent 85e1c1e commit d579d69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gpsd2mqtt/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >-
Installation requires you to set up a username and password to publish to MQTT. Also you must select the serial device for GPSD in configuration.
url: https://github.com/corvy/ha-addons/tree/main/gpsd2mqtt
version: "2024.7.0_b4"
version: "2024.7.0_b5"
slug: "gpsd2mqtt"
codenotary: "[email protected]"
init: false
Expand Down Expand Up @@ -35,6 +35,7 @@ schema:
mqtt_username: str?
mqtt_pw: str?
mqtt_state: str?
gpsd_options: str?
debug: bool?
ports:
2947/tcp: null
Expand Down
3 changes: 2 additions & 1 deletion gpsd2mqtt/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
CONFIG_PATH="/data/options.json"
DEVICE=$(bashio::config 'device')
BAUDRATE=$(bashio::config 'baudrate' 9600)
GPSD_OPTIONS="--nowait --readonly --listenany"
GPSD_OPTIONS=$(bashio::config 'gpsd_options')
GPSD_OPTIONS="${GPSD_OPTIONS} --nowait --readonly --listenany"
GPSD_SOCKET="-F /var/run/gpsd.sock"
CHARSIZE=$(bashio::config 'charsize' 8)
PARITY=$(bashio::config 'parity' false)
Expand Down

0 comments on commit d579d69

Please sign in to comment.