Hello, Thanks for your answer,
But, I do not work in PHP, I work in LUA.
Have you a grab example in LUA?
Search found 12 matches
- Friday 05 August 2016 13:16
- Forum: PHP and all others
- Topic: Uservariable Delete
- Replies: 5
- Views: 915
- Thursday 04 August 2016 20:59
- Forum: PHP and all others
- Topic: Uservariable Delete
- Replies: 5
- Views: 915
Re: Uservariable Delete
Thanks for you help Egregius
But how to get the result of the json query, and how to grab it ?
But how to get the result of the json query, and how to grab it ?
- Thursday 04 August 2016 13:32
- Forum: LUA
- Topic: Need some help with basic LUA
- Replies: 5
- Views: 2087
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 ...
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 ...
- Thursday 04 August 2016 12:59
- Forum: PHP and all others
- Topic: Uservariable Delete
- Replies: 5
- Views: 915
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 ...
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 ...
- Wednesday 03 August 2016 13:32
- Forum: PHP and all others
- Topic: UserVariables in scrips
- Replies: 4
- Views: 1319
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.
My problem is solved.
I'had made a mistake on my IP.
Thanks a lot GD and all others.
- Tuesday 02 August 2016 14:09
- Forum: PHP and all others
- Topic: UserVariables in scrips
- Replies: 4
- Views: 1319
Re: UserVariables in scrips
Hi all
I have tried this one:
urlVarName = UrlEncode('MonTest')
commandArray[1]= { ['OpenURL'] = ip -- create variable
..'/json.htm?type=command¶m=saveuservariable'
..'&vname='..urlVarName
..'&vtype=2'
..'&vvalue='..'"0"'}
and the result in logs is
2016-08-02 13:58:44.351 Error ...
I have tried this one:
urlVarName = UrlEncode('MonTest')
commandArray[1]= { ['OpenURL'] = ip -- create variable
..'/json.htm?type=command¶m=saveuservariable'
..'&vname='..urlVarName
..'&vtype=2'
..'&vvalue='..'"0"'}
and the result in logs is
2016-08-02 13:58:44.351 Error ...
- Wednesday 27 July 2016 23:54
- Forum: LUA
- Topic: Device id In LUA Scripts
- Replies: 7
- Views: 2954
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
after upgrade, my version is now 3.4834 and otherdevices_idx work fine
thanks a lot all
- Wednesday 27 July 2016 8:01
- Forum: LUA
- Topic: Device id In LUA Scripts
- Replies: 7
- Views: 2954
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?
So my upgrade method might be wrong.
Someone could tell me how to upgrade on raspberry pi II?
- Wednesday 27 July 2016 7:54
- Forum: PHP and all others
- Topic: UserVariables in scrips
- Replies: 4
- Views: 1319
Re: UserVariables in scrips
Hi GD,
Thanks a lot, I will try this asap
Thanks a lot, I will try this asap
- Tuesday 26 July 2016 19:12
- Forum: PHP and all others
- Topic: UserVariables in scrips
- Replies: 4
- Views: 1319
UserVariables in scrips
Hi all,
Is there any way to create the user variable in domoticz by lua script ?
Is there any way to create the user variable in domoticz by lua script ?
- Tuesday 26 July 2016 18:54
- Forum: LUA
- Topic: Device id In LUA Scripts
- Replies: 7
- Views: 2954
Re: Device id In LUA Scripts
Thanks everybody
My version is 2.4351 on raspberry pi
I have upgraded last month
My version is 2.4351 on raspberry pi
I have upgraded last month
- Tuesday 26 July 2016 13:59
- Forum: LUA
- Topic: Device id In LUA Scripts
- Replies: 7
- Views: 2954
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 ...
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 ...