Hello this is the plan : - Send a text via autoremote to my PC - Eventghost react, the webcam take a picture ( via the plugin https://sites.google.com/site/egwebcamimagecapture/guide/settings ) - And then send it to me is this possible ? Thank you !
i have try anything yet ^^ just install eventghost yesterday ,will continue this afternoon or on thursday i think i will be blocked at the macro to trigger the webcam plugin to take a picture Thanks for reply
lol pretty easy to do ^^ so the trigger is when i send Photo, i take the picture Now send the photo to the device ^^
i can't open it with open fil on tasker ? the task run but nothing is do. the parameter is %arfiles(1) in open file task :/ EDIT : How can i pass the parameter to Autoremote ( without clicking on Send to eventghost on the picture file in explorer windows ) i can choose the last picture taken with this : import os newest = max(os.listdir('.'), key = os.path.getctime) print newest but how can i pass this character to the autoremote action ?
you need to set that variable in a "global" place where AutoRemote can access it, for example eg.newestphoto, then use {eg.newestphoto} in the AutoRemote action
OK But i have a problem with the path for autoremote : Here is my python script import os path = "C:\eventghost" os.chdir(path) files = sorted(os.listdir(os.getcwd()), key=os.path.getmtime) newest = files[-1] newest = ["C:\eventghost"+"/"+newest] eg.globals.chemin = newest i got the this problem : Sending files in message: ["['C:\\\\eventghost/picture-05.21.2015']"] Sending file: ['C:\\eventghost/picture-05.21.2015'] Error sending files ["['C:\\\\eventghost/picture-05.21.2015']"]: [Errno 22] Invalid argument: u"['C:\\\\eventghost/picture-05.21.2015']" I don't know hot to make only 1 " \ " i tried to make the \ apartly like "c:"+"\\"+ .. but it is the same :/
Here is my Python scipt : import os from time import gmtime, strftime strToday= strftime("%m.%d.%Y", gmtime()) path = "C"+":"+"\\"+"eventghost"+"\\"+"picture-"+strToday os.chdir(path) files = sorted(os.listdir(os.getcwd()), key=os.path.getmtime) newest = files[-1] newest = "C"+":"+"\\"+"eventghost"+"\\"+"picture-"+strToday+"\\"+newest eg.globals.chemin = newest because the plugin create a new folder each day i must research the folder of day and the last files Then in autoremote send message i put the {eg.globals.chemin} ANNNND it works ! Thanks for your help !