I will store api key variable in apikey
http link to file location is: http://192.168.2.22:3006/render/d-solo/ ... d?orgId=1& panelId=26&width=1000&height=500&tz=America%2FNew_York
apple script needed to convert:
- Code: Select all
do shell script "curl -o \”/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/images/image.jpg>” -H \"Authorization: <APIKEY>\” \"http://<INSERT LINK TO DIRECT LINK RENDERED IMAGE>\””
potential script:
- Code: Select all
import os
apiKey = indigo.variables["variable name whereI store the api key"].value
os.system("/usr/bin/curl -f 'http://192.168.2.22:3006/render/d-solo/xF85NDZiz/indigo-home-dashboard?orgId=1& panelId=26&width=1000&height=500&tz=America%2FNew_York
&apiKey='"+apiKey+"' -o \”/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/images/image.jpg")