How to display on Tasmota ESP32 GUI an own variable parameters - simple example ? #42
-
Hi, I am trying to do first steps in Berry and I would like to begin with easy step. My idea is to display on ESP32 WROOM (let's called it as hub) a parameters from another ESP32 sensor using websend or BLE. I tried to play with web_sensor() and tasmota.web_send() but no effect. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
To put data on the Tasmota web UI front page via Berry, one approach is to create a driver in Berry. Here's an example of a driver: You can skip the parts about I2C usage, the key part is the callback for |
Beta Was this translation helpful? Give feedback.
-
I decided to keep the questions in the same thread due to my project. Becuse I see there is lot of question how to read the var,mem in Berry and display on GUI I will keep everything there. I set the communication between ESP32's (slave and master) with Websend:
ESP32 working in DeepSleepTime 3600 (1 hour) Then I read the Mem1 parameter on other ESP32 like this:
Then I display the parameters on GUI using I know it is not a high fly method but tying the best what I can do. As you see I'm shaing the Temporary I found this:
|
Beta Was this translation helpful? Give feedback.
To put data on the Tasmota web UI front page via Berry, one approach is to create a driver in Berry. Here's an example of a driver:
https://tasmota.github.io/docs/Berry-Cookbook/#creating-an-i2c-driver
You can skip the parts about I2C usage, the key part is the callback for
web_sensor
usingtasmota.web_send_decimal
with a formatted message including labels and values. And adding it as a driver usingtasmota.add_driver
. The callback will be invoked every couple of seconds when the front page is viewed in a browser.