#Restful Command - response data for image?

7 messages · Page 1 of 1 (latest)

magic tangle
magic tangle
#

The answer is no. You can not use the response vaiable for images. The response of "http://10.1.1.241:11080/endpoint/@scrypted/webhook/public/62/xxxxxxxxxx/takePicture" could not be decoded as text

wooden dome
#

Why not encode it as base64?

magic tangle
#

I have no control over the endpoint.

ebon pendant
#

Use an automation to download the image locally and point your generic camera to the local image.

ebon pendant
#

There's a limit_refetch_to_url_change option for the generic camera. If the endpoint ignores query parameters you could do some template magic to build a URL that only changes when needed and uses a query parameter to update the URL.

magic tangle
#

I may be an idiot. I can use the webhook URL directly in my rarely needed notification, 🤦‍♂️