Search found 12 matches

by jjdom
Friday 05 August 2016 13:16
Forum: PHP and all others
Topic: Uservariable Delete
Replies: 5
Views: 894

Re: Uservariable Delete

Hello, Thanks for your answer,

But, I do not work in PHP, I work in LUA.
Have you a grab example in LUA?
by jjdom
Thursday 04 August 2016 20:59
Forum: PHP and all others
Topic: Uservariable Delete
Replies: 5
Views: 894

Re: Uservariable Delete

Thanks for you help Egregius

But how to get the result of the json query, and how to grab it ?
by jjdom
Thursday 04 August 2016 13:32
Forum: LUA
Topic: Need some help with basic LUA
Replies: 5
Views: 2032

Re: Need some help with basic LUA

hello, I don't speak english very well, so I'am not sure to understand what you realy whant to do. But if the problem is only du Nil value, why don't make like this: commandArray = {} if devicechanged['Sovrum_Temperature'] ~= nil and devicechanged['Sovrum_Temperature'] > 20 then commandArray ...
by jjdom
Thursday 04 August 2016 12:59
Forum: PHP and all others
Topic: Uservariable Delete
Replies: 5
Views: 894

Uservariable Delete

Hello everyone I want to delete a UserVariable So I'll use the appropriate Json query. But this query needs the Idx of UserVariable. This variable was created with a lua script. So if another script wants to delete it, does not know its id. He only knows his name. How can I get this Idx with his ...
by jjdom
Wednesday 03 August 2016 13:32
Forum: PHP and all others
Topic: UserVariables in scrips
Replies: 4
Views: 1277

Re: UserVariables in scrips

Hi all

My problem is solved.
I'had made a mistake on my IP.

Thanks a lot GD and all others.
by jjdom
Tuesday 02 August 2016 14:09
Forum: PHP and all others
Topic: UserVariables in scrips
Replies: 4
Views: 1277

Re: UserVariables in scrips

Hi all I have tried this one: urlVarName = UrlEncode('MonTest') commandArray[1]= { ['OpenURL'] = ip -- create variable ..'/json.htm?type=command&param=saveuservariable' ..'&vname='..urlVarName ..'&vtype=2' ..'&vvalue='..'"0"'} and the result in logs is 2016-08-02 13:58:44.351 Error: Error opening ...
by jjdom
Wednesday 27 July 2016 23:54
Forum: LUA
Topic: Device id In LUA Scripts
Replies: 7
Views: 2910

Re: Device id In LUA Scripts

hi all,

after upgrade, my version is now 3.4834 and otherdevices_idx work fine

thanks a lot all
by jjdom
Wednesday 27 July 2016 8:01
Forum: LUA
Topic: Device id In LUA Scripts
Replies: 7
Views: 2910

Re: Device id In LUA Scripts

Hi all,

So my upgrade method might be wrong.
Someone could tell me how to upgrade on raspberry pi II?
by jjdom
Wednesday 27 July 2016 7:54
Forum: PHP and all others
Topic: UserVariables in scrips
Replies: 4
Views: 1277

Re: UserVariables in scrips

Hi GD,
Thanks a lot, I will try this asap
by jjdom
Tuesday 26 July 2016 19:12
Forum: PHP and all others
Topic: UserVariables in scrips
Replies: 4
Views: 1277

UserVariables in scrips

Hi all,
Is there any way to create the user variable in domoticz by lua script ?
by jjdom
Tuesday 26 July 2016 18:54
Forum: LUA
Topic: Device id In LUA Scripts
Replies: 7
Views: 2910

Re: Device id In LUA Scripts

Thanks everybody

My version is 2.4351 on raspberry pi
I have upgraded last month
by jjdom
Tuesday 26 July 2016 13:59
Forum: LUA
Topic: Device id In LUA Scripts
Replies: 7
Views: 2910

Device id In LUA Scripts

Hi All, I would get the id of a device, or better I would like to find a device from its id. How can I do ? I tried with otherdevices_idx, but the function does not appear in my version. I'd got this error in logs : 2016-07-26 12:56:27.707 Error: EventSystem: in Tests: Tests.lua:36: attempt to index ...