const api = require ('node-palmettosolar');
let token = await api.authenticate('[email protected]', 'password');
let user = await api.user(token);
let sitestatus = await api.siteStatus(token);
let energy = await api.energy(token, '2022-04-23', api.intervals.week, api.values.total);
let notifications = await api.notifications(token);
adampaulberg / node-palmettosolar Goto Github PK
View Code? Open in Web Editor NEWnode library to get json data back from palmetto solar app