The Twitterbadge

Before I dive back into acts of proper engineering within SL (usually located at <0,0,0>) I would quickly like to note one more Twitter-related product - the Twitterbadge. This is a device, suggested by Mr Marcel Goodfellow, which allows one to display one’s own Twitterings, or, in fact, the public Twitterings of anyone, easily upon the Grid.

Things being what they are, it is only possible to display Two Hundred and Fifty-Five Floating Letters at a time, thus probably only two or three Tweets, but there are a number of different options which one may set, which will be detailed when I have a moment.

For now, please do see the Dedicated Aethernetical Area for the project for access to the LSL script concerned. Simply edit this script and place it inside a Prim, and said Prim will thenceforth display the appropriate Tweets for the person you have specified.

So this is it. Let’s go test it. Will report back. Thanks very much for the service.

I had to make a minor change to the get_updates method to get this to compile:

get_updates()
{
if (USER == “”) return;
llHTTPRequest(
“http://ordinalmalaprop.com/twitter/user-timeline.php?id=” + USER + “&wrap=” + (string)WRAP,
[HTTP_METHOD, "GET"],
“”
);
}

Original is missing a comma and type conversion operator.

Bah, my apologies. I made a change at the last minute, but was not actually able to open a script within SL to check it. I shall fix it immediately.

Sometimes I get “TwitterBox v0.4: I received an error - ‘No response from Twitter!’”

Is that from the Badge? Because it does not seem to update. Could be Twitter itself failing.

That is what the proxy script says when it can’t get a response from Twitter. But, as the name in the chat line suggests, it is from the Twitterbox, unless you have put the badge script in the same prim as the Twitterbox, which I do not recommend.

I think everything is corrected. Next to my 1 prim garden lamp with my RSS-feed, is now a Twitterbadged garden lamp. Two prims, lots of information. Wonderful thingamajig!

Hi Ordinal,

Sorry to bother you again, but I get this message now:

[13:08] TwitterBox v0.4: I received an error - ‘Twitter gave me bad output: Array’

Did something change at Twitter’s end?

By the way, what is the default refresh period for the badge? Can I set it somehow?

Thanks.

By default it refreshes every 60 seconds; one may change this by changing the number in llSetTimerEvent in the state_entry() event.

That rather unhelpful message means that Twitter gave the proxy something which it wasn’t expecting. I shall check, but unless otherwise noted, assume that it is a momentary Twitterglitch.

Ah, I’ve just noticed that this is a Twitterbox problem - in future it might be better to post those on the Twitterbox 0.4 page, as I am very easily confused.

Anyway, my latest correction _should_ get rid of such things.

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.