Skip to content

Instantly share code, notes, and snippets.

View koriwi's full-sized avatar
🤩
creating pcbs with my msla 3d printer

Kilian Gosewisch koriwi

🤩
creating pcbs with my msla 3d printer
View GitHub Profile
@koriwi
koriwi / README.md
Created December 23, 2023 20:35
Switch to port range from random port for udp

Home Assistant UDP port range

This is a "patch" (not really for ease of use) to allow UDP communication in non-host-mode docker.

Why?

When home assistant opens a UDP port for streaming (esphome voice_assistant, media_player, etc) it just asks for a random port from the OS. Not knowing which ports will be used makes it impossible to tell your container system which ports to forward/allow.

How does it fix this?

This just adds a simple loop which tries to open a port from always the same starting port and tries to find the next open one.

Ok, tell me the range pls!

8124-8156

@koriwi
koriwi / motion-illuminance.yaml
Created October 24, 2022 19:01 — forked from Danielbook/motion-illuminance.yaml
Motion and Illuminance level
blueprint:
name: Motion-activated Light with illuminance
description: Turn on a light when motion is detected and illuminance is below a set Lux level.
domain: automation
input:
motion_entity:
name: Motion Sensor
selector:
entity:
domain: binary_sensor
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
char hex[] = "00020000000000020000000000000000\
000000000000017dfa00000000000000\
0000000000000ed52ac0000000000000\
00000000000035a88534000000000000\
000000000000ee465048000000000000\
000000000001b1554405000000000000\
{
"openapi": "3.0.0",
"x-api-id": "apizipapp",
"info": {
"version": "1.0.0",
"title": "api.zip.app"
},
"servers": [
{
"url": "https://api.zip.app"
@koriwi
koriwi / gist:b69ecfbf01feef1279ec46917129290e
Created August 18, 2017 12:10
translation for amazon
GeeMusicPlayArtistIntent spiele interpret {artist_name}
GeeMusicPlayArtistIntent spiele songs von {artist_name}
GeeMusicPlayArtistIntent spiele top songs von {artist_name}
GeeMusicPlayArtistIntent spiele die besten songs von {artist_name}
GeeMusicPlayArtistIntent spiele musik von {artist_name}
GeeMusicPlayArtistIntent spiele tracks von {artist_name}
GeeMusicPlayAlbumIntent spiele das Album {album_name}
GeeMusicPlayAlbumIntent spiele album {album_name}
GeeMusicPlayAlbumIntent spiele das album {album_name} von {artist_name}
GeeMusicPlayAlbumIntent spiele album {album_name} von {artist_name}