# sigsystem-payloads-sigpark

> SigSystem Payloads - SigPark ===================================

Latest version **1.0.5** (published 2018-07-19) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install sigsystem-payloads-sigpark
pnpm add sigsystem-payloads-sigpark
yarn add sigsystem-payloads-sigpark
bun add sigsystem-payloads-sigpark
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2018-07-19 |
| First published | 2018-07-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 25 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | sigmais |

## Links

- npm: https://www.npmjs.com/package/sigsystem-payloads-sigpark
- npm.io page: https://npm.io/package/sigsystem-payloads-sigpark

## Dependencies (1)

- [mocha](https://npm.io/package/mocha.md) ^5.2.0

## Recent versions

- 1.0.5 (latest) — 2018-07-19
- 1.0.4 — 2018-07-19
- 1.0.3 — 2018-07-19
- 1.0.2 — 2018-07-19
- 1.0.1 — 2018-07-19
- 1.0.0 — 2018-07-19

## README

SigSystem Payloads - SigPark
===================================

SigPark payload parse library.

## Installation

You can use this package on the server side as well as the client side.

### [Node.js](http://nodejs.org/):

~~~
npm install sigsystem-payloads-sigpark
~~~

## Usage

~~~ javascript
var SigParkPayload = require('sigsystem-payloads-sigpark');
~~~

~~~ javascript
var payload = new SigParkPayload('00');
console.log(payload.getDownlinkPayload());
~~~

This will print the following
~~~
002F680C00030c30
~~~

CONFIG_REPORT_FRAME 

~~~ javascript
var payload = new SigParkPayload('031200030c301c02001e82');
console.log(payload.getMessageData());
~~~

This will print the following
~~~ json
{ raw: { x: 0, y: 0, z: 0 },
     config: 
      { sensivity: 2,
        magneticSensivity: 0,
        dataType: 0,
        module: 1,
        worktime: [Array],
        timeConfirm: 30,
        timeInactivity: 7200 },
     timestamp: 540 } 
}
~~~

KEEP_ALIVE (status occupied)

~~~ javascript
var payload = new SigParkPayload('82');
console.log(payload.getMessageData());
~~~

This will print the following
~~~ json
{ 
	header: { type: 2, count: 0, battery: 0, status: 1 },
  data: { raw: { x: 0, y: 0, z: 0 } } 
}
~~~

KEEP_ALIVE (status empty)

~~~ javascript
var payload = new SigParkPayload('32');
console.log(payload.getMessageData());
~~~

This will print the following
~~~ json
{ 
	header: { type: 2, count: 6, battery: 0, status: 0 },
  data: { raw: { x: 0, y: 0, z: 0 } } 
}
~~~

INFO_FRAME_RAW_DATA (status empty)

~~~ javascript
var payload = new SigParkPayload('380096005f00b5272432680c');
console.log(payload.getMessageData());
~~~

This will print the following
~~~ json
{ 
	header: { type: 0, count: 7, battery: 0, status: 0 },
  data: 
   { raw: { x: 150, y: 95, z: 181 },
     temperature: 39,
     battery: 3.6,
     timestamp: 813106 } 
}
~~~

INFO_FRAME_RAW_DATA (status occupied)

~~~ javascript
var payload = new SigParkPayload('b0007d004c00a3282436680c');
console.log(payload.getMessageData());
~~~

This will print the following
~~~ json
{ 
	header: { type: 0, count: 6, battery: 0, status: 1 },
	data: 
   { raw: { x: 125, y: 76, z: 163 },
     temperature: 40,
     battery: 3.6,
     timestamp: 813110 } 
}
~~~


## Project Example

https://github.com/Sigmais/SigPark-Server

## Library
--------

## Built with
--------

- node: 8.11.2
- npm: 6.1.0


# Release Notes

### 1.0.0 (Jul 19, 2018)
* `all`: first release

---
_Source: https://npm.io/package/sigsystem-payloads-sigpark · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
