Make my Raspberry Pi say its IP (with the Pisound Button)

Tired of losing my RPi on the local network I wrote a script for it to say its IP.
Just put the script at the usual place and select it with the conf script!

Demo video

#!/bin/sh
. /usr/local/pisound/scripts/common/common.sh 
flash_leds 1
log "Saying the wlan0 ip..."
ifconfig | grep -A 1 wlan0 | grep inet | sed "s/ *inet //" | sed "s/ .*//" | festival --tts
flash_leds 20
4 Likes

That’s awesome! Another useful command with less output could be hostname -I, but it prints all of the IPs of the system currently available (like if you’re connected on Ethernet and WiFi at the same time).

Brilliant! Totally going to do this!