Skip to content

Instantly share code, notes, and snippets.

View rlust's full-sized avatar

rlust

View GitHub Profile
@alex27riva
alex27riva / rtl_tcp.service
Created January 31, 2022 19:18
Systemd service for running rtl_tcp on startup
[Unit]
Description=Software Defined Radio TCP Server
Requires=network.target
After=network.target
[Service]
ExecStart=/usr/bin/rtl_tcp -a 0.0.0.0
Restart=on-failure
KillMode=control-group
@eklex
eklex / 80-mount-usb-to-media-by-label.rules
Last active April 16, 2024 18:49
udev rule for Home Assistant OS (hassio) to mount USB drives into the Supervisor Media directory
#
# udev rule
# Mount USB drive to the media directory using the partition name as mount point
#
# Description:
# Created for Home Assistant OS, this rule mounts any USB drives
# into the Hassio media directory (/mnt/data/supervisor/media).
# When a USB drive is connected to the board, the rule creates one directory
# per partition under the media directory. The newly created partition is named
# as the partition name. If the partition does not have a name, then the following
@Staars
Staars / TASMESH.md
Last active June 24, 2023 02:00
WIP driver TASMESH

TAS-MESH

This driver provides the ability to move TASMOTA-devices out of the WLAN by using ESP-NOW to communicate bidirectional with an internal protocol.
Thus the workload for the WLAN-router is reduced and with the reduced overhead the local 2,4-GHz-band will be freed of some traffic. Power consumption of the nodes will be reduced significantly allowing better battery powered projects with TASMOTA. Automatic payload encryption is applied using the WiFi-password1 as the key. A maximum of 32 bytes of this password is used for the ChaCha20Poly1305 authenticated encryption as the key. As ACK/NACK messages seem to be not reliable on both ESP-platforms, the method "send-and-pray" is used.

Working priciple

@altryne
altryne / Badges color change config.yaml
Last active February 22, 2021 01:00
Sharing some home assistant settings, if you're interested in my setup, see kit.co/altryne
badges:
- entity: person.alex
style:
ha-state-label-badge:
$:
ha-label-badge:
$: |
.label-badge .label span{
color: #000 !important;
}
esphome:
name: m5cam_esp32_camera
platform: ESP32
board: m5stack-core-esp32
wifi:
ssid: !secret wifi
password: !secret wifi_pw
# Enable logging
@frenck
frenck / pow.yaml
Created January 22, 2019 22:35
Sonoff POW R2 Washing Machine Sensor Example
esphomeyaml:
name: pow
platform: ESP8266
board: esp01_1m
board_flash_mode: dout
wifi:
ssid: 'Demo'
password: 'Livestream'
##############################################################################
# Automations for handling toggle state buttons on page 3
automation:
# Set font and text for toggle buttons on device connection
- alias: hasp_bench_p6_ToggleInit
trigger:
- platform: state
entity_id: 'binary_sensor.bench_connected'
to: 'on'
- platform: homeassistant
@jonathantneal
jonathantneal / recovery.sh
Last active November 10, 2023 01:01
Create or update macOS Big Sur (or Catalina, or Mojave) Recovery Partition Without Reinstalling
#!/bin/sh
# Set the macOS installer path as a variable
MACOS_INSTALLER="/Applications/$(ls /Applications | grep "Install macOS")"
MOUNT_POINT="$MACOS_INSTALLER/Contents/SharedSupport"
echo "macOS installer is \"$MACOS_INSTALLER\""
# Set the target disk as a variable
TARGET=$(diskutil info "$(bless --info --getBoot)" | awk -F':' '/Volume Name/ { print $2 }' | sed -e 's/^[[:space:]]*//')
echo "Target disk is \"$TARGET\""
@frenck
frenck / hassio_ubuntu_install_commands.sh
Last active February 1, 2023 05:38
Simple install command for installing Hass.io on a Generic Ubuntu/Debian machine
Unbuntu is no longer support by the Home Assistant project.
The installation commands previous listed here, are not up 2 date, not recommended, not supported and, therefore, removed.
@debsahu
debsahu / HAColorSensor.ino
Created April 7, 2018 04:32
ESP8266 reading from TCS34725 Color Sensor and changing RGB Colors in Home Assistant
#include <ColorName.h> // https://github.com/debsahu/ColorName
#include "Adafruit_TCS34725.h" // https://github.com/adafruit/Adafruit_TCS34725
#include <SSD1306.h> // https://github.com/ThingPulse/esp8266-oled-ssd1306
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <Bounce2.h> // https://github.com/thomasfredericks/Bounce2
//#include "secret.h"
#define BUTTON_PIN 0
#ifndef SECRET