Notices


Reply
Thread Tools
Posts: 137 | Thanked: 115 times | Joined on May 2010 @ Drama, Greece
#1
Hello, long time lurker, this is my first contribution to our fantastic community. Here is a little script I put together.


What the script does:
a) tells you the date and time using e-speak
b) fetches the latest mp3 from http://penteli.meteo.gr/innoetics/XX.mp3
c) plays the latest mp3 with mpg123
d)finally it deletes the mp3


What the script requires:
a) internet connection to fetch the latest forecast mp3
b)espeak and mpg123

unfortunately the mp3s are only available in Greek and for most major cities

it is possible to select the city you want the forecast by editing the wget, mpg123 commmands and rm commands by doing the following:

1) visit meteo.gr
2)select your city
3)take note of the city id on the end of the url
e.g for IOANNINA the url is as follows
http://www.meteo.gr/cf.asp?city_id=31
If you are able to hear the forecast for your city then the script will work for you else you can try a nearby destination.
4) unzip the script
edit the script by changing the id of the city on the three lines with the comments (http://penteli.meteo.gr/innoetics/XX.mp3 replace xx with id )
5)make script executable chmod 700 weather.sh
6)execute the script ./weather.sh
Attached Files
File Type: zip weather.zip (380 Bytes, 70 views)
__________________
thanks help us help you. Keep the forums clean use the thanks button

Last edited by andreas.k; 2013-05-29 at 19:32.
 

The Following User Says Thank You to andreas.k For This Useful Post:
koznj's Avatar
Posts: 32 | Thanked: 26 times | Joined on Jul 2010 @ Athens
#2
Γεια σου ρε Αντρέα! (ο:
 

The Following User Says Thank You to koznj For This Useful Post:
Posts: 54 | Thanked: 47 times | Joined on Dec 2012
#3
Code:
cat date.txt |espeak -g 5 -s 120
Is the same that
Code:
date | espeak -g 5 -s 120
AND you could use mplayer with cache...
Code:
wget -O - <url>| maplayer -cache <cache size> -
or
Code:
mplayer -cache <cache size> url
To not waste memory writes.
 
Reply


 
Forum Jump


All times are GMT. The time now is 01:37.