Home Scripts PHP Twiddler 1.0

Who's Online

We have 1 guest online

Login Form



Twiddler 1.0 Print E-mail
Scripts - PHP
by Jack Beltane (© Jack Beltane. All rights reserved.)   
Saturday, 06 March 2010 03:29

This script is designed to send an aggregate of the most recent twitter tweets (as configured) to an MMS address (i.e., your phone as a "picture message"), but it will aggregate/send the <title> nodes of any RSS feeds configured to an SMS, MMS, or e-mail address.

I use this to grab the tweets from accounts I’m following that I don’t need real-time updates from (i.e., accounts using twitter for announcements, instead of to answer "What are you doing?").

Using twiddler, I can get 10 tweets aggregated into 2 MMS messages, saving me about 8 msgs a day (that’s 80 cents under my plan). I still get the updates to my phone, but I don’t have to waste messages/money getting announcements that aren’t time sensitive.

Rough savings over 10 tweets (tweets have a 140-character limit; I pay 10 cents per message):

  • SMS is 160 characters, minus the sender’s address:
    Saves about 1 message out of 10 — not great (10 cents a day ~ $3 a month)
  • MMS is 1000 characters a message:
    Saves about 8 messages out of 10 — not bad! (80 cents a day ~ $24 a month — that’s a used Xbox game every month!)
  • EMAIL is unlimited!

It is designed to be fired once a day via a wget chron job. The script then goes through each feed and checks the number of newest entries configured. If the entry is from that day, it adds it to the message body.

Twiddler does not currently keep track of messages sent; if you fire the script again, it will resend that day’s messages.

Installation (you need a domain that can run php):

  1. Put this script somewhere on your domain.
  2. Update the variables — be careful with your addresses: if you type wrong, you’ll get nothing!
  3. Set up a chron job or Windows task to hit your twiddler page once a day, like this:

http://www.your-site.com/twiddler_1-0.php?your_secret_word=your_secret_value

Don’t forget to turn off mobile/SMS updates for feeds you are now aggregating (otherwise you’ll get the daily update and the regular tweets!).

Source code: Twiddler 1.0 (links to a text file — save it as php).

 

 

You must be a registered user to post comments. Register here.



Entire site contents are copyright © 2009-2010 by Jack Beltane. All rights reserved.
 


micro link to this story:
http://big-fly.net/?id=58


Poll

Breaking Benjamin...