{"id":31886878,"url":"https://github.com/eamonnsullivan/disk-watcher-mqtt","last_synced_at":"2026-05-09T02:19:44.361Z","repository":{"id":136972663,"uuid":"380583083","full_name":"eamonnsullivan/disk-watcher-mqtt","owner":"eamonnsullivan","description":"Exercise in using MQTT to periodically report very basic stats about disk storage (used and free).","archived":false,"fork":false,"pushed_at":"2025-01-30T17:13:04.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T23:43:25.770Z","etag":null,"topics":["mqtt","python3","raspberry-pi","systemd-service"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eamonnsullivan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-26T19:37:39.000Z","updated_at":"2025-01-30T17:13:16.000Z","dependencies_parsed_at":"2024-04-23T03:19:09.760Z","dependency_job_id":null,"html_url":"https://github.com/eamonnsullivan/disk-watcher-mqtt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eamonnsullivan/disk-watcher-mqtt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eamonnsullivan%2Fdisk-watcher-mqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eamonnsullivan%2Fdisk-watcher-mqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eamonnsullivan%2Fdisk-watcher-mqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eamonnsullivan%2Fdisk-watcher-mqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eamonnsullivan","download_url":"https://codeload.github.com/eamonnsullivan/disk-watcher-mqtt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eamonnsullivan%2Fdisk-watcher-mqtt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32804672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mqtt","python3","raspberry-pi","systemd-service"],"created_at":"2025-10-13T05:52:41.416Z","updated_at":"2026-05-09T02:19:44.356Z","avatar_url":"https://github.com/eamonnsullivan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# disk-watcher-mqtt\n\nA very simple example of a service that periodically reports disk usage stats to an MQTT broker. I wrote this because I needed to keep an eye on the amount of free space on several Raspberry Pis around the house. I haven't written in Python in years, so this is unlikely to be a good example of how to do this. I chose the language because it's available on all the Pis, even the Zero. I just needed it to work, not be elegant.\n\n## Installation\n```\nsudo apt-get update\nsudo apt install git python3-pip -y\ngit clone https://github.com/eamonnsullivan/disk-watcher-mqtt.git\ncd disk-watcher-mqtt\n\n# install the requirements\npip3 install -r requirements.txt\n\n# edit the configuration\nnano disk-watcher.conf\n```\n## Configuration\n\nSee `disk-watcher.conf`, set your broker, port, etc. You'll also want to set the topic_base (the first part of the topic) and the frequency (in seconds) of reporting.\n\n## Set as a service\n\nMake sure the directories and user specified in `disk-watcher.service` match your set up and then:\n\n```\nsudo ln -s /home/pi/disk-watcher-mqtt/disk-watcher.service /etc/systemd/system/\nsudo systemctl --system daemon-reload\nsudo systemctl enable disk-watcher.service\nsudo systemctl start disk-watcher.service\n# wait a few seconds\nsudo systemctl status disk-watcher.service\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feamonnsullivan%2Fdisk-watcher-mqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feamonnsullivan%2Fdisk-watcher-mqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feamonnsullivan%2Fdisk-watcher-mqtt/lists"}