# How to get balenaCam to balenaDash

**URL:** <https://forums.balena.io/t/how-to-get-balenacam-to-balenadash/14424>\
**Category:** Project help\
**Created:** [June 7, 2019, 3:42pm UTC](https://forums.balena.io/t/how-to-get-balenacam-to-balenadash/14424 "2019-06-07T15:42:10Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![noschvie](https://avatars.discourse-cdn.com/v4/letter/n/13edae/32.png) [@noschvie](https://forums.balena.io/u/noschvie)\
**Post date:** [June 7, 2019, 3:42pm UTC](https://forums.balena.io/t/how-to-get-balenacam-to-balenadash/14424/1 "2019-06-07T15:42:10Z")

</div>

Hello  
have balenaDash running @RPiOne and balenaCam @RPiTwo.  
Using the Tohora interface to show the “Public device URL” of balenaCam doesn’t work.  
Any idea for debugging?  
Thanks  
Norbert

---

<div class="post-metadata">

**Author:** ![shaunmulligan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan/32/34_2.png) [@shaunmulligan](https://forums.balena.io/u/shaunmulligan)\
**Post date:** [June 7, 2019, 3:46pm UTC](https://forums.balena.io/t/how-to-get-balenacam-to-balenadash/14424/2 "2019-06-07T15:46:53Z")

</div>

Hi @noschvie , how is it failing, are there any logs or something you can show us?

---

<div class="post-metadata">

**Author:** ![noschvie](https://avatars.discourse-cdn.com/v4/letter/n/13edae/32.png) [@noschvie](https://forums.balena.io/u/noschvie)\
**Post date:** [June 7, 2019, 3:52pm UTC](https://forums.balena.io/t/how-to-get-balenacam-to-balenadash/14424/5 "2019-06-07T15:52:06Z")

</div>

My first test was without username/password, but this leads to  
07.06.19 17:27:18 (+0200) balena-cam Authorization is disabled.  
07.06.19 17:27:18 (+0200) balena-cam Anyone can access your balenaCam, using the device’s URL!  
07.06.19 17:27:18 (+0200) balena-cam Set the username and password environment variables  
07.06.19 17:27:18 (+0200) balena-cam to enable authorization.

I added username/password to the device variables.  
in both cases the screen is white, other pages are ok.

How have I to configure username/password using the Tohora interface? Is this possible or have I change the code of the application?  
Thanks

---

<div class="post-metadata">

**Author:** ![shaunmulligan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan/32/34_2.png) [@shaunmulligan](https://forums.balena.io/u/shaunmulligan)\
**Post date:** [June 7, 2019, 3:59pm UTC](https://forums.balena.io/t/how-to-get-balenacam-to-balenadash/14424/6 "2019-06-07T15:59:50Z")

</div>

So the balenaCam works correctly if you view the device’s url on your laptop?

---

<div class="post-metadata">

**Author:** ![shaunmulligan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan/32/34_2.png) [@shaunmulligan](https://forums.balena.io/u/shaunmulligan)\
**Post date:** [June 7, 2019, 4:05pm UTC](https://forums.balena.io/t/how-to-get-balenacam-to-balenadash/14424/7 "2019-06-07T16:05:14Z")

</div>

It would be worth checking if the URL for balenaCam renders correctly in your chrome browser, it could be related to the current VPN incident (used for tunneling the deviceURL), you can see that here [https://status.balena.io/](https://status.balena.io/) .

---

<div class="post-metadata">

**Author:** ![shaunmulligan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan/32/34_2.png) [@shaunmulligan](https://forums.balena.io/u/shaunmulligan)\
**Post date:** [June 7, 2019, 4:06pm UTC](https://forums.balena.io/t/how-to-get-balenacam-to-balenadash/14424/8 "2019-06-07T16:06:03Z")

</div>

My other thought is that perhaps balenaDash (WPE) can handle the web RTC elements, not sure if its supported in that brower

---

<div class="post-metadata">

**Author:** ![noschvie](https://avatars.discourse-cdn.com/v4/letter/n/13edae/32.png) [@noschvie](https://forums.balena.io/u/noschvie)\
**Post date:** [June 7, 2019, 4:24pm UTC](https://forums.balena.io/t/how-to-get-balenacam-to-balenadash/14424/9 "2019-06-07T16:24:37Z")

</div>

> [@shaunmulligan](#):
>
> chrome

Yes, using Firefox @Windows is ok.  
But Safari or Firefox @iPad are broken.

---

<div class="post-metadata">

**Author:** ![thundron](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/thundron/32/1379_2.png) [@thundron](https://forums.balena.io/u/thundron)\
**Post date:** [June 7, 2019, 5:57pm UTC](https://forums.balena.io/t/how-to-get-balenacam-to-balenadash/14424/10 "2019-06-07T17:57:38Z")

</div>

Hi, we’re still investigating what might be the cause. Did you get the chance to try Chrome as well on both platforms?

---

<div class="post-metadata">

**Author:** ![chrisys](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/chrisys/32/1731_2.png) [@chrisys](https://forums.balena.io/u/chrisys)\
**Post date:** [June 7, 2019, 7:08pm UTC](https://forums.balena.io/t/how-to-get-balenacam-to-balenadash/14424/13 "2019-06-07T19:08:03Z")

</div>

As far as I am aware, Safari on iOS is not currently supported, and neither is WPE. I’ve just tested these browsers on my setup and can reproduce the fact that they don’t work. I’ve created issues for this in the balenaCam repository here: [https://github.com/balena-io-playground/balena-cam/issues](https://github.com/balena-io-playground/balena-cam/issues)

As for passwords using Tohora, it’s not supported but as balenaCam uses basic HTTP authentication you can pass the username and password in the URL like so: `http://username:password@192.168.0.132/` although it’s obviously not much use until the stream works in WPE!

@mbalamat is the lead on this project so hopefully he can take a look.

---

<div class="post-metadata">

**Author:** ![mbalamat](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mbalamat/32/1245_2.png) [@mbalamat](https://forums.balena.io/u/mbalamat)\
**Post date:** [June 11, 2019, 8:48pm UTC](https://forums.balena.io/t/how-to-get-balenacam-to-balenadash/14424/15 "2019-06-11T20:48:19Z")

</div>

Hi @noschvie , awesome idea to use balenaCam and WPE, the main issue of WPE is that it doesn’t have webrtc implemented yet. You can try out this branch though [https://github.com/balena-io-playground/balena-cam/tree/wpe\_demo](https://github.com/balena-io-playground/balena-cam/tree/wpe_demo) that uses MJPEG streaming on the cases that webrtc throws unexpected errors.

Any other ideas, suggestions are welcome, thanks!

---

<div class="post-metadata">

**Author:** ![noschvie](https://avatars.discourse-cdn.com/v4/letter/n/13edae/32.png) [@noschvie](https://forums.balena.io/u/noschvie)\
**Post date:** [June 12, 2019, 10:09am UTC](https://forums.balena.io/t/how-to-get-balenacam-to-balenadash/14424/17 "2019-06-12T10:09:06Z")

</div>

> [@mbalamat](#):
>
> webrtc

Hi @mbalamat, I don’t need RTC for my “idea”, just have a “fixed image” from the cam and a refresh with a 5 minutes interval would be enough. Is this supported by balenaCam? If not, what is needed to such a project?  
Thanks

---

<div class="post-metadata">

**Author:** ![mbalamat](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mbalamat/32/1245_2.png) [@mbalamat](https://forums.balena.io/u/mbalamat)\
**Post date:** [June 12, 2019, 10:32am UTC](https://forums.balena.io/t/how-to-get-balenacam-to-balenadash/14424/18 "2019-06-12T10:32:09Z")

</div>

@noschvie what’s your opinion about [https://github.com/balena-io-playground/balena-cam/tree/wpe\_demo](https://github.com/balena-io-playground/balena-cam/tree/wpe_demo)

---

<div class="post-metadata">

**Author:** ![noschvie](https://avatars.discourse-cdn.com/v4/letter/n/13edae/32.png) [@noschvie](https://forums.balena.io/u/noschvie)\
**Post date:** [June 12, 2019, 3:51pm UTC](https://forums.balena.io/t/how-to-get-balenacam-to-balenadash/14424/27 "2019-06-12T15:51:59Z")

</div>

ups, sorry, didn’t notice the branch. Will test this version…

---

<div class="post-metadata">

**Author:** ![noschvie](https://avatars.discourse-cdn.com/v4/letter/n/13edae/32.png) [@noschvie](https://forums.balena.io/u/noschvie)\
**Post date:** [June 12, 2019, 7:20pm UTC](https://forums.balena.io/t/how-to-get-balenacam-to-balenadash/14424/28 "2019-06-12T19:20:20Z")

</div>

Hi @mbalamat, using …/wpe\_demo branch doesn’t improve that. balenaCam is shown @Firefox but not using balenaDash

---

<div class="post-metadata">

**Author:** ![chrisys](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/chrisys/32/1731_2.png) [@chrisys](https://forums.balena.io/u/chrisys)\
**Post date:** [June 12, 2019, 8:58pm UTC](https://forums.balena.io/t/how-to-get-balenacam-to-balenadash/14424/30 "2019-06-12T20:58:15Z")

</div>

@noschvie you should find that with the `wpe_demo` branch that it does display with balenaDash but it flickers quite badly - if you’re not getting that something else must be wrong. I’m working on it to see if we can find a fix for the flickering.

---

<div class="post-metadata">

**Author:** ![mbalamat](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mbalamat/32/1245_2.png) [@mbalamat](https://forums.balena.io/u/mbalamat)\
**Post date:** [June 13, 2019, 9:00am UTC](https://forums.balena.io/t/how-to-get-balenacam-to-balenadash/14424/32 "2019-06-13T09:00:11Z")

</div>

@noschvie if you don’t get an image then something else is wrong. About the flickering problem @chrisys had an idea on how to solve this using a canvas element, you could try out this branch [https://github.com/balena-io-playground/balena-cam/tree/canvas-test](https://github.com/balena-io-playground/balena-cam/tree/canvas-test)
