Search found 14 matches
- 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 ...
- Thursday 08 November 2018 7:18
- Forum: Blockly
- Topic: Double off tap
- Replies: 3
- Views: 972
- Saturday 22 April 2017 18:11
- Forum: Other questions and discussions
- Topic: Tranparant Icon
- Replies: 3
- Views: 841
- 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.
- 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
maybe not optimal
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)
- 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 ?
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
- 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')
Code: Select all
/
Code: Select all
require('home/lvsigo/domoticz/scripts/lua/modules')
thanks
- 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 ...
- 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
No need to add new package.path
Juste use dofile()
found this on french forum
https://github.com/vil1driver/lua/blob/ ... odules.lua
- 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
Don't lets us manualy create devices...
Do it in the script
http://easydomoticz.com/forum/viewtopic ... ilit=Twice
- Friday 24 March 2017 9:27
- Forum: LUA
- Topic: Lua script - send notification when button is open for 30 seconds
- Replies: 13
- Views: 7315
Re: Lua script - send notification when button is open for 30 seconds
script_time_demo.lua
- 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 ?
is that the theme applyed to graph too ?
is that a full theme ?
- Tuesday 10 January 2017 13:03
- Forum: Design, usability and languages
- Topic: NEW frontpage.html - request comments
- Replies: 1301
- Views: 407583
- 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
Very easy to use
http://www.domoticz.com/forum/viewtopic ... 86#p105886