We have moved at community.getvera.com

Author Topic: How to create a LUA plugin  (Read 3149 times)

Offline mcardenas

  • Jr. Member
  • **
  • Posts: 72
  • Karma: +0/-0
How to create a LUA plugin
« on: March 22, 2011, 04:58:52 pm »
Hi, I want to create a plugin like the Smartphone one. I created a copy of it with a new name and tried to upload through "Extra Lua Files" and "Luup Files" as well, and none of them worked. Am I missing anything? Maybe I should edit some config file?

Offline mcardenas

  • Jr. Member
  • **
  • Posts: 72
  • Karma: +0/-0
Re: How to create a LUA plugin
« Reply #1 on: March 30, 2011, 10:04:56 pm »
Hey, Anyone can help me how to start or where to find the info?

Offline guessed

  • Community Beta
  • Master Member
  • ******
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: How to create a LUA plugin
« Reply #2 on: March 30, 2011, 10:46:08 pm »
Hey, Anyone can help me how to start or where to find the info?

From what I've seen so far, most people have just modified the existing Smartphone plugin, and re-uploaded it to add fixes or new features. 

I don't believe anyone has publicly written one from scratch, so there's little information on how to do a new implementation of a Web UI interaction (vs say, writing a new plugin for Power mgmt, lighting control, alarms, etc where there are tons of examples now)

You'll be blazing a trail in doing this, and that often means no directions (and no GPS)

Offline mcardenas

  • Jr. Member
  • **
  • Posts: 72
  • Karma: +0/-0
Re: How to create a LUA plugin
« Reply #3 on: March 31, 2011, 09:07:28 am »
@guessed thanks for your reply. Modify the smartphone plugin is exactly what I want. I already made a minor changes to test. However, I don't know how to upload it again. I tried with "Extra Lua Files" and "Luup Files" as well, even I tried to upload with scp and none of them worked. Do you know how can I upload the plugin?

squelch

  • Guest
Re: How to create a LUA plugin
« Reply #4 on: March 31, 2011, 12:51:54 pm »
Some of the people from this thread might be able to help:

    http://forum.micasaverde.com/index.php?topic=3134.0

Offline mcardenas

  • Jr. Member
  • **
  • Posts: 72
  • Karma: +0/-0
Re: How to create a LUA plugin
« Reply #5 on: April 01, 2011, 09:50:17 am »
Thanks for the link, I'll check it