Skip to content

Instantly share code, notes, and snippets.

View nofuturekid's full-sized avatar

Thomas Kroll nofuturekid

View GitHub Profile
@nofuturekid
nofuturekid / autodiscovery.sh
Last active October 13, 2023 20:38 — forked from jannickfahlbusch/autodiscovery.sh
HomeAssistant MQTT Autodiscovery for wmbusmeters
#!/usb/bin/env bash
# Required variables
MQTT_HOST="" # Your mqtt host
MQTT_USERNAME="" # Your mqtt username
MQTT_PASSWORD="" # Your mqtt password
METERS_FILES="" # Location of wmbusmeters.d directory
MQTT_DISCOVERY_PREFIX="homeassistant"
@nofuturekid
nofuturekid / sync_fork.sh
Last active August 24, 2017 20:24
Syncing fork with upstream
# Foreword: Your fork is the "origin" and the repository you forked from is the "upstream".
# Let's assume that you cloned already your fork to your computer with a command like this:
#
git clone git@github.com:your_name/project_name.git
cd project_name
# If that is given then you need to continue in this order:
#
# Add the "upstream" to your cloned repository ("origin"):
#