bobiturboto wrote: ↑
Mon Jul 16, 2018 7:44 pm
Make sense about the traffic, I just wanted to reuse my hardware- ws2801.
Correct me if I am missing something but you are connecting to ESP8266 via wifi?
How much traffic is that?
I have the lightberry hardware and I am getting the video out from the tv and processing it with video grabber.
I am using my rpi like oscam server and for hyperion only so I don't know about putting one more device. However I have video out only from TV tuner for that reason I have asked about hyperion support or any alternative for rpi.
Sorry, you didn't miss anything
it's my fault for not being more specific.
So here's the thing.
Imagine if you have 100 leds, you need 100x3 bytes (RGB) of data to controll them. Which is 300 bytes.
Right now, these 300 bytes are calculated on the TV and sent via UDP to the ESP8266, telling it which LED has which RGB value.
hyperion itself has no functionality to receive 300bytes of data, telling it to controll the leds. OK?
So what'd be a theoretical workaround here?
hyperion has a tool called "hyperion-remote". So, when you SSH into your RPi you can execute "hyperion-remote" with some args. One of these args is "-image" (I believe so). Where you can tell hyperion-remote to load an image and it sets the LEDs according to the outer pixels of that image.
Now let's go back to the TV.
The screenCapture (which I use to grab the screen) can only capture an image with a minimum of 96x54 pixels, so this is 96*54*4=20736 bytes (the BMP has 4 bytes for each pixel + 54 bytes for the header), which is around 20kB. For such systems 20kb is HUGE!!
Then you'd have to save that image to the TV, upload it somehow to the RPi (or maybe use RPi to download that image via ftp) and execute the "hyperion-remote".
But this won't last for too long.
When you save that image to the TV, the writing process of the file produces a large load on the TV system, which it can't handle. Maybe for about 10 seconds, and that's it... crash!!! (Been there, done that
I just wanted to reuse my hardware- ws2801.
You absolutely can reuse your LED strip, since my firmware for the ESP8266 uses FastLED library which supports ws2801. I've ws2801 myself
The only thing you need is to invest into the ESP8266 (5 bucks, maybe?!)
and then you just re-plug the data, clock and ground pins of your led strip from the RPi to the ESP8266.