kpoppel / eforsyning-api

Use eforsyning.dk API services outside their web-apps.
13 stars 0 forks source link

Getting error #1

Open HinnerupInfo opened 1 year ago

HinnerupInfo commented 1 year ago

Exception has occurred: KeyError

'TForbrugsLinje' File "K:\work\Blackmagic Development\eforsyning-api-main\eforsyning-api-main\eforsyning.py", line 210, in prettyprint_energy_data for fl in data['ForbrugsLinjer']['TForbrugsLinje']:

File "K:\work\Blackmagic Development\eforsyning-api-main\eforsyning-api-main\eforsyning.py", line 251, in prettyprint_energy_data(data)

Login success

Year : 2022 Year Start: 01-07-2022 Year End : 30-06-2023

#######################################################

Monthly Data full year

####################################################### Periode: 01-07-2020 - 30-06-2021

HinnerupInfo commented 1 year ago

Can it be becourse i dont have any lines ? , new installation

image

kpoppel commented 1 year ago

It could be because you have a new installation, but if you get data from the web-site then I don't think that is the case.

This code-base is slightly out of date If you look into code here: https://github.com/kpoppel/homeassistant-eforsyning/tree/main/custom_components/eforsyning/pyeforsyning it is the latest available.

If you use this with HomeAssistant it should just work .-)