/powerUsage

Sonoff Pow R2 data collection into mongoDB using ewelink API.

Primary LanguageJavaScript

Power Usage Storage component for POW R2

This module connects to the device's web socket and stores the corresponding power statistics in a mongodb instance. Update the environment variables for your credentials and execute pm2 start pm2.json or node socket.js to run the code.

EWEEMAIL = EWEPASSWORD = EWEREGION =

You can get the region using ewelink-api's getRegion() method.