Sign inSign up

weevenetwork/milesight-decoder

By weevenetwork

•Updated over 3 years ago

Decoder for Milesight Data.

Image
0

321

weevenetwork/milesight-decoder repository overview

⁠Milesight Decoder

NameMilesight Decoder
Versionv1.0.0
GitHubweeve-modules/milesight-decoder⁠
AuthorsMesud 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 VariablestypeDescription
DEVICE_DECODERstringDrop down list with all currently supported device type decoders based on which we decode the payloads.
LABELstringName 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 VariablestypeDescription
MODULE_NAMEstringName of the module
MODULE_TYPEstringType of the module (Input, Processing, Output)
INGRESS_HOSTstringHost where app is running
INGRESS_PORTstringPort where app is running
EGRESS_URLSstringHTTP 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"
}

Tag summary

Content type

Image

Digest

sha256:7fbdb05a2…

Size

87.3 MB

Last updated

over 3 years ago

docker pull weevenetwork/milesight-decoder:v1.0.0