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.