UNPKG

node-red-contrib-discovergy-meter

Version:

Allows to work with a Discovergy Smart Meter (Electricity only) within Node RED flows

12 lines (10 loc) 291 B
module.exports = async function(config) { const axios = require("axios"); let meterinfo = {}; if(typeof config.depot == "undefined") { return 0; } else { let depot = await axios.get("https://api.corrently.io/core/depot?account="+config.depot); return depot.data; } };