Asterisk temperature reading
March 30th, 2011 | Last modified: November 8th, 2011If 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)
Trackback responses to this post
About me
I'm Nonoo. This is my blog about music, sounds, filmmaking, amateur radio, computers, programming, electronics and other things I'm obsessed with.
... »
Trackback URL
No comments yet.