Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 761 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 761 Bytes

Funnel

built with nix

Service which filters and sends out data to all listening clients over websockets. This service expects the data to be sent over grpc.

Configuration

Environment

  • GRPC_PORT: mendatory under which the grpc server runs
  • WEBSOCKET_PORT: mendatory under which port the websocket port runs
  • API_DOMAIN: http domain of an running state-api

Filter

{
    "lines": [9, 11],
    "positions": [],
    "regions": [0],
    "enrich": true
}

This would only let telegrams from line 9 and 11 from region 0 (dresden). This Json just needs to be send to the websocket sending it again will overwrite the previous filter.