Skip to content

Instantly share code, notes, and snippets.

Avatar

James Callaghan jcallaghan

View GitHub Profile
@bryanbr23
bryanbr23 / AutomatedWatering.md
Last active Jun 12, 2021
Automated Herb Plant Watering System
View AutomatedWatering.md

Automated Herb Plant Watering System

Objective

Ok, I admit it: I generally excel at killing plants largely due to neglect. Sure, I could claim work, cooking, hobbies, etc. If I’m honest, I generally forget to water them. So, I wanted to implement an automated watering system linked to home automation. I wanted to do it on the cheap. This was also a test, so if needed a throw-away experiment. Turns out it works for few (3) herb-plants that I needed to keep alive.

Ingredients

  • D1_Mini (Wemo, ESP8266).
  • Kit link.
    • 5v Relay
@basesnow
basesnow / automations.yaml
Created Aug 7, 2020
Garage Door / HVAC notifications
View automations.yaml
## Garage Door Notification
- id: '1588906118469'
alias: 'Notification: Colin''s Stuff: Garage door left open'
description: ''
trigger:
- entity_id: cover.garage_door
for: 00:10:00
platform: state
to: open
- entity_id: cover.garage_door
@Brunty
Brunty / configuration.yaml
Last active Jul 30, 2020
Message announcement in HA
View configuration.yaml
# https://github.com/snarky-snark/home-assistant-variables
var:
media_volume_living_room:
friendly_name: "Living Room Media Volume"
initial_value: 0
media_volume_matt_office:
friendly_name: "Matt Office Media Volume"
initial_value: 0
@jcallaghan
jcallaghan / Recipe.html
Last active Oct 24, 2019
WordPress recipe boilerplate with schema tags. #Website
View Recipe.html
<div itemtype="http://schema.org/Recipe">
<!-- wp:heading -->
<h2 class="cooking-heading" itemprop="name" itemtype="http://schema.org/Recipe">???</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<span class="cooking-description" itemprop="description">???</span>
<!-- /wp:paragraph -->
@whiskerz007
whiskerz007 / gist:53c6aa5d624154bacbbc54880e1e3b2a
Last active Aug 17, 2021
How to setup a community version of Proxmox VE 5.x-6.x
View gist:53c6aa5d624154bacbbc54880e1e3b2a
# Disable Commercial Repo
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list
apt-get update
# Add PVE Community Repo
echo "deb http://download.proxmox.com/debian/pve $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list
apt-get update
# Remove nag
echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" > /etc/apt/apt.conf.d/no-nag-script
@douglas
douglas / update_git_repos.sh
Created Oct 14, 2011
Update all git repositories under a base directory
View update_git_repos.sh
#!/bin/bash
# store the current dir
CUR_DIR=$(pwd)
# Let the person running the script know what's going on.
echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n"
# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do