Sorry, no I haven’t had a chance to do it. I have just looked through the code again now and it’s not a straight forward edit as far as I can make out.
It certainly isn’t “its as simple as adding in 2 more feeds” I’m afraid.
On that point, you do not necessarily need to add more data feeds, that is an independent decision. Other users have made changes to the data that is displayed and with a bit of searching here on the forum you might find something to assist modifying the content displayed.
However, what you are actually needing is to change HOW the content is displayed, currently there are a number of pages of 2 lines each. To utilise the other 2 lines of your 4 line display, you essentially need to either show the same data over half as many pages or indeed, expand the data to fill half of each of the current pages, or somewhere in between.
Once the code is amended to fill 4 lines per page, I think it might be trivial to add feeds and/or pages. That is however, just my expectation, not a confirmed position.
It seems you are in luck with the library as that appears to have the ability to work with up to 4 lines,
but I have no idea where that lib came from or if it’s fully tested with 4 lines. All I know is what you see above.
In the emonPiLCD.py file you see there are numerous references to lcd[0]
and lcd[1]
, these are the 2 lines for the existing display, to use all 4 lines of your display, lcd[2]
and lcd[3]
will need to be introduced for each page (either with new info/feeds or by rearranging the existing pages).
Since I do not have a display to test, nor am I familiar with the existing code, I’m not sure I how much use I’ll be to you. This is significantly less straightforward than the temperature stuff we’ve already done.
I’m struggling to understand the code, it seems the “lcd” class is defined twice, once as LCD
in themiddle of the emonPiLCD.py file and also as lcd
in the included lcddriver.py file, as far as I can tell the LCD
isn’t used, but I can’t be sure. Maybe I’ll take another look another time, but I’m pretty busy and whilst i don’t mind helping you. I do not really have the time to write this for you. The temperature stuff was easy as I had experience and examples of my own to call on.