Announcement: HADashboard v2 Beta3!

Looks like you got a spider on your cam, or someone broke it.

spider … thats all :stuck_out_tongue:

stange behaviour with alarm:

can’t input the code …

after update i got an error @aimc

2017-03-27 22:17:38.747198 WARNING ------------------------------------------------------------
2017-03-27 22:17:40.107985 INFO New dashboard connected: Main Panel
2017-03-27 22:17:48.402666 INFO New dashboard connected: Main Panel
2017-03-27 22:19:39.904518 INFO Loading custom skin 'lightgrey'
2017-03-27 22:19:39.968097 INFO Compiling dashboard 'dash_main_grouped_tablet'
2017-03-27 22:19:48.691715 WARNING Variable definition not found in CSS Skin variables: $sensor_text_style
2017-03-27 22:19:52.345139 WARNING ------------------------------------------------------------
2017-03-27 22:19:52.346480 WARNING Unexpected error in CSS file
2017-03-27 22:19:52.347830 WARNING ------------------------------------------------------------
2017-03-27 22:19:52.350922 WARNING Traceback (most recent call last):
  File "/home/pi/appdaemon2/appdaemon/appdaemon/appdash.py", line 86, in load_dash
    dash = dashboard.compile_dash(name, skin, skindir, request.rel_url.query)
  File "/home/pi/appdaemon2/appdaemon/appdaemon/dashboard.py", line 26, in profiled_fn
    dash = fn(*args, **kwargs)
  File "/home/pi/appdaemon2/appdaemon/appdaemon/dashboard.py", line 44, in newfunc
    result = func(*args, **kwargs)
  File "/home/pi/appdaemon2/appdaemon/appdaemon/dashboard.py", line 512, in compile_dash
    dash = get_dash(name, skin, skindir)
  File "/home/pi/appdaemon2/appdaemon/appdaemon/dashboard.py", line 587, in get_dash
    widgets = get_widgets()
  File "/home/pi/appdaemon2/appdaemon/appdaemon/dashboard.py", line 691, in get_widgets
    with open(jspath, 'r') as fd:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/appdaemon2/appdaemon/appdaemon/widgets/slider/slider.js'

2017-03-27 22:19:52.352560 WARNING ------------------------------------------------------------

i deleted all compiled files.
i see you changed naming, but i dont know where this error comes from.

Sorry to be a pest, but I’m still not asking my question right. What I want to know is how to get the light blue border on the top and right of the group shown below?

that are 4 widgets.

the label on the top, the switch left, the inputboolean and then a small label at the right.
the top label has the upper corners rounded
the small label on the right has only the right bottom corner rounded.

I think it is because your are using the same custom_css dashboard.css file.
You should add all the new stuff to it from the default dashboard.css file. For the alarm it will be all the .modalDialog stuff.

It should only be (1x1) when you click it it will show what you are seeing right now.

Ahhhhh,
I see said the blind man. I’ve been beating my head against the wall trying to figure out what you were using to enclose the widgets in and then put a header on top of it. So do you put that group of 4 into it’s own dash file and then just reference it in your layout for the larger dashboard?
Thanks
Chip

you can find it in this part of my dash:

    -                                header.radio(270x30),spacer(65x1),header.allesuit(120x30)
    - empty: 8
    -                                spacer(385x1),switch.hboog2(100x100),switch.hbank2(100x100)                                                                     
    - empty: 20
    -                                input_boolean.swr32,input_slider.radio_volume2, header.empty(30x120),spacer(65x1),input_boolean.allesuit2(120x100)

header radio, input_boolean.swr32,input_slider.radio_volume2 and header.empty

@aimc i found out where my error came from.

the empty directories slider and display (in the widgets directory) were not deleted with the update.
that results in errors.

Were you by any chance using a widget with the “slider” widget type instead of “input_slider”?

Those directories should have been deleted though …

EDIT: I think git doesn’t automatically delete them when you do a new pull even though they are no longer in the repository, however that shouldn’t have been a problem unless you were trying to use one of the base widgets which I have been tying to avoid anyone doing by not even mentioning them (of course I just did now so we are hosed!!)

@aimc
I need a way to put formatted text into a field. Can we do one of the following?

  1. make the iframe url_list so it can pick up a local html file file:///localfile.htm
  2. make the label so it can hold formatted text (either html or print formatted (recognizes \n \t, etc)
  3. a new widget for displaying text blocks instead of just the larger label type text

I would prefer #1I think since it would be interpreted as html and could include links to other information as well.

Or if you are feeling really good about it today, how about a marquee where we could post various information to it like news, weather, household notices, etc.

they were not deleted because i had edited the css in there and for the update i had renamed the files to .bck
you know me, i am not Always playing by the rules, resulting in the unexpected :wink:

1 Like

That makes no sense as it makes assumptions about where you are running stuff - e.g. files would have to be local to the browser whcih in most cases is a tablet

Very easy to do, I added it to the list

Why can;t you use a text or label widget and set the font size small?

1 Like

Of the 3 I prefer 2 because it can give you a lot of flexibility in text formatting (all of HTML at your disposal) and it is a 1 line change :slight_smile:

i think he means local for appdash.
so like: custom_css/skin/img/anyfile.htm

That would make more sense, but that is pretty close to what the iframe widget does already, I could add the ability to put files in a special directory then reference them from the IFRAME widget I suppose

Bingo. It’s getting scary now. @ReneTode understands me.

It gives me a way to pickup somewhat dynamic text like a message of the day (motd) or weather alert or something and include it in the loop of web pages being run through.

I could move my weatherAlert app over to the dash AppDaemon and let it build the file every 15 minutes or so. That way if there is a weather issue or maybe a breaking news issue, It could come up on the iframe.

1 Like

i tested it.
i used

 - /images/test.html

in the iframe and did put the file in assets/images

that works.

Ok then, so it’s based off of the assets directory. My thought is that the assets directory is one that is core to ADD so I probably shouldn’t be creating files in there. It would be nice if we could reference it back a little so we could use the dashboards directory or a directory under there where it’s meant for the standard home admin to use, vs a place that only Andrew should be playing with the files.

1 Like

you can create your own dir in the custom_css directory.
i just tested that and that works also.

so you can use /custom_css/myweatherfiles/weather.html