Announcement: HADashboard v2 Beta!

Here is the really basic code that I have been trying (other code removed for now):

in variables.yaml

head_includes:
- <script type="text/javascript" src="/custom_css/boxed_in/js/day_transition.js"></script>
- <meta http-equiv="refresh" content="5" />

in js/day_transition.js

console.log('test');

I have also tried as aimc suggested and created function in the .js, then in the body include called the function, same results. Also tried the meta refresh and i can see it refresh the page but i donā€™t get the log message in the console either after the meta refresh or clicking reload.

I tried the console log method too, but didnā€™t see anything at all in my console.

So then I went old school and did an alert window and when using reload, I got the window each time.

Tried alert and only get it shown a single time after the js file is changed. If i change the js file at all I get it only on the first reload/refresh.

Will poke at it again tomorrow.

I just tried again and hit reload 4 times in a row. Each time I got the alert.

I used the timer.js in simplyred and just inserted an alert before the first document.write. Am I doing it wrong? You probably know more than I do about JS.

Not sure I know anything about javascript after this afternoon :cry: I tried adding the alert in your simplyred and get the same results as everything else.

also the background color which should be #111 goes away upon reload.

Iā€™m using owntracks for proximity detection. To make this work and still be able to see the icon at the home, I have a HA zone called house that matches a waypoint called house in owntracks. This means that Home and House are effectively the same thing. When a member of my family is at home, the device tracker icon shows up as green. When they are not home, it shows up grey. Can we setup a list of locations that we consider equivalent to home?

How can i become a beta tester?

Just follow the instruction in the beginning of this post. This is an open beta so anyone can install it. There is no beta tester, but rather a beta version that anyone can test.

Please pardon me if this problem has been posted here, but I think AppDaemon does not like IP addresses being the same for both ha_url and dash_url. The IP address where AppDaemon and HA reside in my same server with no virtual environment but running docker for both Home Assistant and AppDaemon is 192.168.0.2.

2017-03-10 01:44:48.609897 WARNING ------------------------------------------------------------
2017-03-10 01:44:48.610364 WARNING Unexpected error in dashboard thread
2017-03-10 01:44:48.610558 WARNING ------------------------------------------------------------
2017-03-10 01:44:48.615227 WARNING Traceback (most recent call last):
  File "/usr/local/lib/python3.4/asyncio/base_events.py", line 946, in create_server
    sock.bind(sa)
OSError: [Errno 99] Cannot assign requested address
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/site-packages/appdaemon/appdash.py", line 237, in run_dash
    srv = loop.run_until_complete(f)
  File "/usr/local/lib/python3.4/asyncio/base_events.py", line 373, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.4/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/local/lib/python3.4/asyncio/tasks.py", line 240, in _step
    result = coro.send(None)
  File "/usr/local/lib/python3.4/asyncio/base_events.py", line 950, in create_server
    % (sa, err.strerror.lower()))
OSError: [Errno 99] error while attempting to bind on address ('192.168.0.2', 5050): cannot assign requested address
2017-03-10 01:44:48.615720 WARNING ------------------------------------------------------------
2017-03-10 01:44:48.619454 INFO Connected to Home Assistant 0.39.2
[AppDaemon]
ha_url = http://192.168.0.2:8123
dash_url = http://192.168.0.2:5050

Are you locate din the UK? I can sort a loan camera out no problem - its my occupation

I would recommend to add the android_ip_cam component to hadashboard. It will be released saturday :slight_smile: ā€¦ thos are just ideas :slight_smile:

Look at my post for the Raspberry Pi docker install, in beta1 you will have to modify the Dashboard code a little before you build the image. Your docker container is not 192.168.0.2 internally so the OS canā€™t bind on that specific address.

1 Like

I grew up there but live in the US now - but thanks for the offer :slight_smile:

Iā€™m not sure exactly how cameras work in HASS yet, but I am wondering if a simple video widget would work for now - thgat would be pretty easy to do if peoples cameras have an identifiable stream url. For stills, an iframe widget (already planned) could refresh avery few seconds to pull the latest. Ultimately I would want to do some cooler stuff like popping up larger images when motion was detected etc, but that might be a good start.

1 Like

I don;t want anything proprietary, especially since I run on iPads :slight_smile: I will probably use HTML5.

1 Like

I agree :slight_smile:

Ok now itā€™s fixed!

I had to create blank folder called ā€œjavascriptā€ and ā€œcssā€ but now I can connect to the dashboard.

So, how can I start creating a dashboard? Sorry if the question may be stupid but in the original post Iā€™ve only found information for the installation and on the http://dashing.io/ website (linked in the configuration page - https://home-assistant.io/docs/ecosystem/hadashboard/dash_config/ ) I only found info maybe outdated.

Thank you in advance

Instead of iframe perhaps using the HTML5 video element?

1 Like

but in your case you are not using the dasboard v2 version :slight_smile:

@Jokerigno:

This is a thread for the Beta of v2 of the dashboard. Docs elsewhere on the site refer to v1 of the dashboard. v1 uses dashing but v2 is a complete rewrite in python. At the top of this thread is a reference to all of the instructions you should need to set v2 up: