How to add code ?
nicolasplanchon opened this issue · comments
Hi Andrius,
After collecting data from the camera, I wish I could run a .py to analyze my image.
Do you know how may automate this task: run script.py with pparameter "image.jpg" just downloaded please ?
Thanks in advance,
Nicolas.
As I understand you would like to request a new feature. Execute something on each downloaded image?
I think I could add that. What exactly you are trying to do with the image? Maybe I could simply add that.
Yep I want to run a python script for every image I download. In my python script there will be only one parameter: the path to to the video.
I will add that in next version. I think it will be ready until the end of the week.
new version to support actions: https://github.com/AndMu/YiScanner/releases/tag/v1.3.4
What an amazing work ! Incredible !
About the way it works, if i have a script.py to be run I have to change the payload or the action ?
Payload is not in use in this version. It will be for Rest services like IFTTT.
In your case you should change "Cmd": "python script.py %1",
Yes okep and if this script.py needs a variable which is the last pic downloaded as a parameter, you have a trick ?
%1 will be replaced by file name (internally in program)
yes okep I understand the way you want to run this!
I try asap, a huge thanks!