Skip to content

Instantly share code, notes, and snippets.

View TheTinkerDad's full-sized avatar
🏠
Working from home

Laszlo Merczel TheTinkerDad

🏠
Working from home
View GitHub Profile
=============================8< docker-compose.yaml, cut here 8<==========================
version: '3.2'
volumes:
pihole:
services:
pihole:
image: pihole/pihole:latest
ports:
- 80:80
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
ssid="YOUR_NETWORK_NAME"
psk="YOUR_PASSWORD"
key_mgmt=WPA-PSK
}
// Required libraries:
// - Adafruit Unified Sensor (required for DHT)
// - DHT Sensor Library
// - NTPClient
// - PubSubClient (for MQTT)
#include <DHT.h>
#include <NTPClient.h>
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
// Required libraries:
// - Adafruit Unified Sensor (required for DHT)
// - DHT Sensor Library
// - NTPClient
#include <DHT.h>
#include <NTPClient.h>
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>