Twitter Notifications

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.

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 sounds very cool…keep up the good work!

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?

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?[/quote]

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.

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

@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 ([url=http://lua-users.org/lists/lua-l/2008-01/msg00144.html]http://lua-users.org/lists/lua-l/2008-01/msg00144.html[/url]). it was read-only, but if you’re interested i’ll try to update it and make it installable on Vera

I’ve just (slightly) modified LuaXPath ([url=http://luaxpath.luaforge.net/]http://luaxpath.luaforge.net/[/url]).

In short:

[ul][li] LuaExpat (already installed in Vera) gives you a SAX-style framework so you can write your own XML parser. [/li]

[li]LOM (already installed in Vera) is a LuaExpat parser that turns an XML string into a table structure (described here [url=http://www.keplerproject.org/luaexpat/lom.html]http://www.keplerproject.org/luaexpat/lom.html[/url]). You can operate on this structure yourself, if you want.[/li]

[li]LuaXPath (attached here) operates on a LOM structure and an XPath query, returning an array of LOM substructures[/li][/ul]

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

Wow, that seems pretty powerful! I just need to find time to try it… :slight_smile: Thanks, javier!

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… :slight_smile:

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.

Hmm… How could I miss it altogether…