1.0.4 • Published 11 months ago
mqtt4teleinfo v1.0.4
mqtt4teleinfo
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