Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ckuethe/webcpgs
https://github.com/ckuethe/webcpgs
gpsd gpsd-client
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ckuethe/webcpgs
- Owner: ckuethe
- License: mit
- Created: 2024-06-06T01:34:12.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-12T04:09:01.000Z (6 months ago)
- Last Synced: 2024-12-09T12:14:47.165Z (about 1 month ago)
- Topics: gpsd, gpsd-client
- Language: Python
- Homepage:
- Size: 313 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# webcgps
[gpsd](https://gpsd.io) isn't the easiest thing to monitor from a phone, and I needed to check the state of the GPS on a little IoT thing I built.
Here's a hacky little python script to roughly approximate the output of `cgps`, but in a web page.NB: in the same way that `gpsd` only listens to localhost by default, this server also only listens on localhost by default.
```
usage: webcgps.py [-h] [-g GPSD] [-i SEC] [-l LISTEN] [-p PORT] [-t SEC] [-v]options:
-h, --help show this help message and exit
-g GPSD, --gpsd GPSD [gpsd://localhost:2947/dev/ttyACM0]
-i SEC, --web-refresh-interval SEC how often the web page updates in seconds [2.0]
-l LISTEN, --listen LISTEN [127.0.0.1]
-p PORT, --port PORT [4773]
-t SEC, --timeout SEC GPSD socket timeout in seconds [3]
-v, --verbose [0]
```![Web GPS vs curses cgps](webcgps_vs_cgps.jpg?raw=true "WebGPS comparison")