esp8266twitter icon indicating copy to clipboard operation
esp8266twitter copied to clipboard

Problem error in time

Open pablinn opened this issue 9 years ago • 8 comments

Hi I have a little trouble with your code, but I dont know why the Date is wrong and fail to tweet is for the timestamp ? i probe terminal ntpdate -d 216.239.35.0 is ok but in the esp8266 show me a different date for one day 6 - 1 -17 in the esp 7-1-17 for example

I'm from argentina the time zone is 1 ? in your code is 9 I suposse you are from london could you help me please... regards

pablinn avatar Jan 06 '17 23:01 pablinn

Ok was the timezone is -3 but the error is the same [DEBUG] do_http_text_post httpCode : -1 you use this post method ? https://dev.twitter.com/oauth/reference/post/oauth2/token

pablinn avatar Jan 07 '17 00:01 pablinn

I'm also getting

[DEBUG] do_http_text_post httpCode : -1

when attempting to use this library. I did need to set the timezone to -5 instead of 9 to get a correct time. Were you able to make this work?

ghost avatar Mar 02 '18 20:03 ghost

I believe part of the problem is this is still using oauth 1.0 instead of 2.0, at least according to the information I'm getting back in the code.

[TWEET] tweet : esp-01 + direct tweet / test 04 [DEBUG] do_http_text_post httpCode : -1 api.twitter.com 443 /1.1/statuses/update.json AB 60 BB B5 F1 B9 A7 7E BE 68 1B BF 35 3F B3 C2 F9 B4 D2 44

OAuth oauth_consumer_key="xxx", oauth_nonce="2007115423", oauth_signature="xxx", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1520552350", oauth_token="xxx", oauth_version="1.0"

ghost avatar Mar 08 '18 14:03 ghost

I'm getting the same error.

[DEBUG] do_http_text_post httpCode : -1

Did you find a way to solve it?

jimenaCabrejas avatar Mar 12 '18 17:03 jimenaCabrejas

I don't think it's solvable as-is, as the library appears to be using Oauth 1.0. The creator or someone with more knowledge than myself will need to update it.

ghost avatar Mar 12 '18 17:03 ghost

I was able to get this library to properly tweet: https://github.com/debsahu/TwitterWebAPI

ghost avatar Mar 15 '18 15:03 ghost

Thank you! That library works perfectly

jimenaCabrejas avatar Mar 16 '18 07:03 jimenaCabrejas

You're very welcome.

ghost avatar Mar 16 '18 11:03 ghost