node-red-contrib-ecojoko
v1.0.4
Published
Node-RED node to interface with Ecojoko
Downloads
1
Readme
node-red-contrib-ecojoko
node red extension for ecojoko api
In credentials settings, you must provide :
- password
exemple with a command-line :
try {
var { Ecojoko } = require("./ecojoko.js");
} catch (ex) {
var { Ecojoko } = require("./node_modules/node-red-contrib-ecojoko/ecojoko.js");
}
function main() {
var ecojoko = new Ecojoko("[email protected]", "rs9f!T9rbKMv!BZV*VPix");
ecojoko.getLoginCookies()
.then(async => {
gateways = ecojoko.getGateways()
.then(async gateways => {
console.log(JSON.stringify(gateways, null, 4));
});
}
).catch(err => {
console.error(err);
return;
})
}
main()