https://github.com/robertklep/node-dsmr-parser
Dutch Smart Meter Requirements protocol parser
https://github.com/robertklep/node-dsmr-parser
Last synced: 11 months ago
JSON representation
Dutch Smart Meter Requirements protocol parser
- Host: GitHub
- URL: https://github.com/robertklep/node-dsmr-parser
- Owner: robertklep
- Created: 2016-01-19T11:21:25.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-01-25T10:49:13.000Z (over 3 years ago)
- Last Synced: 2025-09-09T13:01:48.013Z (11 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 4
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DSMR parser
Quick and dirty DSMR ([Dutch Smart Meter Requirements](http://www.netbeheernederland.nl/themas/dossier/documenten/?pageindex=3)) parser. Will only parse DSMRv4 telegrams (not DSMRv3 or older).
## Installation
```
$ npm i dsmr-parser
```
## Caveats
DSMR "telegrams" should have a CRLF line ending, and should end with a blank line. This is a requirement of the protocol, and the checksum calculation depends on it.
## Example
```
const parser = require('dsmr-parser');
const telegram = parser.parse(`\
/KFM5KAIFA-METER\r
\r
1-3:0.2.8(42)\r
...
!8A3F\r
\r
`);
console.log( telegram.objects );
```