smartmeter2mqtt
Version:
Publish data from your Smartmeter with a P1 interface to your MQTT server.
49 lines • 1.82 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var P1ReaderEvents = /** @class */ (function () {
function P1ReaderEvents() {
}
Object.defineProperty(P1ReaderEvents, "ErrorMessage", {
/** Error messages */
get: function () { return 'errorMessage'; },
enumerable: true,
configurable: true
});
Object.defineProperty(P1ReaderEvents, "Line", {
/** A line is emitted as the data comes in. */
get: function () { return 'line'; },
enumerable: true,
configurable: true
});
Object.defineProperty(P1ReaderEvents, "ParsedResult", {
/** A Parsed result is emitted as it is parsed (and the crc checks out). */
get: function () { return 'dsrm'; },
enumerable: true,
configurable: true
});
Object.defineProperty(P1ReaderEvents, "Raw", {
/** As the last line of the message is received it is emits the entire message as raw. */
get: function () { return 'raw'; },
enumerable: true,
configurable: true
});
Object.defineProperty(P1ReaderEvents, "UsageChanged", {
/** Usage change is emitted after the parsed result. It keeps the last result to compare. */
get: function () { return 'usageChanged'; },
enumerable: true,
configurable: true
});
Object.defineProperty(P1ReaderEvents, "GasUsageChanged", {
get: function () { return 'gasUsageChanged'; },
enumerable: true,
configurable: true
});
Object.defineProperty(P1ReaderEvents, "SolarResult", {
get: function () { return 'solar'; },
enumerable: true,
configurable: true
});
return P1ReaderEvents;
}());
exports.default = P1ReaderEvents;
//# sourceMappingURL=p1-reader-events.js.map