just working on a little art project with a friend and was hoping to get some advice. The aim is to have a plant watered everytime the artists On Kawara tweets (https://twitter.com/on_kawara)his daily message "I AM STILL ALIVE #art" the idea being that his daily tweet keeps this plant alive. I have worked out the electronics using a simple electronic valve from sparkfun.. however the code is proving a bit more tricky. There are plenty of fanstastic examples of using twitter for home automation or for generally reading a tweet.. however the problem we have encountered is that the tweet from On Kawara is always the same so the method of seeing wether or not a new *different* tweet has been posted does not work so well as the content does not change, the only real variable is the time and date of the tweet, i am not sure how to extract that information from twitter.. it is essential for the integrity of the work that the water is controlled directly by the tweet in question and only when On Kawara tweets it. I was wondering if anyone had any suggestions.. the example code i was working with looks like this:

// if you get a newline, clear the line: if (inChar == '\n') { currentLine = ""; } // if the current line ends with <text>, it will // be followed by the tweet: if ( currentLine.endsWith("<text>")) { // tweet is beginning. Clear the tweet string: readingTweet = true; tweet = ""; } // if you're currently reading the bytes of a tweet, // add them to the tweet String: if (readingTweet) { if (inChar != '<') { tweet += inChar; } else { // if you got a "<" character, // you've reached the end of the tweet: readingTweet = false; Serial.println(tweet);

// close the connection to the server: client.stop(); } } } } else if (millis() - lastAttemptTime > requestInterval) { // if you're not connected, and two minutes have passed since // your last connection, then attempt to connect again: connectToServer(); }}

currently it does not do anything really - this is just a sample code that i took off the internet to connect to twitter and see how it works.. i was looking to see how it is possible to extract the relevant time stamp from the twitter message itself, but not sure how to go about it..

i want to read On Kawara's twitter feed - https://twitter.com/on_kawara and every time he tweets the message "I AM STILL ALIVE #art" (which he does daily and is the only thing he does with the twitter account) i want the plant to be watered.

i want to read On Kawara's twitter feed - https://twitter.com/on_kawara and every time he tweets the message "I AM STILL ALIVE #art" (which he does daily and is the only thing he does with the twitter account) i want the plant to be watered.

You've said that. Any you are, in theory at least, reading something. What ARE you reading? Serial.print() the characters to find out.

Only when you have a clue that the parsing code is parsing the right data will you have a hope of debugging it.