Search found 126 matches

by papoo
Tuesday 31 March 2020 13:43
Forum: dzVents
Topic: how to differentiate a manual action from the dashboard and an action controlled by a script? [Solved]
Replies: 2
Views: 772

how to differentiate a manual action from the dashboard and an action controlled by a script? [Solved]

hello is there a command to differentiate a manual action from the dashboard and an action commanded by a script? I want to update the state of a shutter which can be ordered by dz via the dashboard and another independent system. the action via dz acts on the third-party system and reverses the dz ...
by papoo
Monday 30 March 2020 23:45
Forum: dzVents
Topic: lodash escape / unescape function [Solved]
Replies: 6
Views: 1033

Re: lodash escape / unescape function [Solved]

waaren wrote: Monday 30 March 2020 23:03
Please keep us informed if you ever find a quicker method in Lua.
no problem
by papoo
Monday 30 March 2020 22:23
Forum: dzVents
Topic: lodash escape / unescape function [Solved]
Replies: 6
Views: 1033

Re: lodash escape / unescape function [Solved]

thanks waaren all the html caracters and the replacement ['	'] = ' ', ['
'] = ' ', ['!'] = '!', ['"'] = '"', ['&QUOT'] = '"', ['"'] = '"', ['&quot'] = '"', ['#'] = '#', ['$'] = '$', ['%'] = '%%', ['''] = "'", ['('] = '(', ['&rpar ...
by papoo
Monday 30 March 2020 18:08
Forum: dzVents
Topic: lodash escape / unescape function [Solved]
Replies: 6
Views: 1033

Re: lodash escape / unescape function [Solved]

D'un qu'on D'un côté, avec Mars vous voulez effectuer une opération un peu risquée depuis chez vous, mais on vous dit que vous prenez un risque inutile et on vous met des bâtons dans les roues. Ne vous butez pas, écoutez ce qu'on vous dit et laisser votre intuition vous guider. q ...
by papoo
Monday 30 March 2020 17:00
Forum: dzVents
Topic: lodash escape / unescape function [Solved]
Replies: 6
Views: 1033

lodash escape / unescape function [Solved]

hello i have escape / unescape fonctions very very very long and i want to simplify it the lodhash librairy have this https://lodash.com/docs/4.17.11#unescape but it not implemented in dz https://htmlpreview.github.io/?https://github.com/rwaaren/lodash.lua/blob/master/doc/index.html is there a way ...
by papoo
Monday 30 March 2020 16:38
Forum: dzVents
Topic: HTTPResponses array? [Solved]
Replies: 11
Views: 1611

Re: HTTPResponses array? [Solved]

thanks boum and waaren my finished script --[[ name : script_time_horoscope.lua auteur : papoo Mise à jour : 30/03/2020 Création : 26/06/2016 =>V1.x https://github.com/papo-o/domoticz_scripts/blob/master/Lua/script_time_horoscope.lua https://pon.fr/dzvents-horoscope-v2 https://easydomoticz.com/forum/ ...
by papoo
Monday 30 March 2020 15:50
Forum: dzVents
Topic: HTTPResponses array? [Solved]
Replies: 11
Views: 1611

Re: HTTPResponses array? [Solved]

mea culpa, to test I had reduced httpresponses to a single item and forgot to put it back to normal
by papoo
Monday 30 March 2020 15:27
Forum: dzVents
Topic: HTTPResponses array? [Solved]
Replies: 11
Views: 1611

Re: HTTPResponses array? [Solved]

with witch code? with mine there is only one httpresponse the 2 responses is same 2020-03-30 15:22:01.446 Status: dzVents: Info: Horoscope v2.0: ------ Start external script: horoscope.lua: HTTPResponse: "cancer" 2020-03-30 15:22:01.446 Status: dzVents: Debug: Horoscope v2.0: --- --- --- traitement ...
by papoo
Monday 30 March 2020 15:02
Forum: dzVents
Topic: HTTPResponses array? [Solved]
Replies: 11
Views: 1611

Re: HTTPResponses array? [Solved]

no only the first two openurl but only one httpresponse processed 2020-03-30 14:58:00.467 Status: dzVents: Info: Horoscope v2.0: ------ Start external script: horoscope.lua:, trigger: "every 2 minutes" 2020-03-30 14:58:00.468 Status: dzVents: Debug: Horoscope v2.0: --- --- --- traitement Horoscope 1 ...
by papoo
Monday 30 March 2020 14:52
Forum: dzVents
Topic: HTTPResponses array? [Solved]
Replies: 11
Views: 1611

Re: HTTPResponses array? [Solved]

there is only one httpresponse, the first

how can i test each item.trigger in the if (item.isHTTPResponse) with a for boucle ?

do I have to create each test independently?
by papoo
Monday 30 March 2020 13:48
Forum: dzVents
Topic: HTTPResponses array? [Solved]
Replies: 11
Views: 1611

HTTPResponses array? [Solved]

I wish query a website several times by changing a parameter for each request in the same script with the domoticz.openURL command httpTesponses can be an array? how to recover the name of multiple httpresponses? the beginning of my script local les_horoscopes = {} les_horoscopes[#les_horoscopes+1 ...
by papoo
Saturday 28 December 2019 10:32
Forum: dzVents
Topic: how to use seticon function? [Solved]
Replies: 8
Views: 1588

Re: how to use seticon function? [Solved]

thanks
by papoo
Friday 27 December 2019 22:00
Forum: dzVents
Topic: how to use seticon function? [Solved]
Replies: 8
Views: 1588

Re: how to use seticon function? [Solved]

I tested my script again to collect the info to answer you, and it works now.
Unfortunately,
I don't know what was wrong.
sorry for inconvenience, thanks.
please, can you tell me if there is a possibility to display the name of Custom icons and their number with dzvents or json?
by papoo
Thursday 26 December 2019 23:17
Forum: dzVents
Topic: how to use seticon function? [Solved]
Replies: 8
Views: 1588

Re: how to use seticon function? [Solved]

i use custom icons. the first is 101, etc like this 2019-12-15 20_32_57-Window.png it work fine with this json request dz.settings['Domoticz url'] .. '/json.htm?type=setused&used=true&name=' .. dz.utils.urlEncode(device.name) .. '&description=' .. dz.utils.urlEncode(device.description ...
by papoo
Thursday 26 December 2019 21:52
Forum: dzVents
Topic: how to use seticon function? [Solved]
Replies: 8
Views: 1588

Re: how to use seticon function? [Solved]

i try it also
attempt to call a nil value (field 'setIcon')

I don't write the function correctly surely
by papoo
Thursday 26 December 2019 21:48
Forum: dzVents
Topic: how to use seticon function? [Solved]
Replies: 8
Views: 1588

how to use seticon function? [Solved]

hello i try to use this function in a script : setIcon(iconNumber): Function. 2.4.17 method to update the icon for devices. Supports command options. like this device.switchOn().seticon(105) but i have this error : attempt to call a nil value (field 'seticon') i know how i can replace with a json ...