These are my notes setting up rtl_433 docker container on a Proxmox host inside an LXC guest...all the inceptions...
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
substitutions: | |
device_name: living-fan | |
device_description: Living Room Ceiling Fan | |
friendly_name: Living Room Fan | |
esphome: | |
name: ${device_name} | |
comment: ${device_description} | |
platform: ESP8266 | |
board: esp01_1m |
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
substitutions: | |
device_name: garage-light | |
friendly_name: Garage Light | |
default_delay: '900' # default delay of 15 minutes (900 seconds) | |
pre_off_warning: '30' # pre-off warning period in seconds | |
location: Garage | |
ha_timer_number: input_number.garage_light_timer | |
switch_name: Garage Interior Light Switch | |
motion_sensor_name: binary_sensor.motion_garage_motion_2 |
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 socket | |
import requests | |
import paramiko | |
import time | |
import xml.etree.ElementTree as ET | |
def discover_sonos_devices(): | |
MCAST_GRP = '239.255.255.250' | |
MCAST_PORT = 1900 | |
msg = ( |
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
newbigip.sh | |
#!/bin/bash | |
# This script will: | |
# - Create a 2 core 4096MB BIG-IP virtual machine | |
# - Install the image specified | |
# - Customize the image by loading bootstrap files to /config and | |
# expects: | |
# startup* | |
# .startup-env |
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
# Carro Home Daisy Smart Fan with replaced ESP-12 wifi chip #1006938428 #318843266 | |
# Store link: https://tinyurl.com/yp44ux4w | |
# Story here: http://1projectaweek.com/blog/2022/2/8/converting-a-carro-home-dc-fan-to-esp-home | |
substitutions: | |
device_name: penfan | |
device_description: Penelope's Ceiling Fan | |
friendly_name: Penelope Fan | |
esphome: |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
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
const fs = require('fs'), pki = require('node-forge').pki | |
var ca = pki.certificateFromPem(fs.readFileSync('ca.pem', 'ascii')) | |
var client = pki.certificateFromPem(fs.readFileSync('client.pem', 'ascii')) | |
try { | |
if (!ca.verify(client)) throw 'verify failed' | |
} catch (err) { | |
console.log(err) | |
} |
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
const http = require('http') | |
const server = http.createServer((req, res) => { | |
let response = `URL(${req.url.length}): ${req.url}\r\nHeaders: ${JSON.stringify(req.headers)}\r\n\r\n` | |
res.end(response) | |
console.log(response) | |
}) | |
server.on('clientError', (err, socket) => { | |
socket.end('HTTP/1.1 400 Bad Request\r\n\r\n') |
NewerOlder