Open raghavian opened 8 months ago
I don't know if this is a python version mismatch or due to an update in electricitymaps API. But these two changes now fixes it:
Change time string formatting here to:
date_format = "%Y-%m-%dT%H:%M"
And the parsing of url here should not have any curly brackets.
url = "https://api.energidataservice.dk/dataset/CO2Emis?start=" + from_str + "&end=" + to_str + "&limit=4"
Recurrent error, mostly something with the python version (3.8) or the API format to electricitymaps.com. Pasting the error message here.