markrad / ArgonOned

Adds MQTT to Argon One service script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ArgonOned

Adds MQTT to the Argon One service script

Since this script always runs on my Raspberry Pi to turn on the built in fan in the Argon One case it seemed like a good idea to extend it to provide some additional functionality. It reports cpu temperature, gpu temperature, percentage of used disk space, percentage of used virtual memory, cpu load and the fan state. This is all packaged into a single JSON string and published to a MQTT server.

My Home Assistant instance subscribes to that topic and updates MQTT sensors based upon the information in the JSON string.

About

Adds MQTT to Argon One service script

License:MIT License


Languages

Language:Python 100.0%