Sign inSign up

beetaone/websocket-ingress

By beetaone

Updated almost 2 years ago

Image
0

177

beetaone/websocket-ingress repository overview

Websocket Ingress

NameWebsocket Ingress
Versionv1.0.0
Dockerhub Linkbeetaone/websocket-ingress
AuthorsMesud Pasic

Description

The module should connect to Websocket endpoint and listen for incoming messages. Then forward the payload to next module in beetaone appropriate JSON format.

Environment Variables

Environment VariablestypeDescription
WEBSOCKET_URLstringURL of websocket
Module Specific
Set by the beetaone Agent on the edge-node
Environment VariablestypeDescription
MODULE_NAMEstringName of the module
INGRESS_HOSTstringHost where app is running
INGRESS_PORTstringPort where app is running

Incoming payload can look like this


{
   "cmd": "rx",
   "seqno": 2091,
   "EUI": "24DD24538B444729",
   "ts": 1658752736930,
   "fcnt": 847,
   "port": 85,
   "freq": 868500000,
   "rssi": -17,
   "snr": 8,
   "toa": 56,
   "dr": "SF7 BW125 4/5",
   "ack": false,
   "bat": 254,
   "offline": false,
   "data": "017564030001045555"
}	

Outgoing payload looks like this


{
  "timestamp":1659608431851,
  "data":{
    "cmd": "rx",
    "seqno": 2091,
    "EUI": "24DD24538B444729",
    "ts": 1658752736930,
    "fcnt": 847,
    "port": 85,
    "freq": 868500000,
    "rssi": -17,
    "snr": 8,
    "toa": 56,
    "dr": "SF7 BW125 4/5",
    "ack": false,
    "bat": 254,
    "offline": false,
    "data": "017564030001045555"
  }
}	

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",
    "ws": "^8.8.1"
}

Tag summary

Content type

Image

Digest

sha256:a5fde1601

Size

85.9 MB

Last updated

almost 2 years ago

docker pull beetaone/websocket-ingress:v1.0.0