We have moved at community.getvera.com

Author Topic: Where to start ?  (Read 1992 times)

Offline simon templar

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +0/-0
Where to start ?
« on: March 01, 2010, 10:55:01 am »
Hi all,

I received my Vera... And spent a good amount of time yesterday on the wiki trying to find out where to start if I want to write LUA scripts. I was able to telnet / ssh into my box, but I did not find a where to start.. Can someone give me some lights ?

Code Free or Die


  • Guest
Re: Where to start ?
« Reply #1 on: March 01, 2010, 11:18:11 am »
Well, it all depends on what you'd like to do first.  There are three main 'places' to put Lua code in Vera.

In all cases, the Lua scripts have to use the Luup API, described in http://wiki.micasaverde.com/index.php/Luup_Lua_extensions.

If you first want to get some familiarity with the Lua language, you can simply call 'lua' in the Vera command line, or install it in your desktop machine (if you're on Windows, try LfW: http://luaforwindows.luaforge.net/).  Note that in those cases you're using just Lua, and can't access the Luup interface of Vera.