-
-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement
displaying jpeg possible?
#2328
Comments
Please take a look at this: Technically, transfer an image is feasible, however the settings used by Nextion isn't the best for this. |
Apologies that I did not find the case you referenced. The necessary transfer time would make it useless anyway for the case that I proposed. Thanks for your answer and I will close this case now. |
No need for apologies, please. :) I still wanna find some time to look at this anyways. I do consider changing the baud rate to 921600bps, but that would require tons of tests. |
Were there any signal integrity measurements executed on the UART? I could take a look at it to see whether reliable 921600bps would be achievable. There is limited info on dynamic image display but it seems like this should be possible: https://community.home-assistant.io/t/upload-an-image-to-nextion-intelligent-series/403764 |
Collecting some more relevant links here in case I or anyone else feels like picking this up. |
Thanks for sharing!! I wanna go deep on this some time in the future, but would be really nice if someone else could take a look sooner. About the links you shared, these are based on I believe for this model the best approach would be using advanced reparse mode to implement a protocol to transfer initial coordinates and a sequence of colors, and process it into the display itself to plot each pixel. With this we reduce a lot the amount of bytes needed on the transfer and therefore could make it possible to transfer in a reasonable amount of time. |
I'd love to support you in this investigation but I'm not sure I have the skills :-) |
Maybe you can help with specifications and testing at least. 😉 My idea was to have an action to display an image where the user provides a url for that image. What should be the maximum time acceptable from sending the action from HA to the image being completely visible on the panels display? |
I did some further thinking about the specification:
|
My idea is to start with the minimum functional solution, then improve it over time...
I would try to use as much as possible the Online Image component currently available on ESPHome to transfer the image to PSRAM and then get the color of each pixel to be sent to Nextion (to be developed).
This wouldn't be hard... Even to pass a refresh interval as a parameter when calling the action to plot the picture.
Ok, I think I will start trying to make this working within 5s. It should be feasible, but must be tested as many things could interfere (including the processing limitations on both sides). |
For now I would indeed start with PNG as that seems to be the only one currently supported by that ESPHome component. Handling conversion and even rescaling in HA is probably the best starting point. Then your code can assume it gets an image with the correct extension and size. One possible option to handle the HA "preprocessing" of the image is to create a shell script that calls imagekick: |
Enhancement Summary
display image
Detailed Description
Would it in any way be possible to download and display an image from an http server or does the NSpanel architecture with the nextion display prevent this?
It would be awesome to have the panel display a photo from the doorbell camera whenever somebody rings it.
Additional Context
No additional context...
The text was updated successfully, but these errors were encountered: