Offline
Newbie
Karma: 0
Posts: 45
|
 |
« Reply #30 on: September 10, 2012, 01:47:27 am » |
good day,
I realised once i run the code, when i update twitter while the code is running, it will not get updated to the latest tweet.
edit: got a fix to it! do you want me to share the code i have when i'm done? also fixed the part with the tweets broken into 16chars per line in a string like what you suggested.
|
|
|
|
« Last Edit: September 10, 2012, 02:40:42 am by kenneth87 »
|
Logged
|
|
|
|
|
Hamme, Belgium
Offline
Sr. Member
Karma: 3
Posts: 383
|
 |
« Reply #31 on: September 10, 2012, 06:34:51 am » |
I did see your previous post, but I didn't had the time to answer yet. Very nice you solved this yourself.
I would love to see your code, but you should get some credit yourself. Make a new post, showing off your own project (try to include a youtube movie or some pictures), just make a quick reference to this post, explaining you started using this code and adapted it, for you own project.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 45
|
 |
« Reply #32 on: October 18, 2012, 08:33:25 am » |
Good day JO3RI,
I am able to post the code soon as it is due for submission by start november. also my twitter client stopped working due to the recent API updates. do you have any idea what changes i have to make to enable it to start working again?
Twitter api version changed from v1.0 to v1.1
|
|
|
|
|
Logged
|
|
|
|
|
Wisconsin
Offline
God Member
Karma: 4
Posts: 994
I LOVE THIS STUFF!!!!
|
 |
« Reply #33 on: October 18, 2012, 08:38:54 am » |
bump
|
|
|
|
|
Logged
|
Accelerate to 88 miles per hour.
|
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 45
|
 |
« Reply #35 on: October 18, 2012, 10:17:10 am » |
yup mine is working too but when you use a code on Arduino IDE that uses GET HTTP, it doesn't seem to get tweets off twitter with that exact same line. any ideas?
also is there a way to implement oauth without going thru a PHP server?
|
|
|
|
|
Logged
|
|
|
|
|
Hamme, Belgium
Offline
Sr. Member
Karma: 3
Posts: 383
|
 |
« Reply #36 on: October 18, 2012, 12:34:24 pm » |
I would give Arduino IDE 1.0 a try, the newer version seems to have other issues with my code (like dns)
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 45
|
 |
« Reply #37 on: October 18, 2012, 05:40:49 pm » |
i'm on arduino IDE 1.0! tested your code a while back. i could receive a weather update via xml but can't receive tweet updates via the same thing.
|
|
|
|
|
Logged
|
|
|
|
|
Hamme, Belgium
Offline
Sr. Member
Karma: 3
Posts: 383
|
 |
« Reply #38 on: October 19, 2012, 02:22:43 am » |
And you didn't change a thing? That's strange indeed. I could test your code on my own Arduino and network if you'd like.
Just attach your code to a reply and I'll give it a try. If it works on my end, you might have network issues. OR you might have set the interval to low so your Arduino is asking for updates way to fast and your IP got banned.
|
|
|
|
|
Logged
|
|
|
|
|
Murcia, Spain
Offline
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #39 on: January 28, 2013, 03:50:27 pm » |
Hi JO3RI, I'm trying to do a Twitter client with Arduino (I want to receive tweets from an user account and display it on the serial monitor. I'm using an Arduino UNO R3 board and the Ethernet shield. I have tested this example http://arduino.cc/en/Tutorial/TwitterClient and it works, but I have a problem: I'm Spanish, so there are some characters we use like letter 'ñ' and others like '¿' or '¡', etc., and the serial monitor doesn't show it. It shows "ñ" instead of 'ñ', "¿" instead of '¿', "¡" instead of '¡', etc.  Could you please help me to fix it? Do you have any idea of how I can solve it? Could your code help me to do it? You'd be very helpful, really 
|
|
|
|
« Last Edit: January 28, 2013, 09:51:51 pm by G3RMiCH »
|
Logged
|
|
|
|
|
Hamme, Belgium
Offline
Sr. Member
Karma: 3
Posts: 383
|
 |
« Reply #40 on: January 29, 2013, 01:07:16 am » |
Could you please help me to fix it? Do you have any idea of how I can solve it? Could your code help me to do it? You'd be very helpful, really are you able to show those characters on the serial monitor, when put into a string? (not from twitter, but when you just do Serial.print("those special characters"); ? You can replace those ñ , ¿, ¡ with the actual character. I did that in another project of mine ( www.jo3ri.be/arduino/projects/castduino). You can start looking for &# with Textfinder and when found replace those with along with the according number. Something like if &# and 241 than you have ñ. also check google on "string replace" ( http://www.cplusplus.com/reference/string/string/replace/)
|
|
|
|
|
Logged
|
|
|
|
|
Sweden
Offline
Jr. Member
Karma: 0
Posts: 77
Arduino System Go!
|
 |
« Reply #41 on: January 29, 2013, 05:17:54 am » |
Nice work and thanks for sharing! I have been playing with a similar idea for control purposes, but never actually built any of it. A trick I find could help a lot to simplify the on-board Arduino logic would be to put a service in-between the Arduino and the Twitter API to act as a proxy and format translator. The idea would be that you can use the right tool for the right job. Calling a REST webservice, parsing the results and doing something with the data is a piece of cake in most "internet languages", like Java, JavaScript, Ruby or PHP. With a such a proxy in place, you could re-format the response from Twitter into something very Arduino-friendly to save valuable CPU and RAM. It would also give you a separation of concerns and provide a place to add more advanced features like caching of results and adding in more sources without having to change the Arduino program. Hosting of the translator proxy could be done on a server of yours, or on an application hosting service like the examples below. http://www.heroku.com/or http://nodejitsu.com/Anders
|
|
|
|
|
Logged
|
|
|
|
|
Hamme, Belgium
Offline
Sr. Member
Karma: 3
Posts: 383
|
 |
« Reply #42 on: January 29, 2013, 05:44:24 am » |
Nice work and thanks for sharing! Thanks ;-) The idea would be that you can use the right tool for the right job. Good point, but sometimes it's just fun to have all in one solutions.
|
|
|
|
|
Logged
|
|
|
|
|
Sweden
Offline
Jr. Member
Karma: 0
Posts: 77
Arduino System Go!
|
 |
« Reply #43 on: January 29, 2013, 10:18:16 am » |
Good point, but sometimes it's just fun to have all in one solutions. That is true and fun is one of the most important factors to consider. Why else would one have an Arduino hobby?
|
|
|
|
|
Logged
|
|
|
|
|
Netherlands
Offline
Tesla Member
Karma: 88
Posts: 9392
In theory there is no difference between theory and practice, however in practice there are many...
|
 |
« Reply #44 on: January 29, 2013, 02:39:25 pm » |
Why else would one have an Arduino hobby? If you really want to know ask this in the bar sport section 
|
|
|
|
|
Logged
|
|
|
|
|
|