This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type: custom:apexcharts-card | |
experimental: | |
color_threshold: true | |
graph_span: 3d | |
update_interval: 1h | |
span: | |
start: day | |
offset: '-6h' | |
now: | |
show: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# limit plex media server cpu usage, especially plex transcoder | |
# on os x (works on el capitan) | |
# | |
# prerequisite: install cpulimit | |
# brew install cpulimit | |
# | |
# arguments: | |
# -l 100 limits plex cpu usage to around 30-40 % on a mac mini | |
# running lots of other processen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################ | |
## Packages / Snips timer & fart generator | |
################################################################ | |
timer: | |
snips: | |
duration: '00:01:00' | |
counter: | |
snips_elapsed: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* The MySensors Arduino library handles the wireless radio link and protocol | |
* between your home built sensors/actuators and HA controller of choice. | |
* The sensors forms a self healing radio network with optional repeaters. Each | |
* repeater and gateway builds a routing tables in EEPROM which keeps track of the | |
* network topology allowing messages to be routed to nodes. | |
* | |
* Created by Henrik Ekblad <[email protected]> | |
* Copyright (C) 2013-2015 Sensnology AB | |
* Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch: | |
- platform: mqtt | |
name: "LED Matrix Display" | |
state_topic: "devices/led-matrix/light/on" | |
command_topic: "devices/led-matrix/light/on/set" | |
availability_topic: "devices/led-matrix/$online" | |
qos: 0 | |
payload_on: "on" | |
payload_off: "off" | |
optimistic: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
#include <PubSubClient.h> | |
#include <AccelStepper.h> | |
// Wifi network details and MQTT broker IP | |
const char* ssid = "xxx"; | |
const char* password = "xxx"; | |
const char* mqtt_server = "xx.xx.xx.xx"; | |
const char* mqtt_user = "xxx"; | |
const char* mqtt_password = "xxx"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import appdaemon.appapi as appapi | |
############################################################################################## | |
# Args: | |
# | |
# sensor: binary sensor to use as trigger. several motion detectors are seperated with , | |
# entity_on : entity to turn on when detecting motion, can be a light, script, scene or anything else that can be turned on. more lights are sepetated with , | |
# entity_off : entity to turn off when detecting motion, can be a light, script or anything else that can be turned off. Can also be a scene which will be turned on. more lights are sepetated with , | |
# delay: amount of time after turning on to turn off again. If not specified defaults to 60 seconds. | |
# | |
# Release Notes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# changed a bit of this: https://github.com/chrism0dwk/PyTado | |
import urllib | |
import urllib2 | |
from cookielib import CookieJar | |
import json | |
class Tado: | |
"""Interacts with a Tado thermostat via public API. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$reload = $_GET['reload']; | |
$id = $_GET['id']; // category id for wirres.net | |
$url = $_GET['url']; // or any other url | |
if (!isset($id) AND !is_numeric($id)) { $id = 44; } | |
if ($reload != "1") { $reload = false; } | |
$geoCacheFile = "geo-" . $id . ".json"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If someone were to die at the age of 63 after a lifelong battle with MS or Sickle Cell, we’d all say they were a “fighter” or an “inspiration”. But when someone dies after a lifelong battle with severe mental illness and drug addiction, we say it was a tragedy and tell everyone “don’t be like him, please seek help.” That’s bullshit. | |
Robin Williams sought help his entire life. He saw a psychiatrist. He quit drinking. He went to rehab. He did this for decades. That’s HOW he made it to 63. For some people, 63 is a fucking miracle. | know several people who didn’t make it past 23 and |’d do anytlhing to have 40 more years with them. | |
— anonymous reader on The Dish |