LCD2004 content on mirror web-page/ the Mini Dashboard feature

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
Domosapiens
Normal user
Posts: 307
Joined: 06 Nov 2016, 13:45

LCD2004 content on mirror web-page/ the Mini Dashboard feature

#1 Post by Domosapiens » 15 Dec 2017, 01:11

Thanks for the nice ESP Easy software and extensive Wiki.

Currently I have an ESP unit under test to measure and control my central heating system with a LCD2004 for local read-out.
Running GIT version: v2.0.0-dev11 on Wemos D1 mini.

I like to monitor the shown info on the LCD2004, remote on a web-page.
Global sync on an extra ESP unit with a LCD2004 is "too global", because all my other EPS units would get this info also (with the limited number of tasks).
What I prefer: a bookmark in my browser for a direct display content of the LCD2004, with the same layout (and limitations).

Searching the Wiki and exploring my options, I could not find a solution.
I have seen (but not understood) ESP web interface customization.
It states: You then need to enable the "Custom CSS" under Tools/Advanced ..... but version: v2.0.0-dev11 does not has the Custom CSS option.
I assume this Advanced page is an older version: https://www.letscontrolit.com/wiki/inde ... vanced.png
But ... I don't know if "Custom CSS" offers a solution.

Back to the question: how to see in a web-page the same information as shown on the LCD2004 ?
Like some code in a HTML file that my bookmark/browser can use to collect the same information and format as the LCD2004.
Is there a solution?

Thanks for your help.
Domosapiens

@grovkillen thanks for all your Wiki updates, but could you update the advanced page?
@grovkillen side-note : the MP3 page has a typo i think DRF0299, must be DFR0299
Last edited by Domosapiens on 15 Dec 2017, 22:09, edited 1 time in total.
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.

TD-er
Core team member
Posts: 9905
Joined: 01 Sep 2017, 22:13
Location: the Netherlands

Re: LCD2004 content on mirror web-page

#2 Post by TD-er » 15 Dec 2017, 10:51

I think you should rather use something that looks at some MQTT broker, instead of adding functionality like an extra command.
Given the limited resources of the ESP, I think it is best to let the device handle all the hardware interfacing to the sensor and let it push the values, instead of doing a pull to collect the values.
Thus let the ESP push to a MQTT broker and let the browser pull from (or 'listen to' actually) the MQTT broker.

Also, there is more than one display plugin (LCD, OLED, OLED_framed, 7-segment). Adding an extra command to get the displayed information has to be implemented in all of them.
And given my "allergy" to code duplication, that would mean a redesign of command handling for the display plugins :)

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden

Re: LCD2004 content on mirror web-page

#3 Post by grovkillen » 15 Dec 2017, 20:13

Domosapiens wrote: 15 Dec 2017, 01:11 Thanks for the nice ESP Easy software and extensive Wiki.
...
@grovkillen thanks for all your Wiki updates, but could you update the advanced page?
@grovkillen side-note : the MP3 page has a typo i think DRF0299, must be DFR0299
Thanks for the feedback! I have updated the mp3 page but not yet the advanced page. I will do that in time ;)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: LCD2004 content on mirror web-page

#4 Post by Shardan » 15 Dec 2017, 21:53

Domosapiens wrote: 15 Dec 2017, 01:11 Global sync on an extra ESP unit with a LCD2004 is "too global", because all my other EPS units would get this info also (with the limited number of tasks).
If that's the only problem - global sync depends on the UDP port you use.

If you want just these two ESP's to "global sync", choose another UDP port just for these two.
All the other ESP's should not see the data then.

Regards
Shardan
Regards
Shardan

Domosapiens
Normal user
Posts: 307
Joined: 06 Nov 2016, 13:45

Re: LCD2004 content on Mini Dashboard

#5 Post by Domosapiens » 15 Dec 2017, 22:09

Thanks grovkillen.

Thanks TD-er,
Yes, MQTT could be a building block of a solution, but just a small one and adding a lot of additional complexity, but still not a LCD emulator.
I use Domoticz, so the data is available there but scattered over several places and tabs.

It would be nice to have a dashboard feature where selected data of one ESP is brought together: that's the function of the LCD !
(OLED and 7 segment displays are smaller versions in terms of money, size and/or power consumption)

Searching on ESP and dashboard give me this page: ... the Mini Dashboard.
.... A new feature has been added (github development as of Aug 8th,2017)
https://www.letscontrolit.com/wiki/inde ... _Dashboard
According to the style of writing, I think it's from Martinus, check: yep, mvdbro committed on Aug 7 Custom WEB page handler (SPIFFS).

So the Mini Dashboard feature is available in v2.0.0-dev12 of 22 Sep.
Is there anyone who can share his experience with the Mini Dashboard?
PM
Edit of topic title
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.

TD-er
Core team member
Posts: 9905
Joined: 01 Sep 2017, 22:13
Location: the Netherlands

Re: LCD2004 content on mirror web-page/ the Mini Dashboard feature

#6 Post by TD-er » 15 Dec 2017, 22:37

Hmm, didn't know that feature.
Sounds nice.
Looks like that code is indeed present in WebServer.ino of the 2.0 branch.

As you probably already noticed, I myself have no experience with that feature.

Domosapiens
Normal user
Posts: 307
Joined: 06 Nov 2016, 13:45

Re: LCD2004 content on mirror web-page/ the Mini Dashboard feature

#7 Post by Domosapiens » 15 Dec 2017, 22:42

Updated to dev12.
A great capability!
MUC_11_Capture.JPG

A hidden gem behind <your IP>/dashboard.esp
Thanks Martinus.
You do not have the required permissions to view the files attached to this post.
Last edited by Domosapiens on 16 Dec 2017, 00:56, edited 1 time in total.
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.

Domosapiens
Normal user
Posts: 307
Joined: 06 Nov 2016, 13:45

Re: LCD2004 content on mirror web-page/ the Mini Dashboard feature

#8 Post by Domosapiens » 16 Dec 2017, 00:54

@Shardan, sorry, missed your post
If you want just these two ESP's to "global sync", choose another UDP port just for these two.
All the other ESP's should not see the data then.
Thanks for the hint: another UDP port...
That is great to iron-out layout problems.

Also useful in other tight coupled ESP clusters ("measure here" and "act there") !
Thanks
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.

Who is online

Users browsing this forum: Ahrefs [Bot], Anthropic Claude Bot [bot] and 23 guests