@dallegoet/edf-api
v1.0.3
Published
EDF API client reverse engineered for javascript
Downloads
4
Maintainers
Readme
edf-api
EDF API client reverse engineered for javascript
Install
yarn add "@dallegoet/edf-api"
Usage
import EdfApi from '@dallegoet/edf-api';
import moment from 'moment';
const client = new EdfApi.Client('email', 'password'); // from edf.fr
const begin = moment().startOf('month');
const end = moment();
client.getDailyElectricConsumptions(begin, end).then(console.log);
// output
{ dailyElecEnergies:
[ { consumption: [Object],
day: '2019-02-02',
standingCharge: 0.368,
totalCost: 2.8453,
qualityIndicator: 1,
consumptionStatus: 'normal' } ],
monthlyElecEnergies:
[ { month: '2019-02',
beginDay: '2019-02-01',
endDay: '2019-02-05',
standingCharge: 0.368,
totalCost: 2.8453,
consumption: [Object] } ] }
License
MIT © dallegoet