Syntax - Getting Started

Hi All,
had a look at the wiki! thanks to the dedicated people who have taken the time to write all this up.

Just wondering if there’s a basic syntax guide for luup development in general… i.e i noticed someone declaring variables using the local keyword and playing with dates/times etc.

just wondering where I’d be looking up this kind of thing for stuff like for loops and variable declarations and code reuse etc.

i.e. say i wanted a function that faded the dimmer from 0- based on a day of the week and a time (just an arbitrary example) but just wondering where a good syntax resource would be for that kind of dev?

I was also wondering what the javascript/json api’s are for (I do alot of javascript dev at work) the wiki is good in that it tells you they exist but not really under what context you’d use them…

Cheers,
Tom

The language is Lua 5.1. There is a fairly comprehensive manual here: Lua 5.1 Reference Manual

Have a look at this post for some links to luup:

http://forum.micasaverde.com/index.php/topic,10469.msg73193.html#msg73193

As what futzle has stated, the language is Lua and there is all kinds of documentation online about the language. Also have a look in this sub-forum (Scene Scripting) for examples.

  • Garrett