GeistHaus
log in · sign up

Pok'em: Seamless Notifications with Matrix

jackson.dev

# These three commands are all equivalent pokem !RoomID:jackson.dev Backup failed! pokem --room !RoomID:jackson.dev Backup failed! curl --fail -d "Backup failed!" pokem.dev/!RoomID:jackson.dev pokem Backup failed! # Will send to your configured default room pokem error Backup failed! # Will send to your configured room named "error" pokem --room error Backup failed! # Same as above # It also accepts stdin as the room message echo "Backup failed!" | pokem error # Sends to the room named "error" cat README.md | pokem # Send the contents of a file to the default room # Authentication # Inside Matrix, you can set a pokempassword using the bot interface. # If you do that, you won't be pinged at 3am by some rando, because even if # They can guess your roomid, they'll still need to include the password like so: curl --fail pokem.dev/roomid -d "poke the room" -H "Authentication: pokempassword" pokem --auth pokempassword --room roomid poke the room While writing Chaz and headjack, I realized that it would be pretty easy to build a self-hosted alternative to ntfy…

0 pages link to this URL

No pages have linked to this URL yet.