Einfache API für unsere Wetterstation.
# Klone das Projekt
git clone https://github.com/NULL-eV/wetterstation-api.git
# Kopiere und bearbeite .env
cp .env.example .env && nano .env
# Build und Starte Docker Container
docker compose up -d --build# Browser: http://localhost:<port>
curl http://localhost:<port># GET
# Browser: http://localhost:<port>/api/data?api_key=<dein_api_key>
curl http://localhost:<port>/api/data -H "X-API-Key: <dein_api_key>"# POST
curl -X POST http://localhost:<port>/api/data -H "X-API-Key: <dein_api_key>" -H "Content-Type: application/json" -d '{"temp": 22.5, "humd": 69.0}'