We have moved at community.getvera.com

Author Topic: Twitter Notifications  (Read 7461 times)

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
Twitter Notifications
« on: October 15, 2009, 09:12:46 pm »
I wrote a little plugin that tweets current time when you click on On button.

This is just an example of interaction with Twitter, so with some copy and paste you can use it in your devices and scenes. Twitter is excellent channel for notifications, and you can access it on the go in so many ways.

Download it here.

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
Re: Twitter Notifications
« Reply #1 on: October 16, 2009, 11:29:10 pm »
Next I'm planning to turn it into a simple TwitterBot, so I can send DM to Vera, Vera would do something, and send confirmation DM back to me...

Offline Jacobly

  • Full Member
  • ***
  • Posts: 131
  • Karma: +0/-0
Re: Twitter Notifications
« Reply #2 on: October 17, 2009, 01:02:42 am »
This sounds very cool.....keep up the good work!
Z-Wave enthusiast

Offline arich57

  • Sr. Newbie
  • *
  • Posts: 29
  • Karma: +0/-0
Re: Twitter Notifications
« Reply #3 on: November 05, 2009, 05:31:34 pm »
Next I'm planning to turn it into a simple TwitterBot, so I can send DM to Vera, Vera would do something, and send confirmation DM back to me...

This is exactly what I want to do. I'm saving to get my Vera box now.

I was wondering if you've made any progress on this?

Offline arich57

  • Sr. Newbie
  • *
  • Posts: 29
  • Karma: +0/-0
Re: Twitter Notifications
« Reply #4 on: February 08, 2010, 07:54:53 pm »
Next I'm planning to turn it into a simple TwitterBot, so I can send DM to Vera, Vera would do something, and send confirmation DM back to me...

This is exactly what I want to do. I'm saving to get my Vera box now.

I was wondering if you've made any progress on this?

I was just wondering if you have made any progress on/towards this? I'm hoping to get my Vera soon so I can start play with trying to do this. Any starting point that might already be there would be great. Thanks.

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
Re: Twitter Notifications
« Reply #5 on: February 08, 2010, 07:58:21 pm »
Nope. I'm waiting for some XML or JSON parser to be added by MCV.
The response is a bit too complicated to parse it manually

guest4690

  • Guest
Re: Twitter Notifications
« Reply #6 on: February 09, 2010, 07:51:50 am »
@325xi: LuaExpat is already installed in Vera.  Do you think something else is necessary?

Long ago i hacked a E4X-like tool on top of LuaExpat and LOM (http://lua-users.org/lists/lua-l/2008-01/msg00144.html).  it was read-only, but if you're interested i'll try to update it and make it installable on Vera

guest4690

  • Guest
Re: Twitter Notifications
« Reply #7 on: February 10, 2010, 10:32:54 pm »
I've just (slightly) modified LuaXPath (http://luaxpath.luaforge.net/).

In short:

  • LuaExpat (already installed in Vera) gives you a SAX-style framework so you can write your own XML parser.
  • LOM (already installed in Vera) is a LuaExpat parser that turns an XML string into a table structure (described here http://www.keplerproject.org/luaexpat/lom.html).  You can operate on this structure yourself, if you want.
  • LuaXPath (attached here) operates on a LOM structure and an XPath query, returning an array of LOM substructures

Please tell me if you need any help, or some sample code.

Offline denix

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1088
  • Karma: +1/-0
Re: Twitter Notifications
« Reply #8 on: February 11, 2010, 12:15:33 am »
Wow, that seems pretty powerful! I just need to find time to try it... :) Thanks, javier!
Veras (1, 2, 3, Lite, Plus), lots of different Z-Wave modules, Luup plugins and theater/security integration.

Offline denix

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1088
  • Karma: +1/-0
Re: Twitter Notifications
« Reply #9 on: February 11, 2010, 01:28:45 am »
I hope people don't mind if I move this thread to the Luup Dev section. The main section is quite active and jewels like this are easily lost... :)
Veras (1, 2, 3, Lite, Plus), lots of different Z-Wave modules, Luup plugins and theater/security integration.

guest4690

  • Guest
Re: Twitter Notifications
« Reply #10 on: February 11, 2010, 01:52:41 pm »
Quote
jewels like this are easily lost...  :)

don't worry; it (or something very similar to this) will soon be included by default, and I'll be documenting all in the wiki.

I just want some feedback before commiting it to the build system.

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
Re: Twitter Notifications
« Reply #11 on: May 20, 2010, 11:02:43 pm »
Hmm... How could I miss it altogether...