Git Product home page Git Product logo

edf-api's Introduction

edf-api

EDF API client reverse engineered for javascript

⛔ [DEPRECATED] No longer works, the edf api has been modified.

NPM JavaScript Style Guide

Install

yarn add "@dallegoet/edf-api"

Usage

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

edf-api's People

Contributors

dallegoet avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

edf-api's Issues

Missing LICENSE

Amazing job at reverse engineering you have here! I'm looking forward to create a Home Assistant integration with it. However, I noticed that you didn't put any license file so I was thinking it might be a good idea to add it. Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.