I try to make it a habit to run my code with python3. I only fall back on python (python2) If I have to, to make it run.
I don’t have an Enviro, but I am running a modified version of the all-in-one-mini example on some Breakout Garden stuff I put together.
I believe the shot on the page was done with all-in-one.py, the background colour is tied to the current sensor that’s reporting. Sandy explained it with the following:
“On the all-in-one example it relates to the sensor values, so blue is low and red is high, scaled to the min and max values for the data shown on the screen at any one time. It depends which sensor value you’re displaying, and you can switch between them by tapping the proximity sensor.”
My custom (modified) weather-and-light.py example running on my breakout garden enviro clone setup. The only way I could get a shot of the display with my camera was to have bright light behind it. Otherwise it just blooms and is unreadable.
The background color changes based on time of day. It goes darker as night falls etc.
Pi Zero W mounted to pHat Stack with Mini i2c Breakout Garden and min i2c SPI Breakout Garden. BME280, RV3028, LTR559 , 0.96 SPI LCD.
I disabled the CPU temperature compensation code as that’s not needed with my setup.
Also swapped the date and time to opposite sides of the screen. put the date on the left side and time on the right. Also changed the format to what I like better.
Really nice bit of code I must say. =)