I have a camera entity from a customs component. I understand that it will regularly produce a temporary/up-to-date image to be displayed on Picture Entity on HA dashboard.
I found that the URL that produces the output image is as below, but it will no longer work when the access token is expired
http://myHAlocalIP:8123/api/camera_proxy/camera.skyfield?token=40ad75991b395b99884f41cea1175565aa9b964141b012d7a6a208563fb75ca8
If I want its output snapshot as either a jpg or png file so that I can upload it to my web server automatically. How could I accomplish it?..thanks.
camera.skyfield
access_token: 40ad75991b395b99884f41cea1175565aa9b964141b012d7a6a208563fb75ca8
model_name: Sky
brand: SkyField
entity_picture: >-
/api/camera_proxy/camera.skyfield?token=40ad75991b395b99884f41cea1175565aa9b964141b012d7a6a208563fb75ca8
icon: mdi:sun
friendly_name: SkyField
supported_features: 0