Multi-EAR / Multi-EAR-services

Multi-EAR system services and configuration for a deployed Raspberry Pi OS LITE (32-bit).
MIT License
0 stars 0 forks source link

PR for adding WS service #4

Closed Jollyfant closed 2 years ago

Jollyfant commented 2 years ago

What is the point of using Python when calling InfluxDBClient.request(q, stream=True) and then broadcasting over the WS? Can we directly tap into HTTP chunked mode from JavaScript and update charts client-side?

psmsmets commented 2 years ago

What is the point of using Python when calling InfluxDBClient.request(q, stream=True) and then broadcasting over the WS? Can we directly tap into HTTP chunked mode from JavaScript and update charts client-side?

InfluxDB is only accessible from localhost to simplify security (!) and the flux query command. If we can alias the influx command in nginx a direct stream is possible.