Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frafra/frakegps
Simulate a simple GPS device with gpsd or geoclue2
https://github.com/frafra/frakegps
geoclue2 gpsd leaflet nmea rust tauri wry
Last synced: 4 months ago
JSON representation
Simulate a simple GPS device with gpsd or geoclue2
- Host: GitHub
- URL: https://github.com/frafra/frakegps
- Owner: frafra
- License: gpl-3.0
- Created: 2019-05-25T22:58:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-25T08:22:59.000Z (over 1 year ago)
- Last Synced: 2024-09-30T04:06:12.912Z (4 months ago)
- Topics: geoclue2, gpsd, leaflet, nmea, rust, tauri, wry
- Language: Rust
- Homepage: https://crates.io/crates/frakegps
- Size: 94.7 KB
- Stars: 26
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![master](https://github.com/frafra/frakegps/actions/workflows/rust.yml/badge.svg?branch=master)
# Description
FrakeGPS simulates a simple GPS receiver which emits NMEA codes. The location is selected clicking on a map, using [wry](https://github.com/tauri-apps/wry) and [Leaflet](http://leafletjs.com/).
![frakegps-gpsmon](https://user-images.githubusercontent.com/4068/58375414-ba3b3900-7f52-11e9-88bb-c6db1299eff0.png)
# Build
## Dependencies
- cargo
- webkit2gtk 4.1 (devel)### Fedora
```
sudo dnf install cargo webkit2gtk4.1-devel
```### Ubuntu
```
sudo apt-get install cargo libwebkit2gtk-4.1-dev
```## Compile
To build the latest stable release from crates.io:
```
cargo install frakegps
```To built the source from the repository:
```
cargo build
```# Usage
## Usage with gpsd
```
sudo systemctl stop gpsd.socket
cargo run -q | gpsd -bnN /dev/stdin
```## Usage with geoclue
```
cargo run -q | nc -vkl 10110
avahi-publish -s "FrakeGPS for $(hostname)" _nmea-0183._tcp 10110
```# Additional resources
- [NMEA reference](https://www.sparkfun.com/datasheets/GPS/NMEA%20Reference%20Manual-Rev2.1-Dec07.pdf)
- [gclue-nmea-source.c](https://gitlab.freedesktop.org/geoclue/geoclue/blob/master/src/gclue-nmea-source.c) from geoclue
- [avahi.rs](https://github.com/zeenix/gps-share/blob/master/src/avahi.rs) from gps-share