mqtt4teleinfo

1.0.4 • Public • Published

mqtt4teleinfo

npm License GitHub Workflow Status Coverage Status npm

Publish values from french electricity meter to MQTT

Installing

Simply install the package over npm. This will install all the required dependencies.

npm install -g mqtt4teleinfo

Usage

Usage: mqtt4teleinfo.js [options]

Options:
  -a, --serPort       Serial port                      [default: "/dev/ttyUSB0"]
  -b, --ticMode       Teleinformation mode
                         [choices: "standard", "historic"] [default: "standard"]
  -u, --mqttUrl       mqtt broker url              [default: "mqtt://127.0.0.1"]
  -t, --mqttTopic     mqtt topic prefix                    [default: "teleinfo"]
  -v, --logVerbosity  possible values: error, warn, info, debug[default: "warn"]
  -s, --sslVerify     allow ssl connections with invalid certs
      --version       Show version number                              [boolean]
  -h, --help          Show help                                        [boolean]

Example

mqtt4teleinfo -a /dev/ttyUSB1 -b historic

MQTT Frame Output Example

[teleinfo/012345678910] {
  ADCO: '012345678910',
  OPTARIF: 'BASE',
  ISOUSC: '15',
  BASE: '003776419',
  PTEC: 'TH',
  IINST: '001',
  IMAX: '010',
  PAPP: '00000',
  MOTDETAT: '000000'
}

Versioning

mqtt4teleinfo is maintained under the semantic versioning guidelines.

See the releases on this repository for changelog.

License

This project is licensed under MIT License - see the LICENSE file for details

/mqtt4teleinfo/

    Package Sidebar

    Install

    npm i mqtt4teleinfo

    Weekly Downloads

    6

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    22.9 kB

    Total Files

    9

    Last publish

    Collaborators

    • wochafr