Comments (8)
The lv_msgbox is for sure interested to show notifications on the screen.
There is already a PR that added this functionality and can be used like:
binary_sensor:
- platform: gpio
pin: GPIO0
name: "Notificatiom Button"
on_press:
then:
- lvgl.notification:
title: "Hello World"
message: "Please, brush your teeth every day."
buttons: ["Done","Not Today"]
on_return:
then:
if:
condition:
lambda: |-
return x== "Done"
then:
... # do something`
I hope @clydebarrow can add it soon.
from esphome.
Yeah, I saw that just earlier. I don't seem to have notifications on for PRs or issues :-( Will get to it as I work through the widgets.
from esphome.
How would a lv_win look like? Would it be easier than drawing the items manually? (a full screen translucent object to make it modal, children objects on top of it for interaction).
How do we get return states?
Use case:
Five windows with motorized shutters. In addition to the usual UP/STOP/DOWN buttons, the inhabitants want to have three shortcut positions for each shutter, and also a slider for free positioning. Useless to say that it's impossible to put all these on a page, and also it would be a pity to use up 5 pages just for these.
We'll just put the most used, UP/STOP/DOWN buttons on the page (this already looks a bit much...) and we'll use a long press event on the middle STOP button to show a pop-up with the extra required settings related to the desired shutter.
OpenHASP solution with manual drawing, very cumbersome.
from esphome.
You can create more complex dialogs added to top_layer
with a full-screen sized, half-opaque obj
with any child widgets on it, and the hidden
flag set to true
by default. For non-modal dialogs, simply set the clickable
flag to false
on it.
(added this as a note to the doc)
from esphome.
Yeah, I saw that just earlier. I don't seem to have notifications on for PRs or issues :-( Will get to it as I work through the widgets.
still waiting to see it merged or commenting on.
from esphome.
Yeah, I saw that just earlier. I don't seem to have notifications on for PRs or issues :-( Will get to it as I work through the widgets.
still waiting to see it merged or commenting on.
Meanwhile it got implemented in a different way: https://deploy-preview-3510--esphome.netlify.app/components/lvgl#msgboxes
from esphome.
Yes I considered not implementing the inbuilt msgbox but decided it was nice to have a shorthand way to create dialogs.
from esphome.
Yeah, I saw that just earlier. I don't seem to have notifications on for PRs or issues :-( Will get to it as I work through the widgets.
still waiting to see it merged or commenting on.
Meanwhile it got implemented in a different way: https://deploy-preview-3510--esphome.netlify.app/components/lvgl#msgboxes
I like my solution more sorry. I have already some use cases where i want to use this msgboxes. I do not see why we should predefine them,
from esphome.
Related Issues (20)
- Currently active page variable or sensor HOT 5
- Lambdas for widgets states/flags HOT 1
- `lvgl.is_idle` condition, timeout required HOT 7
- LVGL sensors HOT 1
- `transform_angle`, `transform_zoom` failure
- Font kerning HOT 1
- Formatted text for widget updates HOT 1
- QR code
- Graph as image HOT 2
- VNC: host binary crashes on client disconnect
- VNC and `graphical_display_menu` don't play nicely together HOT 3
- Custom component/code integration for pages, widgets, etc. HOT 5
- Lvgl on e-paper crash (TTGO T5_V2.3_2.13) HOT 2
- Compile error in LVGL after last commit. HOT 6
- FR: `udp` sensor from multiple providers
- FR: `udp` text sensor
- FR: `udp` arbitrary data with actions and triggers
- FR: `udp` repeat messages
- Page's `skip` option to be set at runtime
- FR: `udp` multiple instances HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ī¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esphome.