{"id":44634765,"url":"https://github.com/cwi-dis/iotsasmartmeter","last_synced_at":"2026-02-14T17:20:47.408Z","repository":{"id":97041203,"uuid":"89963640","full_name":"cwi-dis/iotsaSmartMeter","owner":"cwi-dis","description":"iotsaSmartMeter reads electricity and gas usage of a dutch Smart Meter through the standardised P1 port and makes the data available on the net.","archived":false,"fork":false,"pushed_at":"2025-04-27T20:03:56.000Z","size":3737,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-09-10T07:40:48.449Z","etag":null,"topics":["esp8266-arduino","iot","iotsa"],"latest_commit_sha":null,"homepage":"","language":"C++","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/cwi-dis.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-05-01T21:15:34.000Z","updated_at":"2025-04-27T20:03:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"a358024e-9b4f-4ae0-a8f9-1da4380f947f","html_url":"https://github.com/cwi-dis/iotsaSmartMeter","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/cwi-dis/iotsaSmartMeter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwi-dis%2FiotsaSmartMeter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwi-dis%2FiotsaSmartMeter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwi-dis%2FiotsaSmartMeter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwi-dis%2FiotsaSmartMeter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cwi-dis","download_url":"https://codeload.github.com/cwi-dis/iotsaSmartMeter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwi-dis%2FiotsaSmartMeter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29450850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T15:52:44.973Z","status":"ssl_error","status_checked_at":"2026-02-14T15:52:11.208Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["esp8266-arduino","iot","iotsa"],"created_at":"2026-02-14T17:20:46.702Z","updated_at":"2026-02-14T17:20:47.403Z","avatar_url":"https://github.com/cwi-dis.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iotsaSmartMeter - web interface to dutch smart meter\n\n![build-platformio](https://github.com/cwi-dis/iotsaSmartMeter/workflows/build-platformio/badge.svg)\n![build-arduino](https://github.com/cwi-dis/iotsaSmartMeter/workflows/build-arduino/badge.svg)\n\niotsaSmartMeter reads electricity and gas usage of a dutch Smart Meter through the standardised P1 port and makes the data available on the net.\n\nHome page is \u003chttps://github.com/cwi-dis/iotsaSmartMeter\u003e. \nThis software is licensed under the [MIT license](LICENSE.txt) by the   CWI DIS group, \u003chttp://www.dis.cwi.nl\u003e.\n\nDetails on the standardised P1 port on dutch smart meters (including protocol, pinout, etc) can be found at \u003chttp://files.domoticaforum.eu/uploads/Smartmetering/DSMR%20v4.0%20final%20P1.pdf\u003e\n## Software requirements\n\n* Arduino IDE, v1.6 or later.\n* The iotsa framework, download from \u003chttps://github.com/cwi-dis/iotsa\u003e.\n\n## Hardware requirements\n\n* a iotsa board.\n* A RJ25 6P6C connector (often incorrectly called RJ11 6P6C).\n\nNote: the code compiles on esp32, but this is untested (as of January 2021).\n\n## Hardware construction\n\nInstructions for constructing the hardware are provided in the _extras_ subfolder. [p1reader-board.pdf](extras/p1reader-board.pdf) has the hardware diagram for the iotsa board. The [Fritzing](http://fritzing.org/home/) project is also available as [p1reader-board.fzz](extras/p1reader-board.fzz).\n\nThe P1 port provides power, but unfortunately not enough for the ESP-12 to operate under all circumstances, so you will have to add an external power supply.\n\n## Building the software\n\nUnless you have used different GPIO pins there is nothing to configure.\n\nThe _P1Parser_ class parses most common P1 fields. If there are more fields you want: modify `P1Parser::next()`, after consulting the P1 documentation referenced above.\n\nCompile, and flash either using an FTDI or over-the-air.\n\n## Operation\n\nThe first time the board boots it creates a Wifi network with a name similar to _config-iotsa1234_.  Connect a device to that network and visit \u003chttp://192.168.4.1\u003e. Configure your device name (using the name _smartmeter_ is suggested), WiFi name and password, and after reboot the iotsa board should connect to your network and be visible as \u003chttp://smartmeter.local\u003e.\n\nAccessing \u003chttp://smartmeter.local/p1\u003e will read a raw P1 telegram in text format.\n\nAccessing \u003chttp://smartmeter.local/p1?format=xml\u003e will read a P1 telegram and return the data in XML form.\n\nAccessing \u003chttp://smartmeter.local/p1?format=json\u003e will read a P1 telegram and return the data in JSON form.\n\nEach call will result in a new telegram being requested from the smart meter, so there may be a delay of up to 10 seconds before the data is returned (as per the P1 standard).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwi-dis%2Fiotsasmartmeter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcwi-dis%2Fiotsasmartmeter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwi-dis%2Fiotsasmartmeter/lists"}