Giter Club home page Giter Club logo

tz-parser's Introduction

tz-parser

npm version npm downloads Build Status Coverage Status Maintainability dependency Status devDependency Status

Parse raw data from TZ-AVL devices (AVL-05, AVL-08, AVL-201)

Installation

npm i -S tz-parser

Use

Try on RunKit

const tz = require('tz-parser')

const raw = Buffer.from('$$B6869444005480041|AA$GPRMC,194329.000,A,3321.6735,S,07030.7640,W,0.00,0.00,090216,,,A*6C|02.1|01.3|01.7|000000000000|20160209194326|13981188|00000000|32D3A03F|0000|0.6376|0100|995F\r\n')
const data = tz.parse(raw)
/*{
  raw: '$$B6869444005480041|AA$GPRMC,194329.000,A,3321.6735,S,07030.7640,W,0.00,0.00,090216,,,A*6C|02.1|01.3|01.7|000000000000|20160209194326|13981188|00000000|32D3A03F|0000|0.6376|0100|995F\r\n',
  manufacturer: 'tz',
  device: 'tz',
  model: 'TZ-AVL05',
  type: 'data',
  imei: '869444005480041',
  alarm: {type: 'Gps'},
  loc: {
    type: 'Point',
    coordinates: [-70.51273333333333, -33.361225]
  },
  speed: 0,
  gpsStatus: true,
  azimuth: 0,
  magneticVariation: null,
  gpsMode: 'Autonomous',
  pdop: 2.1,
  hdop: 1.3,
  vdop: 1.7,
  status: {
    raw: '000000000000',
    sos: false,
    input: {'1': false, '2': false, '3': false, '4': false, '5': false},
    output: {'1': false, '2': false},
    charge: true
  },
  datetime: 2016-02-09T19:43:26.000Z,
  voltage: {battery: 3.98, inputCharge: 11.88, ada: 0, adb: 0},
  lac: 13011,
  cid: 41023,
  temperature: 0,
  odometer: 0.6376,
  serialId: 100,
  valid: true
}*/

License

MIT

tz-parser's People

Contributors

greenkeeper[bot] avatar greenkeeperio-bot avatar lgaticaq avatar renovate-bot avatar renovate[bot] avatar

Watchers

 avatar

Forkers

akashnb0

tz-parser's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Preset name not found within published preset config (monorepo:angularmaterial). Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency husky to v9
  • chore(deps): update dependency lint-staged to v15
  • chore(deps): update dependency mocha to v10
  • chore(deps): update dependency node to v20
  • fix(deps): update dependency crc to v4
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • crc 3.8.0
  • node-nmea 1.0.4
  • chai 4.3.6
  • eslint 4.19.1
  • eslint-config-standard 11.0.0
  • eslint-plugin-import 2.25.4
  • eslint-plugin-node 6.0.1
  • eslint-plugin-promise 3.8.0
  • eslint-plugin-standard 3.1.0
  • generate-changelog 1.8.0
  • husky 0.14.3
  • istanbul 0.4.5
  • lint-staged 7.3.0
  • mocha 5.2.0
  • prettier-standard 8.0.1
  • node >=8
nvm
.nvmrc
  • node v9
travis
.travis.yml
  • node 8
  • node 9

  • Check this box to trigger a request for Renovate to run again on this repository

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.