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

tk110-parser

v1.0.0

Published

TK-110 (China Noname) GPS Tracker Data Parser

Downloads

3

Readme

TK-110-Parser

NodeJS Parser for TK-110 GPS Tracker

My GPS Tracker looks like this:

TK-110 GPS Tracker

There is lot of cheap GPS Trackers on Aliexpress like this one: http://bit.ly/tk110-tracker

You can verify and/or dump packets from your GPS to make sure that format is correct my using Linux server on real (external) IP in this way:

  1. On Server run: nc -l -p 10000

  2. Configure your GPS to send data to your server IP and port 10000. Please, refer manual for HowTo.

  3. Wait some time and you should get lines like this:

(087072203411BP05352887072203411160318A5027.1953N03025.4878E003.1202440000.0001000000L000450AB)(087072203411BR00160318A5027.1950N03025.4631E003.0202455000.0001000000L000450AB)(087072203411BR00160318A5027.1946N03025.4578E001.9202510000.0001000000L000450AB)(087072203411BR00160318A5027.1962N03025.4604E002.5202525000.0001000000L000450AB)

If yes - you fine. This module can help you parse this data.

Usage:
const tk110 = require('./index.js');

let rawString = '(008238008589BO010141129A2302.7532N07232.2461E000.0092142349.381000000AL000000F1)';

let result = tk110.parse(rawString);

console.log('* Result: ', result);
Your result should look like this:
{
	"status": true,
	"trackerId": "008238008589",
	"lat": 23.045886666666668,
	"long": 72.537435,
	"speed": 0,
	"date": "2014-11-29",
	"time": "09:21:42",
	"direction": 349.38,
	"mileage": 0,
	"flags": {
  		"power": 1,
	  	"ignition": 0
  }
}

Please note:

  • Power: 1 - Works from Battery, 0 - Works from External power supply. // Not all trackers has internal battery.

  • Ignition: 1 - On, 0 - Off // Usually this cheap trackers don't have any connection to ignition status and will always show 0.

Special thanks to:

Sahaj GPS Tracker