Search found 3 matches

by PsychoMark
Thursday 12 May 2016 14:53
Forum: LUA
Topic: Split lua script up in two and call the new one from the first one?
Replies: 5
Views: 1569

Re: Split lua script up in two and call the new one from the first one?

You can include scripts using the require() function, but there are a few things you need to keep in mind with regards to variable scope. commandArray in particular which needs to be global in order for Domoticz to read it back in. The easiest way to enforce this is by prefixing it with "_G." In my ...
by PsychoMark
Monday 28 March 2016 19:13
Forum: Other questions and discussions
Topic: Login database
Replies: 4
Views: 3680

Re: Login database

The Domoticz database does not have a password as far as I know, but phpLiteAdmin does. According to the wiki:
Modify the $password variable to be the password used for gaining access to the phpLiteAdmin tool.
Hope that helps!
by PsychoMark
Tuesday 22 March 2016 15:23
Forum: LUA
Topic: Lua String skipping white spaces and substituting unexpected characters
Replies: 3
Views: 1732

Re: Lua String skipping white spaces and substituting unexpected characters

a) it looks like the log isn't escaping HTML characters coming from Lua (not sure if bug or feature). I confirmed this by using print("<b>Bold?</b>"), which did exactly what you'd expect :). The workaround is to escape it yourself before passing it to print: ...&param=... b) I'm thinking it's the ...