Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95372

Is it possible to determine within HA the IP address of the browser viewing it?

$
0
0

@Dan_Bowkley wrote:

I’d like to set up a page with a bunch of cameras on it. Of course, they’re all 1080p so streaming that outside of the home LAN would be slightly ridiculous. Each camera has several RTSP streams of different resolutions. So what I’d like to do is have HA somehow determine whether the browser viewing that page is on the local LAN or outside it, and then via templating have the page feed either the low-res or high-res streams appropriately. Is there any way to implement this? I guess I could just have a low-res and a high-res tab and let the user (me) choose whichever I want, but I’d kinda like to automate this if possible.

I guess something like

camera: > 
  {% if is_state('person.dan' , 'home') %}
    camera.high-res1 
  {% else %} 
    camera.low-res1
  {% endif %}

would mostly work, but I’d vastly prefer to do it on a per browser basis.

Any ideas?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>