rki-covid-api icon indicating copy to clipboard operation
rki-covid-api copied to clipboard

Feature Request: Support http instead of https

Open Maruu23 opened this issue 3 years ago • 3 comments

First of all, great project.

I, and some other Smart Home guys would like to include the Corona statistics in our Smart Home, so we can see every day what are the latests stats. Unfortunatly the Smart Home Server only supports http, not https. Maybe you could also allow requests via http to the https://api.corona-zahlen.org/ endpoints? As the data is published by RKI for all, https isn't mandatory.

Best wishes, Hannes

Maruu23 avatar Feb 17 '21 19:02 Maruu23

Yes, please add http access.

markushartmann avatar Feb 18 '21 10:02 markushartmann

Hey @Maruu23

What Smart Home Server are you using? I don't want to give up the redirect to https.

Maybe you can try running the server at your local machine. See this guide: https://github.com/marlon360/rki-covid-api#host-it-yourself

If your Smart Home Sever uses docker it is very easy to integrate it in the docker-compose.

marlon360 avatar Feb 23 '21 13:02 marlon360

We are using Loxone, a very common Smart Home System. Loxone is a SPS based system and is unfortunately not running in a docker container. A local server could be a solution, but setting up a local server only for running the API is too much effort. There are even more loxone users, that are interested in using your API (I asked in the forum) and all of them do then need to setup their own API. Maybe you could rethink your decision or provide an extra endpoint or parameter (GET or Header) to accept http connections.

Thank you in advance!

Maruu23 avatar Feb 23 '21 13:02 Maruu23