florianbeer/grafana-netatmo

TypeError: lastData() got an unexpected keyword argument 'station'

Closed this issue · 6 comments

Hi, trying to execute the script, I am facing this error:

Traceback (most recent call last):
File "netatmo_influx.py", line 39, in
for module, moduleData in weatherData.lastData(station=station_name, exclude=3600).items():
TypeError: lastData() got an unexpected keyword argument 'station'

Any idea, what causes this error message?

Thanks and Regards,
Torsten

Same here

Is this project no longer maintained? Seems, I am not the only one, that has this problem.

This error is from an version update of lnetatmo. The last version I used was 1.6.0 and it worked with it. You may want to downgrade the package.

This error is from an version update of lnetatmo. The last version I used was 1.6.0 and it worked with it. You may want to downgrade the package.

Can you please let me know, how to downgrade to the 1.6.0 version of lnetatmo?

pip install --upgrade lnetatmo==1.6.0

Don't get caught by the word upgrade, pip can upgrade and downgrade packages with the upgrade flag.

Great! With 1.6.0 there's no problem with the script.