Decoder for Milesight Data.
321
| Name | Milesight Decoder |
| Version | v1.0.0 |
| GitHub | weeve-modules/milesight-decoder |
| Authors | Mesud Pasic |
Milesite Decoder decodes payloads for Milesight IoT sensors in ttn or chirpstack based platform. Payload depends on sensor type and platform. Based on decoder functions https://github.com/Milesight-IoT/SensorDecoders
Example of incoming payload may look like this:
{
"data": "01755C03673401046865056A490006651C0079001400077DE704087D070009733F27"
}
{
"battery": 92,
"temperature": 30.8,
"humidity": 50.5,
"activity": 73,
"illumination": 28,
"infrared_and_visible": 121,
"infrared": 20,
"co2": 1255,
"tvoc": 7,
"pressure": 1004.7
}
| Environment Variables | type | Description |
|---|---|---|
| DEVICE_DECODER | string | Drop down list with all currently supported device type decoders based on which we decode the payloads. |
| LABEL | string | Name of the property in incoming payload that holds the data. Can be nested field like data.property1 |
| Environment Variables | type | Description |
|---|---|---|
| MODULE_NAME | string | Name of the module |
| MODULE_TYPE | string | Type of the module (Input, Processing, Output) |
| INGRESS_HOST | string | Host where app is running |
| INGRESS_PORT | string | Port where app is running |
| EGRESS_URLS | string | HTTP ReST endpoint for the next module |
"dependencies": {
"body-parser": "^1.19.2",
"express": "^4.17.3",
"express-winston": "^4.2.0",
"node-fetch": "^2.6.1",
"winston": "^3.6.0"
}
Content type
Image
Digest
sha256:7fbdb05a2…
Size
87.3 MB
Last updated
over 3 years ago
docker pull weevenetwork/milesight-decoder:v1.0.0