Search found 4 matches

by mhwlng
Wednesday 25 May 2016 18:09
Forum: PHP and all others
Topic: LuaSocket on Synology DS716+ with a 64 bit Intel Celeron N3150 processor
Replies: 5
Views: 2994

Re: LuaSocket on Synology DS716+ with a 64 bit Intel Celeron N3150 processor

create the directories and put all the lua files in there

(don't make a directory with the name '*.lua')

invalid elf header probably means that you use 32 bit executable files on a 64 bit processor or the other way around (or you have an arm processor instead of an intel processor)
by mhwlng
Sunday 28 February 2016 12:35
Forum: PHP and all others
Topic: lanbox dmx controller
Replies: 0
Views: 1198

lanbox dmx controller

some example code, to control 4 DMX RGB panels connected to a Lanbox requires luasocket library local socket = require("socket") function SendCommand (address,port,commandstring) local switchto16bitcommand = "*65ff#"; -- Common16BitMode On local step = 0; local tcp = assert(socket.tcp()) tcp:connect ...
by mhwlng
Sunday 28 February 2016 12:25
Forum: PHP and all others
Topic: LuaSocket on Synology DS716+ with a 64 bit Intel Celeron N3150 processor
Replies: 5
Views: 2994

LuaSocket on Synology DS716+ with a 64 bit Intel Celeron N3150 processor

to get the LuaSocket library working on a Synology DS716+ with a 64 bit Intel Celeron N3150 processor take usrlocalliblua5p2.tar.gz and usrlocalsharelua5p2.tar.gz from this thread : http://www.domoticz.com/forum/viewtopic.php?f=5&t=1847&p=22638#p22638 which contains core.so for raspberry pi ARM ...
by mhwlng
Sunday 21 February 2016 13:48
Forum: LUA
Topic: how to set RGB value to commandArray inside lua ?
Replies: 1
Views: 1322

how to set RGB value to commandArray inside lua ?

Is there any way to set the RGB value via commandArray ?

commandArray ['rgb dimmer'] = 'Set Level ?????'

this works, but is not the most elegant solution :

commandArray['OpenURL']='http://192.168.2.52:8084/json.htm?type= ... dx=??&hex=?????'