Calling function asynchronously (not openURL)
Posted: Thursday 17 January 2019 23:15
Hi,
First I want to thank the developper for the effort put in dzVents, it's a pleasure to script with.
I have a quite time consuming powershell script I want to call many times. I'm afraid doing this synchronously won't be great for the whole domoticz system.
What I'm willing to do is, on alarm system trigger, grab the jpg image from my camera and send it on my telegram notification discussion. I want to do this multiple times in a row, every few seconds for a couple of minutes.
I already have the script thats get the image and send it. The 2 http requests are done with powershell because it's very convenient to make mutipart/form-data request with it on Windows.
How can I make this ?
Regards
First I want to thank the developper for the effort put in dzVents, it's a pleasure to script with.
I have a quite time consuming powershell script I want to call many times. I'm afraid doing this synchronously won't be great for the whole domoticz system.
What I'm willing to do is, on alarm system trigger, grab the jpg image from my camera and send it on my telegram notification discussion. I want to do this multiple times in a row, every few seconds for a couple of minutes.
I already have the script thats get the image and send it. The 2 http requests are done with powershell because it's very convenient to make mutipart/form-data request with it on Windows.
How can I make this ?
Regards