# \[SOLVED\] Ubiquiti UVC Cams - show feed in habpanel?

**URL:** <https://community.openhab.org/t/solved-ubiquiti-uvc-cams-show-feed-in-habpanel/37921>\
**Category:** HABPanel\
**Tags:** openhab2, habpanel, ubiquiti\
**Created:** [December 29, 2017, 9:12am UTC](https://community.openhab.org/t/solved-ubiquiti-uvc-cams-show-feed-in-habpanel/37921 "2017-12-29T09:12:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yoinkz](https://community.openhab.org/letter_avatar_proxy/v4/letter/y/958977/32.png) [@Yoinkz](https://community.openhab.org/u/Yoinkz)\
**Post date:** [December 29, 2017, 9:12am UTC](https://community.openhab.org/t/solved-ubiquiti-uvc-cams-show-feed-in-habpanel/37921/1 "2017-12-29T09:12:35Z")

</div>

Hi All,

I was wondering - is it possible to show a feed or updating pictures in HabPanel from my Ubiquiti Surveilliance Cams?  
It would be nice if I somehow could get a live feed from my cams or update a picture stream every 5 second or so.

Currently I use the UVC-G3 cams and the NVR for recording.

If anyone out there has a nice solution using the cams from Ubiquiti, please let me know.

---

<div class="post-metadata">

**Author:** ![luckymallari](https://community.openhab.org/user_avatar/community.openhab.org/luckymallari/32/15259_2.png) [@luckymallari](https://community.openhab.org/u/luckymallari)\
**Post date:** [December 30, 2017, 10:10pm UTC](https://community.openhab.org/t/solved-ubiquiti-uvc-cams-show-feed-in-habpanel/37921/2 "2017-12-30T22:10:36Z")

</div>

I don’t have the Ubiquiti UVC but I use BlueIris. You have to know if your system exposes a URL for the stream, or an image snapshot. You can use iframes, template, or image widget.

For the image widget, just use your snapshot image as the URL, and have it refresh using the interval setting. If your camera has an MJPG url, you can use that as the URL with interval setting as 0.

---

<div class="post-metadata">

**Author:** ![Yoinkz](https://community.openhab.org/letter_avatar_proxy/v4/letter/y/958977/32.png) [@Yoinkz](https://community.openhab.org/u/Yoinkz)\
**Post date:** [January 2, 2018, 11:23am UTC](https://community.openhab.org/t/solved-ubiquiti-uvc-cams-show-feed-in-habpanel/37921/3 "2018-01-02T11:23:53Z")

</div>

@luckymallari

Hey Lucky,  
Thanks for getting back to me.

I can from the NVR set up a restream that does an RTSP stream. Currently I have a RPi3 that fetches those streams and shows a live feed on from my cams.  
I just followed this [https://community.ubnt.com/t5/UniFi-Video/Tutorial-Raspberry-Pi-Camera-Viewer/m-p/1329668#M44165](https://community.ubnt.com/t5/UniFi-Video/Tutorial-Raspberry-Pi-Camera-Viewer/m-p/1329668#M44165)

But you think it would work with a Widget and then the rtsp link?

---

<div class="post-metadata">

**Author:** ![luckymallari](https://community.openhab.org/user_avatar/community.openhab.org/luckymallari/32/15259_2.png) [@luckymallari](https://community.openhab.org/u/luckymallari)\
**Post date:** [January 2, 2018, 2:06pm UTC](https://community.openhab.org/t/solved-ubiquiti-uvc-cams-show-feed-in-habpanel/37921/4 "2018-01-02T14:06:34Z")

</div>

Unfortunately, browsers cannot render a RTSP stream without additional plugins (like VLC). Doing a quick Google search, I found that your system has a jpeg snapshot capability (called JPEG pull in security camera terms): [https://community.ubnt.com/t5/UniFi-Video/JPEG-Snapshots-Over-HTTP-command-or-firmware/td-p/1673480](https://community.ubnt.com/t5/UniFi-Video/JPEG-Snapshots-Over-HTTP-command-or-firmware/td-p/1673480)

You basically use that URL as your “stream”. HABPanel has an image widger and an interval setting to refresh the image. This becomes a “pseudo” video since it will refresh at that interval. For the interval, you can use seconds or milliseconds. If you want ‘fps’ just use this formula for the milliseconds: 1000/fps. For example, if you want 30fps, it will be 1000/30, so you set the interval to 33 milliseconds.

---

<div class="post-metadata">

**Author:** ![Yoinkz](https://community.openhab.org/letter_avatar_proxy/v4/letter/y/958977/32.png) [@Yoinkz](https://community.openhab.org/u/Yoinkz)\
**Post date:** [January 2, 2018, 4:26pm UTC](https://community.openhab.org/t/solved-ubiquiti-uvc-cams-show-feed-in-habpanel/37921/5 "2018-01-02T16:26:19Z")

</div>

@luckymallari

Nice! Thanks man - that was exactly what I was looking for. I don’t know why I have screwed my seach on google so much, but this did the trick!

Happy new year!

btw. Does anyone know how “tough” it is with the network / RPi3 when doing this like every second or every 5 second?

---

<div class="post-metadata">

**Author:** ![luckymallari](https://community.openhab.org/user_avatar/community.openhab.org/luckymallari/32/15259_2.png) [@luckymallari](https://community.openhab.org/u/luckymallari)\
**Post date:** [January 2, 2018, 4:45pm UTC](https://community.openhab.org/t/solved-ubiquiti-uvc-cams-show-feed-in-habpanel/37921/6 "2018-01-02T16:45:12Z")

</div>

It’s the UI (browser/client) doing the pull, not openHAB, so the burden will be on your network and client only.

---

<div class="post-metadata">

**Author:** ![Yoinkz](https://community.openhab.org/letter_avatar_proxy/v4/letter/y/958977/32.png) [@Yoinkz](https://community.openhab.org/u/Yoinkz)\
**Post date:** [January 2, 2018, 5:11pm UTC](https://community.openhab.org/t/solved-ubiquiti-uvc-cams-show-feed-in-habpanel/37921/7 "2018-01-02T17:11:34Z")

</div>

Thanks much appreciated!
