@Gutek wrote:
I saw that this is common question and from my findings HA does’t support that natively, but maybe we can find workaround for this?
I have camera snap loaded to picture card on my HA desktop. (link http://192.168.1.200/webcapture.jpg?command=snap&channel=1
Now what happens is when I log to HA it is cached and no matter what I do it stays outdated for some time. I tried to modify img path to
http://192.168.1.200/webcapture.jpg?command=snap&channel=1 + DateTime.Now.ToString(“ddMMyyyyhhmmsstt”");
to somehow make img src unique and be reloaded with every refresh but it doesn’t work.
I also thought about refreshing image via JS script added to onclick, but all I found work by
document.getElementById
and I didn’t find any way to put ID to generated
<img>
code.I saw there is service named zone.reload in call.service, but it doesn’t work as well.
I am new at HA, playing with it since few days, but I feel this thing is just too easy to be impossible.
*Currently it work like I want but only during Ctrl+F5, which is OK on PC, but not possible to be done in mobile app so I can’t get fresh image on tablet/phone which are mostly used for HA.
Posts: 1
Participants: 1