lukasmalkmus / rpi_exporter

A Raspberry Pi CPU temperature exporter.
Apache License 2.0
79 stars 17 forks source link

Configurable vcgencmd path #15

Closed PVince81 closed 2 years ago

PVince81 commented 3 years ago

I had Raspbian 32 bits on a Rpi4 and the path was /opt/vc/bin/vcgencmd, which is usually correct.

However after switching to Raspbian 64 bits (beta), that tool moved to /usr/bin/vcgencmd. I guess maybe the packagers made it more official in that version.

To accommodate for this, it would be good to either try and detect the tool's path or add a CLI argument to be able to specify its path.