{"id":20264660,"url":"https://github.com/terual/dsmr2mqtt","last_synced_at":"2025-09-07T10:39:38.619Z","repository":{"id":144745988,"uuid":"156893957","full_name":"terual/dsmr2mqtt","owner":"terual","description":"DSMR to MQTT bridge written in C","archived":false,"fork":false,"pushed_at":"2019-03-31T13:18:47.000Z","size":20,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T02:51:21.352Z","etag":null,"topics":["dsmr","dsmr5","mqtt","slimme-meters","slimmemeter","smart-meter","smartmeter"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terual.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-11-09T17:14:12.000Z","updated_at":"2023-05-31T08:58:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"5fc87e62-b16b-4b96-98b3-313259123838","html_url":"https://github.com/terual/dsmr2mqtt","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"03caac80774d5005c3a4f96daa09f83916913abf"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/terual/dsmr2mqtt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terual%2Fdsmr2mqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terual%2Fdsmr2mqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terual%2Fdsmr2mqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terual%2Fdsmr2mqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terual","download_url":"https://codeload.github.com/terual/dsmr2mqtt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terual%2Fdsmr2mqtt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274026706,"owners_count":25209739,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"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":["dsmr","dsmr5","mqtt","slimme-meters","slimmemeter","smart-meter","smartmeter"],"created_at":"2024-11-14T11:42:06.819Z","updated_at":"2025-09-07T10:39:38.591Z","avatar_url":"https://github.com/terual.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dsmr2mqtt\n\nThis utility reads the telegrams from your DSMR-compatible smart meter and sends it \nto a MQTT broker. I made use of [dsmr-p1-parser](https://github.com/lvzon/dsmr-p1-parser) and [libmosquitto](https://mosquitto.org/man/libmosquitto-3.html).\n\nI wrote this so I would be able to plug my smart meter into my OpenWRT router with a\nprefabricated cable (I used this one: https://www.sossolutions.nl/slimme-meter-kabel).\n\nI used the MQTT topic definitions of [dsmr-reader](https://github.com/dennissiemensma/dsmr-reader).\nIf you want to use other definitions, you can change the the #defines at the beginning of the *dsmr2mqtt.c* file.\n\n## Compiling\n\n### Debian/Ubuntu\n\nFirst make sure you have git installed and the necessary library.\n```\n# apt install git libmosquitto-dev\n```\n\nThen get the source code and use the command make to build the dsmr2mqtt executable:\n```\n$ cd [whatever build dir]\n$ git clone https://github.com/terual/dsmr2mqtt\n$ cd dsmr2mqtt\n$ make\n$ ./dsmr2mqtt\n```\n\n### Cross-compiling for OpenWRT\n\nTo compile this for OpenWRT, use the following [guide](https://openwrt.org/docs/guide-developer/using_the_sdk),\nplace the Makefile.openwrt in a seperate dsmr2mqtt package folder, and rename it to Makefile.\n\n## Using the tool\n\n```\nUsage:  dsmr2mqtt [-d \u003cserial_device\u003e] [-m \u003cmqtt_broker_host\u003e] [-p \u003cmqtt_broker_port\u003e]\n    -d \u003cserial_device\u003e      Serial device for DSMR device (default is /dev/ttyUSB0)\n    -m \u003cmqtt_broker_host\u003e   Host name for MQTT broker (default is localhost)\n    -p \u003cmqtt_broker_port\u003e   Host name for MQTT broker port (default is 1883)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterual%2Fdsmr2mqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterual%2Fdsmr2mqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterual%2Fdsmr2mqtt/lists"}