Page 1 of 3
twitter
Posted: Fri 05 Oct 2012 10:43 am
by dezzeer
Hi all i have always uploaded to twitter but i have recently changed twitter account changed name and password in internet setup but how do i authorize twitter to let it accept data, nothing coming up in the apps section of twitter to accept or revoke access.
many thanks Darron
www.dazmather.co.uk
Re: twitter
Posted: Fri 05 Oct 2012 11:22 am
by steve
Stop Cumulus and edit cumulus.ini. Delete the lines in the [Twitter] section which start
OauthToken=
and
OauthTokenSecret=
Re: twitter
Posted: Fri 05 Oct 2012 11:26 am
by dezzeer
do i keep the lines and just delete everything after the the = sign
OauthToken=unknown
and
OauthTokenSecret=unknown
Re: twitter
Posted: Fri 05 Oct 2012 11:31 am
by steve
Well, I did say "delete the lines"...
But if you already have 'unknown' in there, deleting them won't make any difference, and you have some other issue. Turn on the debug log and after a Twitter update should have occurred, look in the diags file (not the debug log) to see if Twitter is returning an error message.
Re: twitter
Posted: Fri 05 Oct 2012 12:37 pm
by dezzeer
05/10/2012 13:00:05.828 : Starting Twitter thread
05/10/2012 13:00:05.843 : TwitterOauthToken available
05/10/2012 13:00:07.421 : HTTP/1.0 401 Unauthorized
cheers this is error code it returns
Re: twitter
Posted: Fri 05 Oct 2012 2:39 pm
by steve
Twitter gives that error for all kinds of reasons, unfortunately. Is the time and time zone correctly set on your PC?
Having deleted the Oauth lines from cumulus.ini, do you now have a string of characters in there? Don't post them here....
Re: twitter
Posted: Fri 05 Oct 2012 4:24 pm
by dezzeer
thanks steve it seems to have started working now, it was taking a long time because i also had it to uploas every 3hrs so i think it was working after i deleted the files.
thanks again Darron
Re: twitter
Posted: Thu 11 Oct 2012 3:05 am
by Areco747
Hi, Twitter has stopped working? all stations stopped rising data. Regards.
Re: twitter
Posted: Thu 11 Oct 2012 6:57 am
by steve
They have had "performance issues":
https://dev.twitter.com/status
They seem to think it's fixed now, but mine is giving:
11/10/2012 08:00:05.195 : Twitter update error: HTTP/1.0 404 Not Found
Re: twitter
Posted: Thu 11 Oct 2012 9:13 am
by steve
It appears that they have changed the API - again - and I am going to have to update Cumulus - again.
I hate Twitter.
Re: twitter
Posted: Thu 11 Oct 2012 10:20 am
by Areco747
Re: twitter
Posted: Fri 12 Oct 2012 1:06 am
by Grumpy Moose
steve wrote:I hate Twitter.
Me too!
An interesting note though, I notice the other (non-Cumulus) stations I follow are still twitting. Obviously not making any criticizms or comparisons here, but is there something they are doing that could be applied to Cumulus to avoid this problem in the future?
Re: twitter
Posted: Fri 12 Oct 2012 6:33 am
by RodH
Morning Steve,
Like you, and others, also having the Twitter issue. I have reset 0authTokens to no avail, and get the same diagnostic as you:
Twitter update error: HTTP/1.0 404 Not Found.
Will await your thoughts, on presumably the changed API?
Thanks,
Re: twitter
Posted: Fri 12 Oct 2012 7:09 am
by steve
Grumpy Moose wrote:An interesting note though, I notice the other (non-Cumulus) stations I follow are still twitting. Obviously not making any criticizms or comparisons here, but is there something they are doing that could be applied to Cumulus to avoid this problem in the future?
The change is that Twitter have removed the 'unversioned' endpoint
http://api.twitter.com/statuses which Cumulus was using. Software now has to use an endpoint which specifies the version of the API they are using, i.e. I should now be using version 1 of the API, or
http://api.twitter.com/1/statuses. In fact version 1 is now in the process of being removed and I need to look at moving to version 1.1, with
http://api.twitter.com/1.1/statuses by March next year.
So presumably the other software was already using a 'versioned' endpoint.
As well as simply changing the endpoint, I have to look at what has changed in the protocol that affects Cumulus. Having changed to the 'version 1' endpoint, it appears to work again, except that any Tweet containing a degree symbol is rejected. I have posted on the Twitter developer forum about this; it may be that I have to change the encoding, but as far as I can tell I am doing it correctly.
Re: twitter
Posted: Fri 12 Oct 2012 8:25 am
by gkammenos
Steve,
The issue with the degree symbol is not new; did not appear after API change!
br
George