openenergymonitor / emonhub

Python service linking and decoding input to MQTT & Emoncms
90 stars 83 forks source link

Influx Writer Series Names #162

Open cenjui opened 2 years ago

cenjui commented 2 years ago

Hello,

Desired Solution: Graph data points from EmonCMS in Grafana with a InfluxDB backend. Issue: Using the InfluxDB Writer not all of the announced values are stored as series - the one I am having an issue with has a space in the name which InfluxDB doesn't like. Sympton: Series with a space are not stored influxDB - for example "external temperature" in my logs below. Possible Solution: Some kind of regular expression that catches the invalid character and replaces them in the InfluxDB writer - perhaps swap a space for _ and similar?

I've attached a couple of log files - the Emon hub log file showing the name "external temperature" getting passed and the series list from the InfluxDB showing its not created.

Thank you!

EmonHUB_Log_File.txt Influx_DB_Series.txt .