We have moved at community.getvera.com

Author Topic: dev enironment to check mcv lua code?  (Read 1786 times)

Offline mysticjay

  • Full Member
  • ***
  • Posts: 184
  • Karma: +1/-1
dev enironment to check mcv lua code?
« on: September 23, 2011, 10:34:36 am »
Is there a way to check syntax or a dev toolkit to check mcv Lu a code? Thx
Vera 2 (1.1.1338), Trane TZEMT400BB3,ML IWD600S(2), ML IWS1000S(2) , FI8905W, Aeon DSB04100-ZWUS, GE 45609(2), GE 45606(2), GE 45608, GE 45614 (5), LFM-20(2), Kwikset 99100-011 (5) , Hawking HRMD1, Droid X and Xoom as Remotes, Harmony Link

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1755
  • Karma: +11/-3

Offline mysticjay

  • Full Member
  • ***
  • Posts: 184
  • Karma: +1/-1
Re: dev enironment to check mcv lua code?
« Reply #2 on: September 23, 2011, 12:15:31 pm »
Great thx mcvflorin. I was planning on download Lua, haven't done that yet, now after your link I'll do that. I do have a question though:

So how would be able to debug a lua script that has functions from MCV like luup.call_action etc,. Is there a port of the lib for windows just for dev/testing purpose. Your input is appreciated.
Vera 2 (1.1.1338), Trane TZEMT400BB3,ML IWD600S(2), ML IWS1000S(2) , FI8905W, Aeon DSB04100-ZWUS, GE 45609(2), GE 45606(2), GE 45608, GE 45614 (5), LFM-20(2), Kwikset 99100-011 (5) , Hawking HRMD1, Droid X and Xoom as Remotes, Harmony Link

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1755
  • Karma: +11/-3
Re: dev enironment to check mcv lua code?
« Reply #3 on: September 23, 2011, 12:22:20 pm »
Unfortunately it's possible to debug scripts with luup functions only from the Vera UI (MiOS Developers -> Test Luup code) or through a plugin. In both cases, you will need to SSH into Vera and watch the logs.

Offline mysticjay

  • Full Member
  • ***
  • Posts: 184
  • Karma: +1/-1
Re: dev enironment to check mcv lua code?
« Reply #4 on: September 23, 2011, 12:40:26 pm »
Thanks mcvflorin. I'll download Lua package and follow your suggestion to debug in future. Again, if the functions are as generic as possible without reference to MCV functions I'm sure just the editor that is capable of syntax checking should do the trick.
Vera 2 (1.1.1338), Trane TZEMT400BB3,ML IWD600S(2), ML IWS1000S(2) , FI8905W, Aeon DSB04100-ZWUS, GE 45609(2), GE 45606(2), GE 45608, GE 45614 (5), LFM-20(2), Kwikset 99100-011 (5) , Hawking HRMD1, Droid X and Xoom as Remotes, Harmony Link