Git Product home page Git Product logo

Comments (7)

bokub avatar bokub commented on June 15, 2024 1

If you're interested in updating your module to work with the official API we could integrate it?

That could be fun !
I'll play a little bit with the official API next week and tell you

from bloom-contrib.

corradio avatar corradio commented on June 15, 2024 1

There's already an implementation here:
https://github.com/tmrowco/tmrowapp-contrib/blob/master/integrations/electricity/linky.js
Although it is quite unstable.
Join us on slack (slack.tmrow.com) and then we can help you in more details.

Thanks!

from bloom-contrib.

bokub avatar bokub commented on June 15, 2024

Would you consider using my linky npm module ?

It doesn't use the "official API" (which I didn't know before today), but it allows to get half-hourly values.

Do you need help on that ?

from bloom-contrib.

corradio avatar corradio commented on June 15, 2024

from bloom-contrib.

bokub avatar bokub commented on June 15, 2024

So, here I am with some updates. Using the official API was not as easy as I thought.

  • First of all, you need to create an application (which has to be validated by the Enedis team πŸ˜• )
  • You have to store some secret API keys (that cannot be shared) and use them from a back-end server
  • Once a user authorizes your app, Enedis will call an URL that you have to implement, with some sort of storage system to save the user tokens (which change every few hours)

So here is the conclusion:
I cannot update my module to work with the official API, because a module is not enough. You need a server, API keys, and a database to make everything work.

from bloom-contrib.

corradio avatar corradio commented on June 15, 2024

from bloom-contrib.

bokub avatar bokub commented on June 15, 2024

The "you need a server" part is unacceptable. Can we contact them?

That's not how the 'API' is designed.
The end user is supposed to land on a webpage owned by enedis saying "Do you give APP-XXX access to your data during a period of 1 month" ?
When the user says "Yes I do", Enedis calls an URL owned by you with tokens in it, which you have to save.
Then, you can use these user-related tokens to call the Enedis API

Are you able to do make the changes?

Sure, I may just need some help to understand how your app works and what I should implement

from bloom-contrib.

Related Issues (20)

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.