Twitter issue

7 replies [Last post]
garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011

Hi all,

my twitter appears to have stopped working. Tried re-authorising (which was successfully) but still no joy.

debug showing URL returned 410 error? Anyone else? Is this a twitter issue?

thanks

Garry

 

EDIT: just read that twitter ApI v1 deprecated june11th. Is this the reason? 

brett
Offline
Providence, United States
Joined: 9 Jan 2010
xap-twitter does use the v1 API

Damn another thing I need to fix.

Currentcost now this... good thing I've not released the xively changes.
Hopefully with twitter its just a matter for a few API URL tweaks for the v2 API.

UGH:  Nope - the 1.1 API dropped all support for XML and now only does JSON so I have to recode.  This will take me longer to fix now.

https://dev.twitter.com/docs/api/1.1/overview#Deprecation_of_v1.0_of_the...

Brett

brett
Offline
Providence, United States
Joined: 9 Jan 2010
xap-twitter upgraded

I've posted BETA 308.4 with modifications to xap-twitter so it uses the 1.1 API with JSON.

WARNING: Also contains pachube to xively rename.

This beta also contains my changes for renaming xap-pachube to xap-xively including the xap-livebox.ini file section header too.  Which means if you apply this xap-pachube will stop working until you fix it.

Fixing requires.

  1. Renaming the [pachube] section to [xively] in your xap-livebox.ini
  2. Creating a new xively feed number.
  3. Updating the web gui with your new feed AND with the new API KEY.  The legacy pachube key will not work.

I believe that is all I had to do to make it work again.   Its been working for me for several weeks now so I feel its stable.

Brett

garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
Thanks

Thanks for this Brett, a pain these services keep changing API's and creating work just to stand still. 

Twitter is a very useful feature though, especially for mobile device notifications (house alarm triggering, etc.) Glad it was fixable.

much appreciated.

Garry

brett
Offline
Providence, United States
Joined: 9 Jan 2010
doh - I never tested xap-twitter as a service to push tweets.

Gary I just realized I never tested xap-twitter as a service to push tweets.   Hope that still works.  Let me know if it doesn't.  If I get a spare moment I'll test this later on.

Brett

garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
Thanks

Thanks Brett.

Have updated to Beta. Xively working with no issues as is control via tweets and pushing to twitter

On first inspection though would appear control tweet not being deleted.

will investigate further.

Garry

 

UPDATE: deleting last tweet does work if you use a command prefix, I was being an idiot!

All good now, thanks again!

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
Backwards compatibility (or lack thereof)

It's all very sad. This is an outfit who are rumoured to have a market value of over $8Bn ... yet they can't seem to engineer their way out of a paper bag. If you want to keep your tech friends happy, you don't go introducing new APIs that trash good work already done.

Fortunately, we have the unique talents of Brett who 'trends' when fixing things up as the ground moves beneath the feet of the HAH project.

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Gary,Glad to know.   I need

Gary,

Glad to know.   I need to make this last beta push the new production release there are too many broken things accumulating.  I've got one last fix to check in - something I noticed whilst working on my urf decoder when it was processing serial input.

Brett

Hardware Info