Skip to content

Instantly share code, notes, and snippets.

@uGeek
Forked from iltempe/play.sh
Created October 13, 2019 20:20
Show Gist options
  • Save uGeek/3d39959af8080ed396c5c56e5872e5ac to your computer and use it in GitHub Desktop.
Save uGeek/3d39959af8080ed396c5c56e5872e5ac to your computer and use it in GitHub Desktop.
Suonare un allarme tramite i dati in emergenza
#!/bin/bash
#vedere doc http://python-rsstail.readthedocs.io/en/latest/
rsstail -i 3 -u http://emergency.copernicus.eu/mapping/list-of-components/EMSR261/feed -n 0 | while read line
do
afplay allarme.mp3
echo "$line"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment