We have moved at community.getvera.com

Author Topic: Using Vera on Twitter  (Read 5318 times)

Offline newts

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
Using Vera on Twitter
« on: July 02, 2009, 11:46:15 pm »

With a tiny addition to Vera and some small bit of code running on linux I have my Schlage lock tweeting when it is used.  Details here:

http://volcano.newts.org/index.php?/archives/106-humandoor-micasaverde-Z-Wave-enabled-Schlage-lock-on-twitter.html

the twitter name is @humandoor and I am @newts on twitter (surprise, that).

Z-network: Micasaverde, 2 appliance modules, Schlage deadbolt, Wayne Dalton WDTC-20 thermostat, panasonic PT ethernet camera, Fortrezz WWA-001

Offline cj

  • Hero Member
  • *****
  • Posts: 1252
  • Karma: +1/-0
Re: Using Vera on Twitter
« Reply #1 on: July 03, 2009, 07:32:04 am »
Nice script. It could also be possible to write it in lua and run this directly from an event.
In this way you won;t need the second linux machine, and you won;t have delays caused by log processing every minute.

Offline newts

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
Re: Using Vera on Twitter
« Reply #2 on: July 03, 2009, 10:06:19 am »

What would lua do for me?  And why would there be anything but the tiniest delay for the polling cgi?  Certainly nothing that I can notice.

Being the complete n00b here, where can I find docs to get started with lua?

thanks,

jv
Z-network: Micasaverde, 2 appliance modules, Schlage deadbolt, Wayne Dalton WDTC-20 thermostat, panasonic PT ethernet camera, Fortrezz WWA-001

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
Re: Using Vera on Twitter
« Reply #3 on: July 03, 2009, 10:41:03 am »
Wow, that can be a hot feature!
How difficult is to port python's Twitter API to LUA?

Offline arich57

  • Sr. Newbie
  • *
  • Posts: 29
  • Karma: +0/-0
Re: Using Vera on Twitter
« Reply #4 on: November 09, 2009, 11:23:57 pm »
Wow, that can be a hot feature!
How difficult is to port python's Twitter API to LUA?

would this be usable on Verde?

http://luaforge.net/projects/luatwitter/

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
Re: Using Vera on Twitter
« Reply #5 on: November 09, 2009, 11:39:01 pm »
Yes - if MCV integrates and includes it in Vera build.
However for simple polling o incoming messages it's overkill.

Offline arich57

  • Sr. Newbie
  • *
  • Posts: 29
  • Karma: +0/-0
Re: Using Vera on Twitter
« Reply #6 on: November 09, 2009, 11:53:00 pm »
Yes - if MCV integrates and includes it in Vera build.
However for simple polling o incoming messages it's overkill.

If I want to be able to send a tweet to check different statuses (say temperature), or trigger event (raise temperature) and get a response, would it be possible by using some of the tweeter code?

I don't currently have a Verde (saving right now) so I can't play around but I'm curious if this is even in the realm possibility before I spend the money. I think this would be a great way to remotely control my house.

Thanks.

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
Re: Using Vera on Twitter
« Reply #7 on: November 10, 2009, 08:17:42 pm »
It's easy to integrate with twitter in the context of what would we do with Vera.
The only problem - one needs JSON or XML parser to parse response. You can do it manually, but in Lua it'll be ugly.
AFAIK MCV work on adding some XML engine, I hope to see it some day...

Said that - the realistic way to make Vera "controllable" with Twitter is to create a framework where end-user would add its own scripts that would respond on keywords with doing things and sending response back. Something like Lua scenes.
I doubt anyone would take all the effort to create full interface to replace GUI