OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Does anyone have a working I2C LCD working? › Reply To: Does anyone have a working I2C LCD working?
RonRN18
I ***finally*** have a working LCD that automatically updates itself (every 30 seconds) with the latest status of OpenSprinkler. You can see my work at [github](https://github.com/RonRN18/ospiLCD-mqtt). My software may not be the most elegant and I found that I got MUCH better help from ChatGPT than from the Python forums. I found that I was met with rude attitudes when asking for help on the Python forums and people assumed I had more knowledge than I do. ChatGPT has its issues too. It was adding irrelevant variables while removing important variables but I could tell, in context, how to accomplish what I was trying to do. In my get_data
function, I named many more variables than I needed because I have a plan to change my code to show other information in the future. The current display is equivalent to the microcontroller version and many of the items on the display are drastically shortened so that it all fits on the display, all the time. My thought is to change it up a bit and allow for lines that scroll. For example, instead of the line saying something like “MC:1_________”, I could have it say: “Front Yard is running”. That is greater than 20 characters long, so the line will be buffered and scrolled along the line. It would determine which station is running and instead of just showing the station number, it would show the station name… however long it may be. One of my favorite features of OpenSprinkler in general is the departure of needing to know what each station number is and continue referring to it as a number and instead, using logical names for each zone.