You have no idea how many times I have started messages today only to say “Hmmmm, I wonder” and figure it out before hitting send. The latest one was having the L in light capitalized by mistake. You gotta love this stuff…
Something like…
docker build -t appdaemon .
docker create --name appdaemon --restart always -p 5050:5050 -v /etc/localtime:/etc/localtime:ro -v [/local/conf]/folder:/conf appdaemon
docker start appdaemon
docker logs -f appdaemon
Just noticed something in the docs.
There is a second section called input_slider that I think was supposed to be for Media Player.
input_slider
A widget to monitor and contol an input_slider
Mandatory Arguments
entity - the entity_id of the media player
Fixed in the next version, thanks!
Ok, actually a functional question now.
I’m trying to do the header.yaml include files. I named mine header.yaml just to be difficult. The contents are below.
(venv) pi@haweb:~/appdaemon_dashboard/appdaemon/conf/dashboards$ cat header.yaml
label:
widget_type: label
text: Welcome to the Den
clock:
widget_type: clock
layout:
- label(2x2),spacer(4x2),clock(2x2)
(venv) pi@haweb:~/appdaemon_dashboard/appdaemon/conf/dashboards$
The main page is defined as follows under Den.dash
(venv) pi@haweb:~/appdaemon_dashboard/appdaemon/conf/dashboards$ cat Den.dash
#
# Main arguments, all optional
#
title: Den Panel
widget_dimensions: [120, 120]
widget_margins: [5, 5]
columns: 8
label:
widget_type: label
text: Welcome to the Den
clock:
widget_type: clock
DenLight:
widget_type: light
entity: light.den_fan_light
title: Den Fan Light
PatioLight:
widget_type: light
entity: light.outdoor_patio_light
title: Outdoor Patio Light
layout:
- include: header
- DenLight(2x1)
- PatioLight(2x1)
(venv) pi@haweb:~/appdaemon_dashboard/appdaemon/conf/dashboards$
My problem is that the Den Light Fan should be showing up on the 3rd row (since Welcome to the den is 2 rows in height), but the Den Light Fan is showing up at the end of the header.yaml file. In the main config I think we have defined the page to have 8 columns. In my header layout, I have the Welcome message at 2x2, spacer at 4X2, and clock at 2x2 which adds up to 8 columns. If I increase the spacer to 6x2, the Den Fan Light drops to row 2 and writes over part of the Welcome message as shown below.
If I include a “-” blank line underneath the header include, everything looks great and I can go back to a spacer of 4x2.
The log file is perfectly happy no errors or messages other than the normal compile messages.
This is how it works - you need to account for every row in the layout even if you don’t define widgets on it. The header takes up 2 rows in reality. The most sensible fix would be to add the blank row to its layout.
Oooh, I thought making the widget that size would resolve that. Guess the main page doesn’t know how large the header is as far as rows go.
Another thing, does this work with ipad’s yet? I’m getting the following errors in the log trying to load my pages from above on my ipad coming in remote (not on my internal lan)
2017-03-04 16:23:36.788312 INFO New dashboard connected: Den Panel
2017-03-04 16:39:26.455166 INFO function [compile_dash] finished in 9 ms
2017-03-04 16:40:18.071506 INFO function [compile_dash] finished in 9 ms
2017-03-04 16:40:18.348347 INFO Compiling dashboard 'apple-touch-icon-152x152-precomposed.png'
2017-03-04 16:40:18.614599 WARNING Dashboard 'apple-touch-icon-152x152-precomposed.png' not found
2017-03-04 16:40:18.615829 INFO function [compile_dash] finished in 276 ms
2017-03-04 16:40:19.016580 INFO Compiling dashboard 'apple-touch-icon-152x152.png'
2017-03-04 16:40:19.222538 WARNING Dashboard 'apple-touch-icon-152x152.png' not found
2017-03-04 16:40:19.223713 INFO function [compile_dash] finished in 211 ms
Works fine local, the problem is just coming in remote.
That’s just cosmetic you can ignore it. V2 was developed for iPads
You sound like me talking to my users a while back. LOL The difference is, they didn’t think it was funny. I do. LOL
I have an issue while installing HADashbord v2.
I’m stuck in this error:
root@pi:/home/homeassistant/appdaemon_dashboard/appdaemon# python3 -m appdaemon.appdaemon -c
usage: appdaemon.py [-h] [-c CONFIG] [-p PIDFILE] [-t TICK] [-s STARTTIME]
[-e ENDTIME] [-i INTERVAL]
[-D {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [-v]
[–commtype {SSE,WEBSOCKETS}] [-d]
appdaemon.py: error: argument -c/–config: expected one argument
can someone please help me? TY
after the -c you need to have the full path to your appdaemon config file. I’m guessing
/home/homeassistant/appdaemon_dashboard/appdaemon/conf
That was my first try. But I receive another error:
root@pi:/home/homeassistant/appdaemon_dashboard/appdaemon# python3 -m appdaemon.appdaemon -c /home/homeassistant/appdaemon_dashboard/conf
Traceback (most recent call last):
File “/usr/lib/python3.4/runpy.py”, line 170, in _run_module_as_main
“main”, mod_spec)
File “/usr/lib/python3.4/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/homeassistant/appdaemon_dashboard/appdaemon/appdaemon/appdaemon.py”, line 1822, in
main()
File “/home/homeassistant/appdaemon_dashboard/appdaemon/appdaemon/appdaemon.py”, line 1586, in main
config.read_file(open(config_file))
FileNotFoundError: [Errno 2] No such file or directory: ‘/home/homeassistant/appdaemon_dashboard/conf/appdaemon.cfg’
And there is a file called “appdaemon.cfg” in that folder!
Go to the directory where your file is and type
pwd # that will give you your current directory.
Then type
ls -l # this will give you a full listing of the directory with rights and ownership
post those please.
Here it is!
total 28
-rwxr-xr-x 1 homeassistant root 541 Mar 4 23:42 appdaemon.cfg
drwxr-xr-x 2 homeassistant root 4096 Mar 4 22:59 apps
drwxr-xr-x 2 homeassistant root 4096 Mar 4 22:59 dashboards
drwxr-xr-x 3 homeassistant root 4096 Mar 4 22:59 example_apps
drwxr-xr-x 4 homeassistant root 4096 Mar 4 22:59 example_dashboards
-rwxr-xr-x 1 homeassistant root 6563 Mar 4 22:59 examples.cfg
where is the pwd output
Just out of curiosity what is NaN% I’m guessing it’s volume, I just haven’t ever seen it expressed that way.
Here it all:
pi@raspberry:/home/homeassistant/appdaemon_dashboard/appdaemon/conf $ pwd
/home/homeassistant/appdaemon_dashboard/appdaemon/conf
pi@raspberry:/home/homeassistant/appdaemon_dashboard/appdaemon/conf $ ls -l
total 28
-rwxr-xr-x 1 homeassistant root 541 Mar 4 23:42 appdaemon.cfg
drwxr-xr-x 2 homeassistant root 4096 Mar 4 22:59 apps
drwxr-xr-x 2 homeassistant root 4096 Mar 4 22:59 dashboards
drwxr-xr-x 3 homeassistant root 4096 Mar 4 22:59 example_apps
drwxr-xr-x 4 homeassistant root 4096 Mar 4 22:59 example_dashboards
-rwxr-xr-x 1 homeassistant root 6563 Mar 4 22:59 examples.cfg
in your command, you left out the appdaemon directory between the appdaemon_dashboard and the conf directory. Copy and past the output from your pwd directory and use it as your -c directory. That’s the safest way to get it right and avoid typo’s
-c /home/homeassistant/appdaemon_dashboard/appdaemon/conf