jmtrevaskis

home automation - get current IP and convert it to wav file

Nov 18th, 2011
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. ip=`wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'`
  2. echo Your current ip address is > /tmp/ipaddress.txt
  3. echo $ip >>/tmp/ipaddress.txt
  4. /opt/swift/bin/swift -n Allison-8Khz -m text -f /tmp/ipaddress.txt -o /tmp/ipaddress.wav
  5.  
  6.  
Add Comment
Please, Sign In to add comment