David-Igou / bsbmp-exporter

Prometheus exporter for Bosch Sensortec temperature, atmospheric pressure and humidity sensors
MIT License
9 stars 3 forks source link

How to use this on a Raspberry Pi #17

Open viktorsmari opened 1 year ago

viktorsmari commented 1 year ago

Hi!

How can I use this on a Raspberry Pi?

Do I need to install go on the Pi and clone and build the project? How would I do that?

Thanks in advance!

David-Igou commented 1 year ago

My builds don't seem to work anymore on the latest version of Go. I'll take some time to update

viktorsmari commented 1 year ago

I installed go on the Raspberry Pi, and did:

git clone https://github.com/David-Igou/bsbmp-exporter
cd bsbmp-exporter
go build -v -o bsbmp-exporter github.com/david-igou/bsbmp-exporter

Then I was able to call the ./bsbmp-exporter I then created a systemd service to call it on every boot.

Thanks for this repository! :+1: