3.1.3 • Published 8 years ago

tz-parser v3.1.3

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

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

3.1.3

8 years ago

3.1.2

8 years ago

3.1.1

9 years ago

3.1.0

9 years ago

3.0.7

9 years ago

3.0.6

9 years ago

3.0.5

9 years ago

3.0.4

9 years ago

3.0.3

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.6.3

9 years ago

2.6.2

9 years ago

2.6.1

9 years ago

2.6.0

9 years ago

2.5.0

9 years ago

2.4.4

9 years ago

2.4.3

9 years ago

2.4.2

9 years ago

2.4.1

9 years ago

2.4.0

9 years ago

2.3.1

9 years ago

2.3.0

9 years ago

2.2.1

9 years ago

2.2.0

10 years ago

2.1.2

10 years ago

2.1.1

10 years ago

2.1.0

10 years ago

2.0.0

10 years ago

1.2.0

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago