Skip to content

Instantly share code, notes, and snippets.

View JohnNeville's full-sized avatar

John Neville JohnNeville

View GitHub Profile
@kdorff
kdorff / moisture-1.yml
Created May 18, 2022 02:32
ESPHome code for moisture sensors
# Reads analog data using an ads1115. Three moisture sensors and a battery sensor.
# Goes to sleep for an hour at a time.
# Uses a helper input_boolean to keep it from going to sleep, in case you want to update it.
esphome:
name: moisture-1
platform: ESP32
board: esp32dev
on_boot:
then:
@pldubouilh
pldubouilh / caddy.conf
Created December 23, 2018 15:05
fail2ban filter for http 401
# lives in filter.d/
[Definition]
failregex = ^<HOST> -.* HTTP/[0-9].[0-9]" 401
ignoreregex =