Not directly. The easiest way I found to do it is by converting the stream to an mjpeg stream using ffmpeg and ffserver. You then access the mjpeg stream using http. If you scroll up to recent posts by me, I asked the same question. You use TYPES.CAMERA and filter function() to return the url to your mjpeg stream(s).
I switched to this because accessing my 20+ cameras through home assistant was causing out of memory issues with HA along with CPU issues and sync issues. Accessing the cameras directly completely eliminates all issues I was having.
Very interesting, thanks for the pointers. I haven’t used ffserver or ffmpeg so let me pick your brain for a second: can I run ffserver in a docker container? Do I convert it there and then get the URL from tileboard pointing to the ffserver url? Or how does this work exactly? Thanks for the help.
Yes. You convert with ffmpeg and ffserver serves the mjpeg stream as a url. You then access that url from tileboard directly. You should be able to run in docker but I just run them from a Linux VM. I run Ubuntu so apt install ffmpeg installs everything. It uses very minimal space. You then edit /etc/ffserver.conf to match your environment. ffserver then launches ffmpeg which outputs its stream to ffserver. Here’s a sample of my ffserver.conf file. Basically, what this does is it launches ffmpeg witch connects to my rtsp stream then outputs it to http://127.0.0.1:8090/channel02.ffm which is the ffserver listener. ffserver then makes this stream available as http://IP ADDRESS:8090/channel02.mjpeg. You then access this url from tileboard.
Is there a way to round down the numbers of the Weather Forecast Github code example? For example, rather then getting values like 33.42 - 67.36, just get them as whole numbers (33 - 67)?
You need to use parseInt(...) instead of of parseFloat(...) to display integers. You can also use any javascript functions to format or do calculations to the numbers.
As you know this is just an HTML page and we are using native controls available on the particular OS, <input type="range"> in this case. You can try to play around with CSS making things slightly bigger but I honestly believe that dashboards are primarily for larger screens while native HA UI is (almost) perfect for phones.
Much better, thanks @resoai, really appreciate your help (and Tileboard as a whole too!)
The STATE_MAPS.WEATHER_ICONS do not work for me though, not sure what that is. Could you explain more? I still have the icons mapped out manually as per your Github example code. Would this be different?
trying to play with custom.css, I’d like to have a different background color for even div in TEXT_LIST like it is done in TYPES.WEATHER_LIST.
I’m obviously not an css expert, tried
really? all elements on the normal HA gui are way to small to be workable.
on a normal phone i find it already bad if there are more then a few buttons to push.
i think its the other way around.
the bigger the screen the better the ha gui is, the smaller the screen the more there is need for a dashboard.