Scrin / RuuviCollector

Utility to collect measurements from RuuviTags and store them in InfluxDB
MIT License
125 stars 62 forks source link

How to enable changes in ruuvi-names.properties correctly? #44

Closed markulai closed 4 years ago

markulai commented 4 years ago

Hi!

I edited ruuvi-names.properties with my MAC & new tags and placed it beside the .jar, but they don't seem to change the tag names in grafana from the MAC format? Service start/stop service does not seem to do the job either. Is there rebuild needed or how the configuration should work?

br, Markus

Scrin commented 4 years ago

Rebuild should not be necessary, the ruuvi-names.properties should work identically with ruuvi-collector.properties in that sense; a collector restart is enough when the .properties file(s) are in the same directory as the jar being executed.

When names are set, they are stored in a separate tag within InfluxDB (in addition to the mac address) to not break existing dashboards or contraptions that relies on the mac. So to get "pretty names" rather than macs on the dashboards, you need to use the "name" tag rather than the "mac" tag in WHERE, GROUP BY, and/or ALIAS BY, for example:

grafana tag

Do note that in order to use the $tag_ macros in ALIAS BY, the corresponding tag must be specified in a GROUP BY clause (there can be many, if you want to include both the name and the mac).

Does this work for you? If not, it would be helpful if you could provide a screenshot similar to the above of a panel config on your dashboard.