Skip to content

Repository files navigation

Milesight Decoder

Name Milesight Decoder
Version v1.0.0
DockerHub weevenetwork/milesight-decoder
Authors Mesud Pasic

Description

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"
}
  • Depending on device type selected output may be different but it's usually formed like this:
{
	"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

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

Module Specific

Set by the weeve Agent on the edge-node

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

"dependencies": {
    "body-parser": "^1.19.2",
    "express": "^4.17.3",
    "express-winston": "^4.2.0",
    "node-fetch": "^2.6.1",
    "winston": "^3.6.0"
}

About

Milesight Payload Decoder

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages