# ============================================================================= # config_local.example.py - Operational / secret-value template (Pi 4 PMS7003 particulate-matter module) # # 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 reports PMS7003 particulate-matter (PM1.0/PM2.5/PM10, ug/m3) 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 PM2.5 / PM10), SMS, and the dashboard are all done by the server. # ============================================================================= # ----------------------------------------------- # Server API endpoint (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. The PMS7003 co-locates on an EXISTING leak node and reports under the # SAME sensor_id as that node's leak sensor (distinguished by metric_type="pms7003"). # - Pi-C leak node: keep the config.py default (SENSOR_ID=3) - leave SENSOR_ID commented out. # - id=1 leak node: uncomment and set SENSOR_ID=1 (and an appropriate SENSOR_NAME). # ----------------------------------------------- DEVICE_ID = "rpi4-pms7003-01" DEVICE_LOCATION = "Server Room" # ----------------------------------------------- # Per-device overrides (optional). Uncomment on the id=1 node. # ----------------------------------------------- # SENSOR_ID = 1 # SENSOR_NAME = "Sensor 1 (PMS7003)" # REPORT_INTERVAL = 600 # UART_PORT = "/dev/serial0"