Skip to content

dmarc0001/environment-server

Repository files navigation

environment sensor esp32

  • simple web gui with graphs over 2 ore 24 hours
  • led status (rgb led, 3 pieces WS2811 controlled)
  • small api for requests (return json)
    • /api/v1/today : measure data for round about 24 hours ago
    • /api/v1/data?from=2024-06-06 : get data from 2024-06-06, if availible
    • /api/v1/interval: which interval are the mesure data
    • /api/v1/version: software version
    • /api/v1/info : idf/platformio version, count of cpu cores
    • /api/v1/current : acku voltage or chip voltagfe if no acku
    • /api/v1/fscheck : tesing purposes, trigger an filesystem chcek process
    • /api/v1/fsstat : amount of space in SPIFFS filesystem an measure files
    • /api/v1/set-timezone?timezone=CET-1 : set internal timezone (for GUI)
    • /api/v1/set-loglevel?level=7 : set controller loglevel, only app
  • prometheus interface
    • /metrics

liglevels (numeric)

EMERGENCY = 0,
ALERT = 1,
CRITICAL = 2,
ERROR = 3,
WARNING = 4,
NOTICE = 5,
INFO = 6,
DEBUG = 7,