Coder Social home page Coder Social logo

gps-logger's Introduction

gps-logger by 715209

live-map by b3ck

Download and install this on your android phone: https://github.com/mendhak/gpslogger/releases

Once it's started go into the settings and turn everything off for logging besides custom url which should look like this: http://<YOUR-IP-or-DNS>:3000/log?s=%SPD&b=%BATT&lat=%LAT&lon=%LON&a=%ALT

  • 1.) On your PC clone or download this GIT

  • 2.) Run the 'npm install --production.bat'

  • 3.) In order for all of the APIs to work you'll need to edit the config.js, links are in the config for the APIs.

    After signing up for HERE.com enable REST, and it will generate an 'APP ID', click the Create API key button this is what you want to use in the 'config.js' file.

    Generate APP ID & API KEY EXAMPLE

    Generate APP ID & API KEY EXAMPLE

  • 4.) Also in the config.js is a section for a 'UNIQUE_CODE', if you want to protect access to the GPS-LOGGER either generate it or put in your own code, if not then leave it blank;

    Get a Code here => https://www.randomcodegenerator.com/en/generate-codes or make up your own.

    Add &key=<UNIQUE_CODE> at the end of your GPS-LOGGER 'custom url' URL, this will secure your data and everything in turn needs this key to access data and send data.

    My Custom URL in GPS-Logger looks like this: http://<YOUR-IP-or-DNS>:<PORT>/log?s=%SPD&b=%BATT&lat=%LAT&lon=%LON&a=%ALT&key=<UNIQUE_CODE>

    If you want to access the gps-logger from outside your local network you'll need to add ?key=<UNIQUE-CODE> to the end of the URL, for example http://<YOUR-IP-or-DNS>:<PORT>/map?key=<UNIQUE-CODE>

    This could be a neat tool to give to your most trusted MODs just in case something happens to you, they 'could' provide emergency services with your exact location.

  • 5.) Open and Forward your ports, otherwise all of this won't work.

  • 6.) Run 'npm start.bat' to start the gps-logger server

It should say something like this:

PS C:\github\gps-logger> npm start
[email protected] start C:\github\gps-logger
node app
listening on *:3000

Now browse to http://localhost:3000

Other links to know:

  • http://localhost:3000/map_rotate
  • is a basic attempt to make the map rotate depending on your current direction, you will need to add &d=%DIR to your Custom URL in the GPS-LOGGER app on your phone, before the UNIQUE-CODE. ex; http://<YOUR-IP-or-DNS>:<PORT>/log?s=%SPD&b=%BATT&lat=%LAT&lon=%LON&a=%ALT&d=%DIR&key=<UNIQUE_CODE>

  • http://localhost:3000/mod_map
  • this will show a map with all details and stats to help your most trusted MODs in an emergency situtation.

  • MODs can access this from: http://<YOUR-IP-or-DNS>:<PORT>/mod_map?key=<UNIQUE-CODE>

Now just pull whatever you want into your OBS Scene, and Bob's your uncle. ๐Ÿ‘จ

Please keep in mind I just left everything styled like I have it in my stream, to truly make it your own all it takes is a little tinkering with CSS.

If you have any issues feel free to submit them here on GitHub, or message me on Discord @ b3ck#3517.

gps-logger's People

Contributors

715209 avatar b3ck avatar dependabot[bot] avatar fakestreamerttv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gps-logger's Issues

Errors in browser console

Hello, I followed the setup guide and am pretty sure I did everything correctly, but the map isn't updating and I'm getting these errors in the inspect console on Chrome.

image

The location shown here is just the default starting code I set in the html:
image
It says:
Failed to load resource: net::ERR_CONNECTION_REFUSED socket.io/?EIO3&transport=polling&t=NV3RQGu:1

based on this page, I do think it's getting my data as it should
image

Old readme did not work

Hello i have 2 problems with replicate your great appt.

First 1. here.com
did not use APP ID and APP CODE in REST. So i must use APP ID and APP CODE from HERE SDK FOR ANDROID ???

Second 2. problem is in GPSLogger app...
whe i use HTTP send app say: cleartext communication not permitted by network security policy
https://stackoverflow.com/questions/45940861/android-8-cleartext-http-traffic-not-permitted

I think it is problem of newest android and security policy.

Sorry for my bad english.

No app code

https://i.imgur.com/48uqKN2.png

https://i.imgur.com/dSqafah.png
[App Code Credentials
App code credentials will continue to be supported for a few products and current Developer Portal accounts where App code credentials have already been generated for an App. New accounts will only be able to use App Code credentials for some legacy products. App code credentials are the least secure of the authentication credential types and we recommend the use of the API Key or OAuth 2.0 Token credentials instead for improved security.]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.