github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

veilleperso / nabaztwit

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 2
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Scripts to monitor twitter searches and to get results and your twitter replies in TTS on your Nabaztag — Read more

  cancel

http://www.veilleperso.com

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Fix retweet 
veilleperso (author)
Sun Aug 02 11:21:45 -0700 2009
commit  77c335d0d5f9bc5215b0936036d6f41503b98703
tree    f6c124eef03fd1707cc5c64772ec2d2b2457ce22
parent  c9f801ddef5362cae2800df084917a83abc68485
nabaztwit /
name age
history
message
file .gitignore Loading commit data...
file README.textile
file example.ini
file nabaztag.php
file twitscan.php
README.textile

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
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server