We have moved at community.getvera.com

Author Topic: Creating a scene programmatically  (Read 1606 times)

Offline Roy S

  • Jr. Member
  • **
  • Posts: 92
  • Karma: +0/-0
Creating a scene programmatically
« on: June 16, 2011, 02:53:44 am »
I'd like to programmatically create a scene (using Lua or Http Luup requests) that calls some lua code (in my case os.execute(...) )

As per the wiki, (http://wiki.micasaverde.com/index.php/Luup_Requests#scene), a scene can be created by recording different actions and it works (vera2 1.1.1245).

Is there a way to have the scene call some Lua code instead (Preferably not by using ModifyUserData)

Thanks.

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1755
  • Karma: +11/-3
Re: Creating a scene programmatically
« Reply #1 on: June 16, 2011, 08:35:57 am »
Nope, ModifyUserData is the only way.

Offline Roy S

  • Jr. Member
  • **
  • Posts: 92
  • Karma: +0/-0
Re: Creating a scene programmatically
« Reply #2 on: June 16, 2011, 12:04:42 pm »
Thanks florin,

I was afraid this was the only way to do it. I kind of hoped for an easier solution.  :)