Skip to content

Instantly share code, notes, and snippets.

View xbmcnut's full-sized avatar

xbmcnut

View GitHub Profile
@ispiropoulos
ispiropoulos / shelly.py
Created August 28, 2018 09:16
Shelly Switch Home Assistant Component
"""
Support for The Shelly Wifi switch.
Save this file inside ".homeassistant/custom_components/switch" (create the folders if not present) and restart HASS.
usage example:
switch:
- platform: shelly
switches:
@dale3h
dale3h / ui-lovelace.yaml
Created July 23, 2018 22:32
[Lovelace] Create a header by using `panel: true` with nested stack cards
title: Home
views:
- title: Header
icon: mdi:car
panel: true
cards:
- type: vertical-stack
cards:
- type: glance
entities:
version: '3.1'
services:
unifi:
container_name: unifi
restart: unless-stopped
image: linuxserver/unifi
volumes:
- /srv/docker/unifi:/config
environment:
- PGID=0
registers:
- name: L1 Voltage
unit_of_measurement: V
register: 0
data_type: float
precision: 2
count: 2
- name: L2 Voltage
unit_of_measurement: V
register: 2
@GManzato
GManzato / pm2.sh
Created September 3, 2017 09:59
Run PM2 on a Synology , file need to be create in `/usr/local/etc/rc.d`
#!/bin/sh
: ${pm2_user="root"}
command="/usr/local/lib/node_modules/pm2/bin/pm2"
pidfile="/home/${pm2_user}/.pm2/${name}.pid"
super() {
@tshort
tshort / config.js
Created July 16, 2017 18:13
MagicMirror setup
var config = {
port: 8080,
ipWhitelist: [], // Set [] to allow all IP addresses.
language: "en",
timeFormat: 12,
units: "imperial",
modules: [
{
module: 'MMM-ProfileSwitcher',
@kibotu
kibotu / GUIDE.md
Last active November 3, 2022 14:04
magic mirror steps

Magic Mirror

Introduction

I'm assembling two magic mirrors for me and my girlfriend. Based on this video tutorial: https://www.youtube.com/watch?v=fkVBAcvbrjU.

However with a slight twist. I'm also installing a webcam and microphone so we can use both mirrors for video conferences.

And finally I'm going to add voice control support using google assistant.