JsBergbau / MiTemperature2

Read the values of the Xiaomi Mi Bluetooth Temperature sensor 2 including custom encrypted format.
706 stars 162 forks source link

Add prometheus callback script #33

Closed hayorov closed 4 years ago

hayorov commented 4 years ago

Hello, @JsBergbau I hope you are doing well! Thank you for this project. I really appreciate your job! I use Prometheus in my home ecosystem, so I decided that it can be useful to make this contribution.

I'm really sorry for code style and format fixes (that I included with it) but it's something that happened literally automatically 🙂

Changes:

JsBergbau commented 4 years ago

Hi hayorov,

thanks for adding Prometheus support.

Since this support adds a few files, could you please move them into a subfolder? That helps to keep overview. After that I'll intergrate your pull request.

hayorov commented 4 years ago

Hello @JsBergbau, I've moved all Prometheus related files to sub-folder.

JsBergbau commented 4 years ago

Hi @hayorov Thanks. I've just merged your code.