Skip to content

Instantly share code, notes, and snippets.

View anderser's full-sized avatar

Anders Eriksen anderser

View GitHub Profile
@anderser
anderser / airband.sh
Last active June 5, 2021 09:22
RTL SDR Airband
#lsusbto find path, lsusb -v to find serial
#Tower weather report
docker run --rm --name rtlsdr-airband -p 8000:8000 -e RTLSDRAIRBAND_FREQS=125.25 -e RTLSDRAIRBAND_SERIAL=00000001 --device /dev/bus/usb:/dev/bus/usb fredclausen/rtlsdrairband
#VHF 16 og sea traffic coord center
docker run --rm --name rtlsdr-airband -p 8000:8000 -e RTLSDRAIRBAND_FREQS=156.8,157.025,151.625,156.575 -e LOG_SCAN_ACTIVITY=true -e RTLSDRAIRBAND_SERIAL=00000001 -e RTLSDRAIRBAND_MODE=scan -e RTLSDRAIRBAND_SHOWMETADATA=true -e RTLSDRAIRBAND_NAME=VHF16_Fedje -e RTLSDRAIRBAND_GENRE=VHF --device /dev/bus/usb:/dev/bus/usb fredclausen/rtlsdrairband
@anderser
anderser / card.yaml
Created September 18, 2022 17:23
Count lights on Home Assistant mushroom card
type: custom:mushroom-template-card
primary: >-
{% if (states.light | selectattr('state', 'eq', 'on') | list | count |float) >
0 %}
{{ states.light | selectattr('state', 'eq', 'on') | list | count }} lys på
{% else %}