ironsheep / RPi-Reporter-MQTT2HA-Daemon

Linux service to collect and transfer Raspberry Pi data via MQTT to Home Assistant (for RPi Monitoring)
GNU General Public License v3.0
460 stars 64 forks source link

Support for Arch Linux #31

Closed dflvunoooooo closed 2 years ago

dflvunoooooo commented 3 years ago

Is your feature request related to a problem? Please describe. If run under Arch Linux a few commands do not work, because Arch Linux handles them differently. The hostname command is not available from a clean install, Arch Linux has no general version only for each package since being a rolling release and the "last update" sensor does not work with pacman.

Describe the solution you'd like The hostname programm can be installed via the inetutils package. This has to be added to the readme. The version sensor can be left out on an Arch Linux installation. And the last update sensor can be achieved easily I think, but I have to try and write a function.

Describe alternatives you've considered An alternatve would be to comment the functions out, so they are not used, but that is a dirty solution.

I am not sure if I did this correct. This is my first feature request.

ironsheep commented 2 years ago

I've merged these changes into the code base. They will appear in the next release.

ironsheep commented 2 years ago

Fixes appear in v1.6.0 and later.