Skip to content

Commit

Permalink
set timeout on gpsd
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Jul 8, 2024
1 parent 5f6edf5 commit 845e09a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/pixljs_alert/zero_ble.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def get_rpi_status():
break
except subprocess.CalledProcessError as e:
pass
with GPSDClient() as client:
with GPSDClient(timeout=1) as client:
for result in client.dict_stream(convert_datetime=True, filter=["TPV"]):
gpdsdout = "%.7s %.7s" % (result.get("lat", "n/a"), result.get("lon", "n/a"))
break
Expand Down

0 comments on commit 845e09a

Please sign in to comment.