Skip to content

Instantly share code, notes, and snippets.

@iltempe
Created December 26, 2017 16:27
Show Gist options
  • Save iltempe/07082e2eee9f32dd90bc05b90742c31d to your computer and use it in GitHub Desktop.
Save iltempe/07082e2eee9f32dd90bc05b90742c31d 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