
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
teleinfo-js
Advanced tools
Teleinformation module to read frames from ErDF / Enedis main circuit breaker
Node module to read teleinformation frames from ErDF / Enedis main circuit breaker (in France).
Wrapped on serialport module to read from a serial / USB port. Tested on RaspberryPi.
Based on Laurent HUET work.
serialport module: sending serial data or emulate it from USB port.TIC must be set to Historique mode.mkdir teleinfo-test && cd teleinfo-test
npm install teleinfo-js
ls /dev/tty*
# this will scan serial ports. Plug/unplug your adapter to look after a change.
# Then for example 'ttyUSB0', type:
cd node_modules/teleinfo-js && npm run start -- /dev/ttyUSB0
You should receive more than 1 frame per minute. If so, you can start to write your own implementation.
const teleinfo = require('teleinfo')
// use your own port here:
const emitter = teleinfo('/dev/ttyUSB0')
emitter.on('rawFrame', function (data) {
console.log('rawFrame', data)
// You will receive ALL raw data.
})
emitter.on('error', function (error) {
console.error(error)
// In case of error from serialport module.
})
emitter.on('connected', function (data) {
console.log('connected', data)
// When connection succeed and first data is received.
})
emitter.on('failure', function (data) {
console.log('failure', data)
// When connection cannot be established.
})
emitter.on('frame', function (data) {
console.log('frame', data)
// You will receive all parsed frames.
})
emitter.on('change', function (data) {
console.log('change', data.changes)
// You will receive only changes.
})
emitter.on('diff', function (data) {
console.log('diff', data.diff)
// You will receive a full structured diff object for convenience.
})
You can add inhibitors to your teleinfo instance. These will avoid too many change/diff events to be triggered.
For example, to trigger events when PAPP value delta is above 30W, or HCHP/HCHC index delta are above 5Wh:
const emitter = teleinfo('/dev/ttyUSB0', { 'PAPP': 30, 'HCHP': 5, 'HCHC': 5 })
By default, inhibitors = { 'PAPP': 20 }.
Adaptations and improvements (c) 2020 GXApplications. Based on Laurent HUET work. | License
FAQs
Teleinformation module to read frames from ErDF / Enedis main circuit breaker
We found that teleinfo-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.