Search found 14 matches

by lvsigo
Sunday 06 January 2019 10:32
Forum: Design, usability and languages
Topic: New Domoticz Events design
Replies: 47
Views: 11404

Re: New Domoticz Events design

https://www.domoticz.com/wiki/Events Event Type. Controls what events events will cause Domoticz to execute the script. Drop down values: All - Will run whenever anything happens that triggers the event system to run a script Device - Will run whenever ANY device state/value change Security - Will ...
by lvsigo
Saturday 22 April 2017 18:11
Forum: Other questions and discussions
Topic: Tranparant Icon
Replies: 3
Views: 841

Re: Tranparant Icon

hi,

google transparent icon... or use photoshop

https://i.stack.imgur.com/0BYg1.png
by lvsigo
Sunday 09 April 2017 9:49
Forum: LUA
Topic: Lua generic function library
Replies: 23
Views: 30332

Re: Lua generic function library

True, only from a file.
by lvsigo
Saturday 08 April 2017 17:40
Forum: LUA
Topic: Lua generic function library
Replies: 23
Views: 30332

Re: Lua generic function library

thanks,

this seems to works for linux or windows system

Code: Select all

if package.config:sub(1,1) == '/' then
	luaDir = debug.getinfo(1).source:match("@?(.*/)")
else
	luaDir = string.gsub(debug.getinfo(1).source:match("@?(.*\\)"),'\\','\\\\')
end
print(luaDir)
maybe not optimal ;)
by lvsigo
Saturday 08 April 2017 11:44
Forum: LUA
Topic: Lua generic function library
Replies: 23
Views: 30332

Re: Lua generic function library

Can domoticz pass to lua scripts, the lua path ?
for replacing this ?

Code: Select all

luaDir = '/home/username/domoticz/scripts/lua/'					-- linux
--luaDir = 'C:\\Program Files (x86)\\Domoticz\\scripts\\lua\\'			-- windows
--luaDir = '/volume1/@appstore/domoticz/var/scripts/lua/'			-- synology
by lvsigo
Saturday 08 April 2017 8:56
Forum: LUA
Topic: Lua generic function library
Replies: 23
Views: 30332

Re: Lua generic function library

Code: Select all

print(io.popen("pwd"):read'*l')
return

Code: Select all

/
if I try to include modules.lua like this

Code: Select all

require('home/lvsigo/domoticz/scripts/lua/modules')
it works
thanks ;)
by lvsigo
Friday 07 April 2017 22:49
Forum: LUA
Topic: Lua generic function library
Replies: 23
Views: 30332

Re: Lua generic function library

nice to know, but sorry it doesn't work (v3.7149) print(package.path) /usr/local/share/lua/5.2/?.lua; /usr/local/share/lua/5.2/?/init.lua; /usr/local/lib/lua/5.2/?.lua; /usr/local/lib/lua/5.2/?/init.lua; ./?.lua then only use require() result as an error and how the file could be already included ...
by lvsigo
Wednesday 05 April 2017 23:42
Forum: LUA
Topic: Lua generic function library
Replies: 23
Views: 30332

Re: Lua generic function library

Hi,

No need to add new package.path
Juste use dofile()


found this on french forum
https://github.com/vil1driver/lua/blob/ ... odules.lua
by lvsigo
Friday 31 March 2017 20:38
Forum: LUA
Topic: Improve 433Mhz reliability
Replies: 33
Views: 8541

Re: Improve 433Mhz reliability

Hi,

Don't lets us manualy create devices...
Do it in the script

http://easydomoticz.com/forum/viewtopic ... ilit=Twice
by lvsigo
Sunday 19 February 2017 19:52
Forum: Design, usability and languages
Topic: New dark theme
Replies: 64
Views: 27361

Re: New dark theme

hi,

is that the theme applyed to graph too ?
is that a full theme ?
by lvsigo
Tuesday 10 January 2017 13:03
Forum: Design, usability and languages
Topic: NEW frontpage.html - request comments
Replies: 1301
Views: 407583

Re: NEW frontpage.html - request comments

Hi, try this

https://github.com/vil1driver/monitor

selector is full working, and most over things
by lvsigo
Wednesday 07 December 2016 0:21
Forum: PHP and all others
Topic: Pass2PHP
Replies: 1509
Views: 798029

Re: LUA Pass2php

For Speedup you may try full lua version.
Very easy to use

http://www.domoticz.com/forum/viewtopic ... 86#p105886