Raspberry Pi

Pi-hole

Purpose

Provides internal network DNS and ad-blocking services.

Parts

Environment Monitoring

Purpose

Records temperature and humidity data, to be collected using Prometheus

Parts

Assembly

  • Mark off and cut the hole in the top of the case for the sensor.
    Cut out
  • Solder wires to the DHT22 (note, pin 3 is unused).
    Solder wires
  • Tape off the exposed wires with electrical tape.
    Protect wires
  • Solder the wires to the Raspberry Pi Zero W.
    Solder Pi
  • Push the DHT22 into the hole in the sensor, pressure should hold it into place.
    Completed

Setup

  • Install Raspbian
  • Edit /etc/wpa_supplicant/wpa_supplicant.conf to setup Wi-Fi:
    country=US
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    network={
      ssid="wifiname"
      psk="password"
      key_mgmt=WPA-PSK
    }
    
  • Install clintjedwards/dht22_exporter
  • Connect Prometheus to the dht22_exporter.
  • Connect Grafana to Prometheus.
    Grafana

Notes

  • Residule heat from the circuit board may increase the readings from the DHT22, you man need to calibrate the temperature with an known accurate thermometer and add an offset to the exporter.