New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)
Moderators: leecollings, remb0
-
- Posts: 4
- Joined: Sunday 23 February 2025 21:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)
Yes, roll back the invert ligt, and put the lightness to 0
-
- Posts: 852
- Joined: Wednesday 15 August 2018 14:38
- Target OS: -
- Domoticz version:
- Contact:
Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)
Nice, so if I m right code updated with your device.
-
- Posts: 5
- Joined: Sunday 19 February 2023 15:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)
Good morning, this is an interesting project.
To display the instantaneous powers instead of the accumulation, I made a change to the code.
It would also be very interesting to have more than one page that can be updated.
I have tried to make a few changes but so far nothing significant, I need to read the code better to understand what to do.
My CYD device has the ILI9342 driver (9341 vs 9342 landscape vs portrait)
Starting from CYD-Domoticz-Remote-3.0.0.tar.gz for now I have made two moficies working perfectly
The first one because the device names would not be clearly visible.
in platformio.ini
..... omissis
#-DSMOOTH_FONT=1
-DTOTAL_ICONX=2 # How many icon widht
-DTOTAL_ICONY=3 # How many icon heights
-DDEVICE_SIZE=1 # Device display size
..... omissis
in data_setup.cpp
omissis ......
//if (RJson2.containsKey(“Data”)) JSondata = RJson2[“Data”];
//if (RJson2.containsKey(“Level”)) JSonLevel = RJson2[“Level”];
if (RJson2[“Data”].is<const char*>()) JSondata = RJson2[“Data”];
if ((myDevices[ID].type == TYPE_CONSUMPTION) || (myDevices[ID].type == TYPE_POWER))
{
JSondata = RJson2["Usage"];
}
...... omossis
In the near future, I will try to introduce a switch, e.g. something like
#-DFIELD_SEL=1 // energy on meter power.
To display the instantaneous powers instead of the accumulation, I made a change to the code.
It would also be very interesting to have more than one page that can be updated.
I have tried to make a few changes but so far nothing significant, I need to read the code better to understand what to do.
My CYD device has the ILI9342 driver (9341 vs 9342 landscape vs portrait)
Starting from CYD-Domoticz-Remote-3.0.0.tar.gz for now I have made two moficies working perfectly
The first one because the device names would not be clearly visible.
in platformio.ini
..... omissis
#-DSMOOTH_FONT=1
-DTOTAL_ICONX=2 # How many icon widht
-DTOTAL_ICONY=3 # How many icon heights
-DDEVICE_SIZE=1 # Device display size
..... omissis
in data_setup.cpp
omissis ......
//if (RJson2.containsKey(“Data”)) JSondata = RJson2[“Data”];
//if (RJson2.containsKey(“Level”)) JSonLevel = RJson2[“Level”];
if (RJson2[“Data”].is<const char*>()) JSondata = RJson2[“Data”];
if ((myDevices[ID].type == TYPE_CONSUMPTION) || (myDevices[ID].type == TYPE_POWER))
{
JSondata = RJson2["Usage"];
}
...... omossis
In the near future, I will try to introduce a switch, e.g. something like
#-DFIELD_SEL=1 // energy on meter power.
-
- Posts: 852
- Joined: Wednesday 15 August 2018 14:38
- Target OS: -
- Domoticz version:
- Contact:
Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)
Hello,
?
Edit:
Have started something, but after reflexion, I m not sure it's usefull.
The homepage is to display your more usefull widgets, permanently, if you have 2 pages, it mean you loose 50% of your importants widgets because you can't see them, if I want to display more than 3*3 widget permanently, better to take a bigger display.
Others page than the homepage are updated when you display them ? (but not in real time)
For the "JSondata = RJson2["Usage"];"
I have made a try on my side, device type TYPE_POWER, are displaying instantaneous powers on my side by defaut
And right, TYPE_CONSUMPTION display lot of data, but never the instantaneous powers, but for me it's normal this widget is for consumption.
If you are interested by "Consumption Statistic" I m on a new project, using E-paper, not in real time (to save battery, so bad for instantaneous power), not action possible, but bigger display and work on battery, so it's possible to put it everywhere.
You mean if you use the optionIt would also be very interesting to have more than one page that can be updated
Code: Select all
DBONUSPAGE=X
Edit:
Have started something, but after reflexion, I m not sure it's usefull.
The homepage is to display your more usefull widgets, permanently, if you have 2 pages, it mean you loose 50% of your importants widgets because you can't see them, if I want to display more than 3*3 widget permanently, better to take a bigger display.
Others page than the homepage are updated when you display them ? (but not in real time)
For the "JSondata = RJson2["Usage"];"
I have made a try on my side, device type TYPE_POWER, are displaying instantaneous powers on my side by defaut
And right, TYPE_CONSUMPTION display lot of data, but never the instantaneous powers, but for me it's normal this widget is for consumption.
If you are interested by "Consumption Statistic" I m on a new project, using E-paper, not in real time (to save battery, so bad for instantaneous power), not action possible, but bigger display and work on battery, so it's possible to put it everywhere.
Who is online
Users browsing this forum: No registered users and 1 guest