Skip to content

Instantly share code, notes, and snippets.

View bonelifer's full-sized avatar

William Jacoby bonelifer

View GitHub Profile
@bonelifer
bonelifer / doorbell.yaml
Created May 3, 2020 19:20 — forked from frenck/doorbell.yaml
Blog: For just $2, convert any existing wired doorbell into a smart doorbell; using ESPHome and Home Assistant: https://frenck.dev/diy-smart-doorbell-for-just-2-dollar/
---
esphome:
name: doorbell
platform: ESP8266
board: esp01_1m
# WiFi connection, correct these
# with values for your WiFi.
wifi:
ssid: !secret wifi_ssid
@bonelifer
bonelifer / HASS.md
Created May 3, 2020 19:31
Home Assistant Linux Docker installation

Hassio FAQ

Frequently asked questions from the Discord channel

This first one isn't a question, but a strong recommendation:

INSTALL ONE OF THE SSH ADDONS

Do it! Do it now! Pick one from either the official repo or the community repo (recommended) and install it, set up a user/pass or key, and then forget about it if you want. But leave it running and set to run at startup.

I run in a VM and already have SSH access. Why would I need to do that?

@bonelifer
bonelifer / hassio_ubuntu_install_commands.sh
Created May 3, 2020 19:58 — forked from frenck/hassio_ubuntu_install_commands.sh
Simple install command for installing Hass.io on a Generic Ubuntu/Debian machine
sudo -i
add-apt-repository universe
apt-get update
apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat software-properties-common
curl -sSL https://get.docker.com | sh
systemctl disable ModemManager
apt-get purge modemmanager
curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -s
#!/usr/bin/env bash
###########################################################
###########################################################
## ##
## THIS SCRIPT SHOULD ONLY BE RUN ON GENERIC LINUX ##
## ##
###########################################################
###########################################################
set -o errexit # Exit script when a command exits with non-zero status
set -o errtrace # Exit on error inside any functions or sub-shells
@bonelifer
bonelifer / install-hassio
Created May 3, 2020 20:01 — forked from davidvidmar/install-hassio
Install HASS.IO on Ubuntu Server 18.04
# source: https://www.juanmtech.com/set-up-hassio-in-docker-and-in-an-ubuntu-server/
# last update: 26 Oct 2019, DaVidmar
#
# update system and packages
#
apt-get update
apt-get upgrade
# INSTALL DOCKER
@bonelifer
bonelifer / environment
Last active May 29, 2020 15:59
WXForcast SystemD files
WXFORECAST_PUSHOVER_APP_KEY=randomAPPKey
WXFORECAST_COORDINATES=31.02,-90.56
PUSHOVER_DEVICE=weather
PUSHOVER_USER_KEY=randomGroupKey
# You should make sure these are installed before trying to build RadioTray-NG on Ubuntu
#
# sudo apt-get install lsb_release libcurl4-openssl-dev libjsoncpp-dev libxdg-basedir-dev libnotify-dev libboost-filesystem-dev libgstreamer1.0-dev libappindicator3-dev libboost-log-dev libboost-program-options-dev libgtk-3-dev libnotify-dev lsb-release libbsd-dev libncurses5-dev libglibmm-2.4-dev libwxgtk3.0-gtk3-dev libwxgtk3.0-gtk3-0v5 cmake
# On initial RUN, run these five commands before running this script
#mkdir ~/CODE/
#cd ~/CODE/
#git clone https://github.com/ebruck/radiotray-ng.git
#cd radiotray-ng
#mkdir build
@bonelifer
bonelifer / backup
Created July 22, 2020 01:43 — forked from munyari/backup
#!/usr/bin/env bash
set -o errexit # Exit on most errors
set -o nounset # Dissallow expansion of unset variables
DISK=/media/backup
export BORG_PASSPHRASE="$(pass borg)"
BORG_REPOSITORY="$DISK/borg"
# DESC: notify the user that backups are done
@bonelifer
bonelifer / backup.sh
Created July 22, 2020 01:45 — forked from da-n/backup.sh
Backup script with Pushover notifications. Pushover is optional, you can edit it out if not required. To get this script running check all the parameters at the top.
#!/bin/bash
DATE=`date +%Y%m%d-%H%M%S`
PROGNAME=$(basename $0)
APPEND=-$DATE.tar.gz
# Set the local backup directory, ensure that this directory exists
LOCALDIR=$HOME/backups/
# Set the remote directory to backup