DanielStormApps / Fanny

Monitor your Mac's fan speed and CPU/GPU temperature from your Notification Center.
https://www.FannyWidget.com
MIT License
1.33k stars 102 forks source link

Adding ability to publish MQTT topics and messages #83

Open exeljb opened 2 years ago

exeljb commented 2 years ago

Having the ability to remotely monitor cpu temps and fan speeds on my Home Assistant instance would be pretty nice. I also use a MacBook air that runs OctoPrint for my 3d printer that i'd also like to monitor through Home assistant. Both computers are run headless. The Home Assistant app is on my phone and which can alert me to deviations in normal operating of those computers.

MQTT is a lightweight, easy to setup messaging protocol that can even be installed on and run from small microcontrollers. Setting it up consists of providing the client (Fanny in this case) with server/broker info such as address, port, username and password. Periodically, Fanny could publish the stats it's received to the MQTT broker, Home Assistant in my case, which can be logged, graphed and viewed in the app.

Maybe this can be integrated into the Fanny widget as an option to turn on for those who might find it useful?

exeljb commented 2 years ago

So I've run across this project written in swift. https://github.com/emqx/CocoaMQTT If my programming skill weren't nearly non-existent, I'd try myself.