hzeller / rpi-rgb-led-matrix

Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO
GNU General Public License v2.0
3.63k stars 1.15k forks source link

RGB Matrix and Webserver for Webpage #734

Open dodo124 opened 5 years ago

dodo124 commented 5 years ago

Hello,

I am very impressed by your work and I got all demos running on a Pi3 with a driver HAT ( a red one for three panels in parallel).

But in your FAQ you mention that using three panels is a lot of work for the raspi (when running videos).

So do you think the following will work?

I want to run a additional webserver on the Pi3 and I want to show a html file on the rgb matrix.

The informations for the website (html file) are comming from several webservices like google, wetherforcast etc. There are quite alot of projects out there but all of them are not using this kind of rgb matrices.

If it is works at all, what do you think will be the best way to implement this?

Regards Dominik

hzeller commented 5 years ago

Three panels is no big deal, you can control many more with a Pi. Problem with video is, that the CPU of the Pi is too slow to decode and scale it fast enough.

If you have a HTML renderer that can render things into a canvas, you can do what you intend to do. It might be simpler though to have something that decodes the data from some json source and then have some manual dedicated renderers for each data; with the low resolution, you want for instance have a crisp bitmapped font without antialiasing (see the text-examples how to do that), or properly scaled icons (e.g. for weather icons such as sun, cloud and rain).

Should be a fun weekend project.

dodo124 commented 5 years ago

Hi again, I am more talking about 16 panels (64x64 matrices) 😉 but probably it will work. The initial idea was to use Apache and mindori and use fix scaled fonts there. But your idea might really be smarter because the performance should be much better. I could use some static text and variables for the external data. Can you recommend a source of knowledge e.g. book, tutorial?