Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 554 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 554 Bytes

dht22

Client application for DHT22 humidity and temperature sensor.

docker-compose

services:
  dht22:
    image: ghcr.io/lpgera/argus
    privileged: true
    devices:
      - /dev/mem:/dev/mem
    environment:
      - ARGUS_URL=http://backend:4000
      - ARGUS_API_KEY=<api key with write access>
      - ARGUS_SENSOR_LOCATION=<sensor location name>
      - DHT22_GPIO_PIN= # optional, defaults to 4
      - DHT22_MEASUREMENT_CRON= # optional, defaults to */5 * * * *
    command: npm run start -w dht22
    restart: unless-stopped