Every repository with this icon (
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Wed Dec 03 07:24:22 -0800 2008 | |
| |
README.textile | Thu Mar 05 06:55:01 -0800 2009 | |
| |
example.ini | Fri Jul 31 18:15:10 -0700 2009 | |
| |
nabaztag.php | Sun Aug 02 11:21:45 -0700 2009 | |
| |
twitscan.php | Fri Jul 31 18:11:33 -0700 2009 |
NabazTwit is a script which try to provide a better way to combine twitter and the Nabaztag.
Why?
The Violet twitter modules takes all your friends twits and send them in TTS (Text to speech) to your Nabaztag.
It can be really too much noise as you can have a lot of friends, and also, the nabaztag is not good at reading urls or smileys
What do this script do?
This script can read only the replies made to you (i.e. with a @your_nickname in the text) and private message received
Before sending thoses twits to your nabaztag, the script remove all smileys and urls.
And the script also check if your nabaztag is awake (otherwise it don’t send message to prevent mailbox overload)
At the end you receive less noise and more undestandable TTS messages
How to make it works?
- You need PHP 5
- copy or rename example.ini as config.ini and edit it to put your settings
- Install this script as a cron task (every 3 minutes is a good choice)
crontab -e
*/3 * * * * php ~/nabaztwit/nabaztag.php
To manually verify that the script run you can do
php nabaztag.php
This script works for me.
It’s tested under Mac OSX 10.5 and Ubuntu 8.10
If something goes wrong for you, please first try to guess what is wrong by yourself.
You can activate debug mode, by changing $debug to true near the top of the script
Feel free to enhance, adapt, evolve it for your own needs.
REMARK:
This script consume 2 API request per run (1 to retrieve your replies and 1 to retrieve your direct messages)
known issues
- sometime part of the sentence is not read by the rabbit, i don’t know why







