# ============================================================================= # config_local.example.py - Operational / secret-value template (Pi 4 temp-humidity SHT30 module / module #2) # # Usage: cp config_local.example.py config_local.py # -> Fill in the real values and save. Never commit config_local.py # (it is excluded via .gitignore). # # WARNING: Server compatibility # This module (#2) reports SHT30 temperature/humidity readings to the cafe24 # server php/api/sensor_data.php. The server requires a raw-body signature: # X-Signature = lowercase_hex(HMAC-SHA256(key=API_KEY, msg=request body bytes)) # -> API_KEY must be "exactly identical" to API_KEY in the server config.local.php. # Threshold decisions (high/low temp, high/low humidity), SMS, and the dashboard are all done by the server. # ============================================================================= # ───────────────────────────────────────────── # Server API endpoint (SHT30 receiving server = cafe24 php/) # Web root per INSTALL_PI_SERVER.md: public_html/raspi_leck_detecter/ # ───────────────────────────────────────────── API_URL = "https://YOUR_SERVER/raspi_leck_detecter/api/sensor_data.php" # ───────────────────────────────────────────── # Shared secret key — must be exactly identical to API_KEY in the server config.local.php. Never commit. # ───────────────────────────────────────────── API_KEY = "CHANGE_ME" # ───────────────────────────────────────────── # Device identification (to distinguish multiple units). sensor_id/sensor_name use the config.py defaults (2). # ───────────────────────────────────────────── DEVICE_ID = "rpi4-sht30-01" DEVICE_LOCATION = "Server Room"