diff --git a/.gitignore b/.gitignore index b861e7d..e44431d 100644 --- a/.gitignore +++ b/.gitignore @@ -162,3 +162,4 @@ Temporary Items gpsconfig.yml config.yml _db +/build diff --git a/backups/_db-210115-01/raw/000000.vlog b/backups/_db-210115-01/raw/000000.vlog new file mode 100644 index 0000000..df6c666 Binary files /dev/null and b/backups/_db-210115-01/raw/000000.vlog differ diff --git a/backups/_db-210115-01/raw/KEYREGISTRY b/backups/_db-210115-01/raw/KEYREGISTRY new file mode 100644 index 0000000..67f1597 --- /dev/null +++ b/backups/_db-210115-01/raw/KEYREGISTRY @@ -0,0 +1 @@ ++z {Hello Badger \ No newline at end of file diff --git a/backups/_db-210115-01/raw/LOCK b/backups/_db-210115-01/raw/LOCK new file mode 100644 index 0000000..9aeda94 --- /dev/null +++ b/backups/_db-210115-01/raw/LOCK @@ -0,0 +1 @@ +38895 diff --git a/backups/_db-210115-01/raw/MANIFEST b/backups/_db-210115-01/raw/MANIFEST new file mode 100644 index 0000000..0b55969 Binary files /dev/null and b/backups/_db-210115-01/raw/MANIFEST differ diff --git a/backups/_db-210115-01/records/000000.vlog b/backups/_db-210115-01/records/000000.vlog new file mode 100644 index 0000000..d041968 Binary files /dev/null and b/backups/_db-210115-01/records/000000.vlog differ diff --git a/backups/_db-210115-01/records/KEYREGISTRY b/backups/_db-210115-01/records/KEYREGISTRY new file mode 100644 index 0000000..0339348 --- /dev/null +++ b/backups/_db-210115-01/records/KEYREGISTRY @@ -0,0 +1 @@ +;0.|uGHello Badger \ No newline at end of file diff --git a/backups/_db-210115-01/records/LOCK b/backups/_db-210115-01/records/LOCK new file mode 100644 index 0000000..9aeda94 --- /dev/null +++ b/backups/_db-210115-01/records/LOCK @@ -0,0 +1 @@ +38895 diff --git a/backups/_db-210115-01/records/MANIFEST b/backups/_db-210115-01/records/MANIFEST new file mode 100644 index 0000000..0b55969 Binary files /dev/null and b/backups/_db-210115-01/records/MANIFEST differ diff --git a/backups/_db-210115-01/sensor/000000.vlog b/backups/_db-210115-01/sensor/000000.vlog new file mode 100644 index 0000000..fd3a212 Binary files /dev/null and b/backups/_db-210115-01/sensor/000000.vlog differ diff --git a/backups/_db-210115-01/sensor/KEYREGISTRY b/backups/_db-210115-01/sensor/KEYREGISTRY new file mode 100644 index 0000000..5613c7c --- /dev/null +++ b/backups/_db-210115-01/sensor/KEYREGISTRY @@ -0,0 +1 @@ +\MvHello Badger \ No newline at end of file diff --git a/backups/_db-210115-01/sensor/LOCK b/backups/_db-210115-01/sensor/LOCK new file mode 100644 index 0000000..1aca5e4 --- /dev/null +++ b/backups/_db-210115-01/sensor/LOCK @@ -0,0 +1 @@ +6958 diff --git a/backups/_db-210115-01/sensor/MANIFEST b/backups/_db-210115-01/sensor/MANIFEST new file mode 100644 index 0000000..0b55969 Binary files /dev/null and b/backups/_db-210115-01/sensor/MANIFEST differ diff --git a/backups/_db-210115-01/trackings/000000.vlog b/backups/_db-210115-01/trackings/000000.vlog new file mode 100644 index 0000000..86bb4a7 Binary files /dev/null and b/backups/_db-210115-01/trackings/000000.vlog differ diff --git a/backups/_db-210115-01/trackings/KEYREGISTRY b/backups/_db-210115-01/trackings/KEYREGISTRY new file mode 100644 index 0000000..b1e37d7 --- /dev/null +++ b/backups/_db-210115-01/trackings/KEYREGISTRY @@ -0,0 +1 @@ +uJe|?^Hello Badger \ No newline at end of file diff --git a/backups/_db-210115-01/trackings/LOCK b/backups/_db-210115-01/trackings/LOCK new file mode 100644 index 0000000..1aca5e4 --- /dev/null +++ b/backups/_db-210115-01/trackings/LOCK @@ -0,0 +1 @@ +6958 diff --git a/backups/_db-210115-01/trackings/MANIFEST b/backups/_db-210115-01/trackings/MANIFEST new file mode 100644 index 0000000..0b55969 Binary files /dev/null and b/backups/_db-210115-01/trackings/MANIFEST differ diff --git a/cmd/replay/replay.go b/cmd/replay/replay.go index 5d92773..cba0619 100644 --- a/cmd/replay/replay.go +++ b/cmd/replay/replay.go @@ -1,3 +1,7 @@ +/** +only for testing purposes +*/ + package main import ( diff --git a/readme.md b/readme.md index 7c4236c..36e0b5a 100644 --- a/readme.md +++ b/readme.md @@ -1,27 +1,42 @@ # gyropsc ⚡ **Realtime Location Dashboard 🚀** -## Quickstart +# Quickstart First copy `example_config.yml` to `gpsconfig.yml` and adjust your parameters. if you intend to use this tool with ublox over USB or Serial, you need to set the name of your port in this config file. otherwise the program will panic. -### Requirements +## Requirements * Win, Linux or Mac Computer, ideally with serial port and WiFi * GPS device (Android or iOS smartphone and/or ublox 8/M8 series module) * download latest release and unzip it -### Preparation +## Preparation Make sure you prepared your GPS device like described in chapter 3.3 of the Documentation. Start gyrogpsc **before** connecting your smartphone via TCP. -### Run +## Run Execute `gyropgsc-$OS`, according to your operating system. -## Build from source -### Requirements +# Build and run from source +## Requirements * git * go >1.15 -### Build Steps +## Run 1. `git clone --recursive https://git.timovolkmann.de/tvolkmann/gyrogpsc.git` 2. run `go install` from project root 3. run `go run cmd/server/server.go` from project root to start application or just `go build cmd/server/server.go` for building it only +## Build +For Windows 64-bit: `GOOS=windows GOARCH=amd64 go build -o build/gyrogpsc-win.exe cmd/server/server.go` + +For MacOS: `GOOS=darwin GOARCH=amd64 go build -o build/gyrogpsc-mac cmd/server/server.go` + +For Linux: `GOOS=linux GOARCH=arm64 go build -o build/gyrogpsc-linux cmd/server/server.go` + +Make sure that binaries have execute permissions on Mac and Linux. Currently only working on 64-bit systems. + +## Static files and demo database +### Demo database +To use demo data, copy `backups/_db-210115-01/` to folder `_db/` in project root. The prebuilt binaries zip-file already contains demo data. + +### Static files +All static files (`static/` and `templates/`) must be in the root of working directory when running gyrogpsc. That's already the case if you follow "Run" instructions. diff --git a/static/scripts/websocket.js b/static/scripts/websocket.js index cd4898f..e1ff012 100644 --- a/static/scripts/websocket.js +++ b/static/scripts/websocket.js @@ -98,7 +98,6 @@ window.addEventListener("load", function(evt) { document.getElementById("yellow").style.backgroundColor = 'rgb(157,117,25)' document.getElementById("redlamp").style.backgroundColor = 'rgb(255,14,14)' } - } tempTCPCoords = null }