Skip to content

Instantly share code, notes, and snippets.

@InsaneWookie
InsaneWookie / config_m1s_home_assistant.md
Last active April 28, 2024 11:03
Configure Aqara M1S Gateway for Home Assistant
@xunker
xunker / pocsag_fortune.sh
Last active May 4, 2024 15:18
Send text to POCSAG pager using rpitx
# Send a page to a POCSAG pager using rpitx (https://github.com/F5OEO/rpitx).
# Place this script in the root directory of the rpitx repo when you check it out.
#
# Requires the `fortune` program to be installed: `sudo apt-get install fortune`
#
# In default config, set to transmit to an Apollo AL-A25 pager.
CAPCODE="0268778A"
FREQUENCY=157740000
BAUD=512
FORTUNE=$(fortune | tr '\n' ' '); echo $FORTUNE; printf "$CAPCODE:$FORTUNE" | sudo ./pocsag -f $FREQUENCY -r $BAUD