{"id":20775559,"url":"https://github.com/fleaz/feinstaub2mqtt","last_synced_at":"2026-04-11T16:08:06.968Z","repository":{"id":144275602,"uuid":"143634672","full_name":"fleaz/feinstaub2mqtt","owner":"fleaz","description":"Receive data from a luftdaten.info node and push them to MQTT","archived":false,"fork":false,"pushed_at":"2019-11-06T23:02:16.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-18T07:48:03.388Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/fleaz.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":"2018-08-05T17:42:45.000Z","updated_at":"2020-10-04T15:44:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"9d74c7a3-fd12-4487-90c4-e2887ebda40b","html_url":"https://github.com/fleaz/feinstaub2mqtt","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fleaz%2Ffeinstaub2mqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fleaz%2Ffeinstaub2mqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fleaz%2Ffeinstaub2mqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fleaz%2Ffeinstaub2mqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fleaz","download_url":"https://codeload.github.com/fleaz/feinstaub2mqtt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243114074,"owners_count":20238536,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["hacktoberfest"],"created_at":"2024-11-17T12:37:38.017Z","updated_at":"2025-12-24T16:43:06.232Z","avatar_url":"https://github.com/fleaz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# feinstaub2mqtt\n\nDieses Tool kann man als \"Custom API\" in einem Feinstaubsensor von [http://luftdaten.info](luftdaten.info) eintragen um\ndie Sensorwerte mittels MQTT im Netzwerk zu verteilen. Damit lässt sich ein Feinstaubsensor bspw. einfacher in Home Assistant integrieren als über eine InfluxDB.\n\n\n## Installation\nEntweder mittels `git clone` oder `go get` den Sourcecode runterladen und selber kompilieren, oder unter [Releases](https://github.com/f-breidenstein/feinstaub2mqtt/releases) eine fertige Binary runterladen.\n\n## MQTT Topics\nFür jeden Sensorwert im übertragenen JSON, wird ein eigener MQTT Topic angelegt. Das format ist\n```\nPREFIX/\u003c6stellige ID des verbauten ESP8266\u003e/\u003cName des jeweiligen Sensors\u003e\n```\nDen `PREFIX` kann man beim Starten mit `-prefix` ändern. Beispielhaft könten die erstellten Topics dann so aussehen:\n```\nibg10/feinstaub/911386/SDS_P1 2.63\nibg10/feinstaub/911386/SDS_P2 2.43\nibg10/feinstaub/911386/BME280_temperature 36.79\nibg10/feinstaub/911386/BME280_humidity 22.66\nibg10/feinstaub/911386/BME280_pressure 100271.30\nibg10/feinstaub/911386/samples 581728\nibg10/feinstaub/911386/min_micro 243\nibg10/feinstaub/911386/max_micro 28265\nibg10/feinstaub/911386/signal -56\n```\n\n## Anwendung\nAm einfachsten mit Hilfe eines SystemD Services auf einem kleinen Server laufen lassen. Hier ein beispielhaftes Service-File:\n```\n[Unit]\nDescription=Provide an API endpoint for a fine dust sensor from luftdaten.info\n\n[Service]\nType=simple\nExecStart=/usr/bin/feinstaub2mqtt -mqttBroker tcp://broker.lol.nope:1883 \nRestart=always\n\n[Install]\nWantedBy=multi-user.target\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffleaz%2Ffeinstaub2mqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffleaz%2Ffeinstaub2mqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffleaz%2Ffeinstaub2mqtt/lists"}