Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GPS plugin to allow connecting to GPSD #36

Merged
merged 1 commit into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pwnagotchi/defaults.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ main.plugins.net-pos.api_key = "test"

main.plugins.gps.enabled = false
main.plugins.gps.speed = 19200
main.plugins.gps.device = "/dev/ttyUSB0"
main.plugins.gps.device = "/dev/ttyUSB0" # for GPSD: "localhost:2947"

main.plugins.webgpsmap.enabled = false

Expand Down
2 changes: 1 addition & 1 deletion pwnagotchi/plugins/default/gps.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def on_loaded(self):
logging.info(f"gps plugin loaded for {self.options['device']}")

def on_ready(self, agent):
if os.path.exists(self.options["device"]):
if os.path.exists(self.options["device"]) or ":" in self.options["device"]:
logging.info(
f"enabling bettercap's gps module for {self.options['device']}"
)
Expand Down