Go Down

Topic: Twitter triggered arduino, open to the public? - Question about method. (Read 1 time) previous topic - next topic



I've used the Ethernet shield to control an arduino with twitter. This happens by monitoring the XML of a single twitter account.
What I would like to do is make this device open to public interaction from other peoples twitter accounts. The problem being the XML feed doesn't seem to include any information about people tweeting at my twitter account.

For example...

Code: [Select]
X-RateLimit-Limit: 150
X-RateLimit-Remaining: 54
X-RateLimit-Reset: 1350990236
X-RateLimit-Class: api
Content-Type: application/xml;charset=utf-8
Last-Modified: Tue, 23 Oct 2012 10:52:18 GMT
Expires: Tue, 31 Mar 1981 05:00:00 GMT
Pragma: no-cache
Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
Set-Cookie: guest_id=v1%3A135098953799518156; Expires=Thu, 23-Oct-2014 10:52:18 GMT; Path=/; Domain=.twitter.com
Status: 200 OK
X-Transaction: 2aba7e893832e539
X-Frame-Options: SAMEORIGIN
Date: Tue, 23 Oct 2012 10:52:18 GMT
Content-Length: 2736
Server: tfe

<?xml version="1.0" encoding="UTF-8"?>
<statuses type="array">
    <created_at>Tue Oct 23 10:49:31 +0000 2012</created_at>
    <text>Something else</text>
    <source>&lt;a href=&quot;http://twitter.com/download/android&quot; rel=&quot;nofollow&quot;&gt;Twitter for Android&lt;/a&gt;</source>
      <name>stuart hooper</name>
      <location>northam, devon</location>
      <created_at>Wed Apr 25 19:20:23 +0000 2012</created_at>
HTTP/1.1 200 OK

No where in here does it mention any mentions like @hooperstuart.
I have seen something on hack-a-day that prints these with a dot-matrix printer and a BeagleBone. Is it possible with an Arduino and Ethernet shield?
I'm guessing I need a different GET. Probably a search for mentions of my user name. Am I on the right track?


No where in here does it mention any mentions like @hooperstuart.


      <name>stuart hooper</name>
      <location>northam, devon</location>

What, exactly, are you looking for?

The problem being the XML feed doesn't seem to include any information about people tweeting at my twitter account.

I don't see that.
The art of getting good answers lies in asking good questions.


I'm after reading mentions. The idea is to open up the device by allowing anyone to tweet at it instead of it just reading my twitter account for commands in the tweets.


Obviously this opens up security issues with certain devices... like anyone in the world tweeting someones coffee maker all day until it boils dry and breaks.



did you ever find a solution to this? I'm trying to do the same thing.

I am trying to control 3 led's (blue, yellow, white) via twitter. Currently I can tweet "blue on", "blue off" etc from my twitter account but I would others to be able to do the same by mentioning my twitter name, then writing a control for the lights. When I try to do this from other twitter accounts, the posts do not show up in my serial monitor.

I am currently using the GET

Code: [Select]

client.println("GET /1/statuses/user_timeline.xml?screen_name="+twitterUsername + "&count=1 HTTP/1.1");

which successfully reads my own statuses but not any of the people I'm following. I tried switching it to this:

Code: [Select]

client.println("GET /1/statuses/home_timeline.xml?screen_name="+twitterUsername + "&count=1 HTTP/1.1");

but that stopped the serial monitor from reading any statuses.

Anyone having any luck with this?

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131