Pirionfr / pyLinky

Get your consumption data from your Enedis account (www.enedis.fr)
Apache License 2.0
37 stars 18 forks source link

The hourly data seems always empty #7

Closed Caligone closed 5 years ago

Caligone commented 5 years ago

Hi there,

First of all, thanks for this project :)

It seems the hourly data is always empty. I already enable the consumption chart on the Enedis website and I can see the 30min-chart properly.

Here is an example of input and output I get pylinky -u XXX -p XXX

{
  "hourly": [],
  "daily": [
    {
      "time": "07 Oct",
      "conso": XXX
    },
    {
      "time": "08 Oct",
      "conso": XXX
    },
    {
      "time": "09 Oct",
      "conso": XXX
    },
    {
      "time": "10 Oct",
      "conso": XXX
    },
    {
      "time": "11 Oct",
      "conso": XXX
    },
    {
      "time": "12 Oct",
      "conso": XXX
    },
    {
      "time": "13 Oct",
      "conso": XXX
    },
    {
      "time": "14 Oct",
      "conso": XXX
    },
    {
      "time": "15 Oct",
      "conso": XXX
    },
    {
      "time": "16 Oct",
      "conso": XXX
    },
    {
      "time": "17 Oct",
      "conso": XXX
    },
    {
      "time": "18 Oct",
      "conso": XXX
    },
    {
      "time": "19 Oct",
      "conso": XXX
    },
    {
      "time": "20 Oct",
      "conso": XXX
    },
    {
      "time": "21 Oct",
      "conso": XXX
    },
    {
      "time": "22 Oct",
      "conso": XXX
    },
    {
      "time": "23 Oct",
      "conso": XXX
    },
    {
      "time": "24 Oct",
      "conso": XXX
    },
    {
      "time": "25 Oct",
      "conso": XXX
    },
    {
      "time": "26 Oct",
      "conso": XXX
    },
    {
      "time": "27 Oct",
      "conso": XXX
    },
    {
      "time": "28 Oct",
      "conso": XXX
    },
    {
      "time": "29 Oct",
      "conso": XXX
    },
    {
      "time": "30 Oct",
      "conso": XXX
    },
    {
      "time": "31 Oct",
      "conso": XXX
    },
    {
      "time": "01 Nov",
      "conso": XXX
    },
    {
      "time": "02 Nov",
      "conso": XXX
    },
    {
      "time": "03 Nov",
      "conso": XXX
    },
    {
      "time": "04 Nov",
      "conso": XXX
    },
    {
      "time": "05 Nov",
      "conso": XXX
    },
    {
      "time": "06 Nov",
      "conso": XXX
    }
  ],
  "monthly": [
    {
      "time": "Nov",
      "conso": XXX
    },
    {
      "time": "Dec",
      "conso": XXX
    },
    {
      "time": "Jan",
      "conso": XXX
    },
    {
      "time": "Feb",
      "conso": XXX
    },
    {
      "time": "Mar",
      "conso": XXX
    },
    {
      "time": "Apr",
      "conso": XXX
    },
    {
      "time": "May",
      "conso": XXX
    },
    {
      "time": "Jun",
      "conso": XXX
    },
    {
      "time": "Jul",
      "conso": XXX
    },
    {
      "time": "Aug",
      "conso": XXX
    },
    {
      "time": "Sep",
      "conso": XXX
    },
    {
      "time": "Oct",
      "conso": XXX
    },
    {
      "time": "Nov",
      "conso": XXX
    }
  ],
  "yearly": [
    {
      "time": "2015",
      "conso": XXX
    },
    {
      "time": "2016",
      "conso": XXX
    },
    {
      "time": "2017",
      "conso": XXX
    },
    {
      "time": "2018",
      "conso": XXX
    }
  ]
}

Am I missing something or is this a real issue?

Cheers

zesk06 commented 5 years ago

I tried this morning, and get correct values. You have real XXX in the stdout, or did you just replace real value for privacy purpose?

Caligone commented 5 years ago

Everything is working now. I obfuscated some data when I post my issue The Enedis website doesn't seem reliable but your pyLinky lib is great Thanks for your answer