npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gps-reader

v1.0.7

Published

nodejs parser for gps.

Downloads

13

Readme

node-gps-reader

basic nodejs gps parser.

Available sentences:

  • GGA - Global Positioning System Fix Data.
  • VTG - Track Made Good and Ground Speed.
  • HDT - Heading, True.
  • RMC - Track Made Good and Ground Speed.
  • GLL - Geographic Position, Latitude / Longitude and time.

Function:

  • parse(nmea_sentence) - return parsed data object.
  • getChecksum(nmea_sentence) - return checksum in DEC (use toString(16) to convert to HEX if needed).

Remarks:

  • NMEA checksum comprised of everything between (EXCLUSIVELY) the start delimiter (!/$) and the asterisk (*).

Usage:

  • Check example.js
const nmea = require('gps-reader')

/* Result
################################################################
Testing GGA decoder.
Raw: $GPGGA,012906.00,2741.79668,N,12226.25185,E,1,11,0.86,14.2,M,15.5,M,,*60
Checksum valid: true
Time: 01,29,06,00
Position: φ 27.69661 - λ 122.43753
Fix Type: GPS fix (SPS)
Satellite Count: 11 - Hdop: 0.86
Altitude: 14.2 m - Geoid Separation: 15.5 m
DGPS Age: null - DGPS Station: null
FAA Mode: null
End of GGA decoder test.
################################################################
Testing VTG decoder.
Raw: $GPVTG,211.63,T,,M,12.947,N,23.977,K,A*3B
Checksum valid: true
True Track: 211.63 - Magnetic Track: null
Speed: 12.947 kn (23.977 km/h)
FAA Mode: Autonomous
End of VTG decoder test.
################################################################
Testing RMC decoder.
Raw: $GPRMC,123519,A,4807.038,N,01131.000,E,022.4,084.4,230394,003.1,W*6A
Checksum valid: true
Time: 12,35,19,0
Date: 94,03,23
Position: φ 48.11730 - λ 11.51667
Fix Status: A
True Track: 84.4
Speed: 22.4 kn
Magnetic Variation: -3.1
End of RMC decoder test.
################################################################
Testing GLL decoder.
Raw: $GPGLL,4916.45,N,12311.12,W,225444,A*31
Checksum valid: true
Time: 22,54,44,0
Position: φ 49.27417 - λ -123.18533
Fix Status: A
End of GLL decoder test.
################################################################
*/

New decoder can be registered manually in src/decoder.js

Regular expression tested on regexr.com