GithubHelp home page GithubHelp logo

mharias / mercado_electrico Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 5.0 3.34 MB

Repositorio con funciones y scripts para descarga de datos y visualización

License: Creative Commons Zero v1.0 Universal

Jupyter Notebook 99.93% Python 0.07%

mercado_electrico's Introduction

mercado_electrico

Repositorio con funciones y scripts para descarga de datos y visualización

mercado_electrico's People

Contributors

mharias avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mercado_electrico's Issues

como leer datos de un dia anterior

Hola. Tengo un token para acceder a la API de ESIOS y me funciona bien para las URLs basicas como

url='https://api.esios.ree.es/indicators/1001'
url='https://api.esios.ree.es/indicators/1739'

pero en realidad quiero leer datos del dia anterior y no me funciona

url='https://api.esios.ree.es/indicators/1001?vis=1&start_date='$p1'T00%3A00&end_date='$p1'T23%3A00&groupby=hour&geoids=8741'
Bien de hecho no me funciona ningun añadido ni filtro :

url='https://api.esios.ree.es/indicators/1001?vis=1'
url='https://api.esios.ree.es/indicators/1001?geoids=8741'

Tienes alguna idea al respecto ?

===

Mi codigo es

#!/bin/bash

url='https://api.esios.ree.es/indicators/1001'
tok='1234567812345678234534566565767688882ca21b5a04cdb4e8d7c0f84d7233'

curl $url -X GET \
    -H "Accept: application/json; application/vnd.esios-api-v2+json" \
    -H "Content-Type: application/json" \
    -H "x-api-key:\"$tok\"" 
rc=$?
echo '>>> CURL rc is ('$rc').'

Gracias por cualquier indicacion.

token

Estoy intentando extraer info de esios con python y revisando el codigo, no me queda claro el uso del token. Tengo un token habilitado pero no se donde debo incluirlo en el codigo para que me funciones. Agradeceria si pudieseis dar mas detalle

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.