-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
Pages with graphs
#2297
Comments
Plot bars in the Nextion display will require some redesign, but it is totally feasible. The hard part on this one is to get the info for that graph using a Blueprint, as we mainly use states, which are usually a single value.
Maybe with a quick look on those you can help me defining how to link to this potentially new graph page, then we define how that page should be. |
I suggest to use the values of entities which encode a list of values. It will be easy to create this format from any other sources of data in Home Assistant using (e.g.) python scripts.
E:g., for histogram it could be just list of comma-separated floats. Number of elements is a number of bars. Then we can connect the sensor |
Thought about the data format a little bit more. It shall also be possible to supply the names of the bars ("x"-labels) and may be the width. All can be done using the string value. I would suggest to use json as a format but not sure it will be easy to parse on the esphome/display side. I do not have experience with nextion. I installed editor and managed to create a separate page. But I do not see any ready-to-use components to display histograms. Looks like that Waveform component is not suitable for this. https://nextion.tech/2020/10/05/the-sunday-blog-understanding-and-customizing-hmi-components-part-7-design-a-new-component-from-scratch-the-bar-graph-display/ explains how to develop custom component. Is it supported by nspanel? |
Parsing json is quite easy, as we already use it when receiving some data from the display, however the ESPHome API used to communicate with Home Assistant is probably limited in length. |
Enhancement Summary
Add support for pages with graphs
Detailed Description
I want to be able to see the following graphs:
It would be great to have them as charts (1 bar per hour) and supply every bar with additional data. So, when I touch the bar, additional data is displayed.
Therefore I would like to be able to configure 1 page with chart (for electricity price) and modify weather forecast page to include graph there.
According to my understanding, this requires changes in TFT.
It looks like it shall be feasible: https://nextion.tech/2020/10/05/the-sunday-blog-understanding-and-customizing-hmi-components-part-7-design-a-new-component-from-scratch-the-bar-graph-display/
What do you think about this idea and if I to implement this feature, what shall I start from? I am embedded software developer but I'm new to Nextion and NSPanel.
Additional Context
No response
The text was updated successfully, but these errors were encountered: