Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dallegoet/edf-api
EDF API client reverse engineered for javascript
https://github.com/dallegoet/edf-api
api edf reverse-engineering sdk
Last synced: 4 months ago
JSON representation
EDF API client reverse engineered for javascript
- Host: GitHub
- URL: https://github.com/dallegoet/edf-api
- Owner: dallegoet
- License: other
- Created: 2019-02-04T22:54:40.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-18T15:19:37.000Z (8 months ago)
- Last Synced: 2024-10-12T19:11:22.685Z (4 months ago)
- Topics: api, edf, reverse-engineering, sdk
- Language: JavaScript
- Size: 1.84 MB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# edf-api
> EDF API client reverse engineered for javascript
:no_entry: [DEPRECATED] No longer works, the edf api has been modified.
[](https://www.npmjs.com/package/@dallegoet/edf-api) [](https://standardjs.com)
## Install
```bash
yarn add "@dallegoet/edf-api"
```## Usage
```js
import { Client } from '@dallegoet/edf-api';
import moment from 'moment';const client = new 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](https://github.com/dallegoet)