Asterisk temperature reading

If I call #88 on my VoIP system, I’ll hear a synthesized voice saying the current outside temperature.

The quality and readibility is quite bad, but the whole thing is not hard to set up, and this way my Mom & Grandma can also listen to the temperature, so it’s worth it :)

Here’s how you can do this. You’ll need two packages: aptitude install mbrola mbrola-hu1

Extract this to /usr/local/mbrola/. Make sure /usr/local/share/asterisk/sounds/ is writable by the Asterisk user. The script gettemp reads the current temperature value from the SQL database.

Asterisk extension.conf:

exten => #88,1,Macro(answertone)
exten => #88,2,System(/usr/local/mbrola/saytemp)
exten => #88,3,Wait(1)
exten => #88,4,Playback(temperature)
exten => #88,5,Goto(3)

Name (required)
E-mail (required - never shown publicly)
Webpage URL
Comment:
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> in your comment.

Trackback responses to this post

About me

Nonoo
I'm Nonoo. This is my blog about music, sounds, filmmaking, amateur radio, computers, programming, electronics and other things I'm obsessed with. ... »

Twitter

Listening now

My favorite artists