New
#601
THPUV.py is the file I use with my portable weather clock. It has a Si1145 light sensor module on it to measure UV light and ambient light. It displays the UV index along with all the other stuff. I also use the ambient light reading to auto adjust the LED matrix brightness etc. Text goes all white in very bright light to make reading it easier. I have a hard time seeing Red and Blue in very bright light. At night when its dark it auto dims the LED Matrix and turns off the 10mm LED indicators.
You can do some of that with the joystick on yours. Stick up, LED bright, stick down DIM. It defaults to DIM, If you want full bright by default change sense.low_light = True, to sense.low_light = False, or rem that line out with a #. I have a diffuser on mine and the low setting looks better. Stick to the right all white text, stick left colored text. Stick press in the center does a shut down. I can't access the joystick on my portable without taking the clear cover off so I set it up to do it all on its own based on how bright the light is around it. One less hole for rain or snow to get in. This one is as waterproof as I can make it and still work. Just a couple of strategically placed vent holes so it can measure the pressure and humidity. Temps read too high even with vent holes so I mounted a BMP180 temp sensor on the outside bottom of the case. I keep both files close by because if I find a typo in one, odds are I made the same error in the other. They share a big chunk of code.