Giter VIP home page Giter VIP logo

Comments (4)

mfleschutz avatar mfleschutz commented on September 25, 2024

The EG compontent uses the elmada module to get day ahead market prices and carbon emission factors mainly from ENTSO-E. For it to work, you need a valid ENTSO-E API key, see Number 9 of https://github.com/DrafProject/draf#quick-start. This involves sending an email to Entsoe, receiving an API key, and storing the key using elmada.set_api_keys(entsoe="YOUR_ENTSOE_KEY") where YOUR_ENTSOE_KEY needs to be replaced with the actual key. If you don't need the elmada module, you can still build your own EG component based on the existing component in https://github.com/DrafProject/draf/blob/main/draf/components/component_templates.py.

from draf.

yamidibarra avatar yamidibarra commented on September 25, 2024

I have requested an API key and followed the steps. However I do not have access to the Entsoe platform. I requested another API with another email and it didn't work either. I waited for the weekend, thinking that maybe I didn't have active access but 3 days later it didn't work.

When I open the page it shows me: "Please be informed that the legacy REST API endpoint in no longer supported. Only new REST API endpoint is now supported by Transparency Platform".
I am not clear what is the difference between these two APIs and also since when this update was made. Maybe this is the cause of the error?

from draf.

mfleschutz avatar mfleschutz commented on September 25, 2024

Good hint. It looks like the cause. We should investigate how to access the new API. This should be an issue for https://github.com/EnergieID/entsoe-py as well.

from draf.

yamidibarra avatar yamidibarra commented on September 25, 2024

Hello @mfleschutz

I took a look at entsoe-py.
The entsoe version automatically installed by Draf is V0.2.10. However the latest version is V0.5.10.
To solve this issue it would be enough to update the entsoe-py version as recommended in:
EnergieID/entsoe-py#248

Doing this I got this ERROR though:
error_update

When I run Draf with entsoe-py V0.5.10 I get a new error. This error is possibly due to changes made from entsoe-py V0.3 (EnergieID/entsoe-py#73) in which they replace the DOMAIN MAPPINGS object with AREA.

error_update_V0_5_10

In this case, the elmada library is no longer compatible with the object included/replaced in entose-py from V0.3 onwords.

Downgrading entsoe-py to V0.2.10 and after getting an answer from the transparencyplatform, the isue is caused because the endpoint has changed.

platform_answer

here the link:

https://transparencyplatform.zendesk.com/hc/en-us/articles/15696677194644

to update the endpoint (URL) in code, go to C:\Users\User\anaconda3\envs\your_envr\Lib\site-packages\entsoe\entsoe.py

api_new

It works this way. Important is to have pandas V1.3.5

from draf.

Related Issues (6)

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.