Skip to content

NULL-eV/wetterstation-api

Repository files navigation

Wetterstation API

Einfache API für unsere Wetterstation.

Inhalt

Installation

# 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

Nutzung

Check Status

# Browser: http://localhost:<port>

curl http://localhost:<port>

HTTP Requests

# 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}'

About

Einfache API für unsere Wetterstation.

Topics

Resources

License

Stars

Watchers

Forks