Closed thebino closed 3 years ago
the SSL certificate does not match the FQDN of the API server :-( https://www.ssllabs.com/ssltest/analyze.html?d=rki.marlon%2dlueckert.de&ignoreMismatch=on&latest
maybe switch API base URL in const.py to https://api.corona-zahlen.org/districts https://api.corona-zahlen.org/docs/endpoints/districts.html
Logger: custom_components.rki_covid Source: helpers/update_coordinator.py:166 Integration: RKI Covid numbers (documentation, issues) First occurred: 1:10:01 AM (1 occurrences) Last logged: 1:10:01 AM Error fetching rki_covid data: Error communicating with API: Cannot connect to host rki.marlon-lueckert.de:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1125)')]
Author of api writes in https://github.com/marlon360/rki-covid-api/ that rki has blocked him for excessive traffic. so we need to wait if this can be resolved at all.
Workaround to get data directly from rki:
I have mixed feelings with changing the API: 1) using the RKI api directly could lead to the same excessive traffic and RKI will close the api for everyone. 2) build / fork marlons' API and add caching
Although it's a bit off topic: Some example API calls might be useful: i.e 7 Day Incidence for Germany, same for a Landkreis, ... For Cologne: https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=GEN%20%3D%20%27Köln%27&outFields=cases7_per_100k&returnGeometry=false&f=json But how would it look for Germany in total?
APIs für alle level DE https://npgeo-corona-npgeo-de.hub.arcgis.com/datasets/dd4580c810204019a7b8eb3e0b329dd6_0 Bundesländer https://npgeo-corona-npgeo-de.hub.arcgis.com/datasets/ef4b445a53c1406892257fe63129a8ea_0 Landkreise https://npgeo-corona-npgeo-de.hub.arcgis.com/datasets/917fc37a709542548cc3be077a786c17_0
Yep, jedoch kriege ich Laie damit leider keine "Inzidenz für 7 Tage für Deutschland" hin...
Is there a solution at the moment?
API ist running :) Everything works again.
The API has been fixed by adding a Proxy to hide the servers IP Adress: https://github.com/marlon360/rki-covid-api/issues/65 Hopefully this Proxy will not also be blocked by RKI
Since this morning at 00:27 the entities do not provide any values.
Have restarted HA and find some log entries. The first entry is:
Error fetching rki_covid data: Error communicating with API: Cannot connect to host rki.marlon-lueckert.de:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1125)')]
More Entries:
_Originally posted by @Whippie72 in https://github.com/thebino/rki_covid/issues/9#issuecomment-760653507_