Skip to content

bcorwin/moon_lamp

Repository files navigation

Lamp in action

Set-up and running

Reading screens

Color Guide

This is helpful when trying to determine which screen you are looking at based on the color:

Color Screen
#FFFFFF White and/or #000032 Dark Blue Moon
#00BFFF Light Blue Feels like (-10 to 19)
#0000FF Blue Feels like (20 to 49)
#00FF00 Lime Green Feels like (50 to 79)
#FFA500 Orange Feels like (80 to 109)
#FF0000 Red Feels like (110 to 130)
#FFFF00 Yellow Sunniness
#4B0082 Indigo Precipitation (Rain)
#EE82EE Violet Precipitation (Snow)
#CC3433 Red and #0E3287 Blue Cubs game

Moon

The moon screen, by default, shows the current moon phase. It can also be used to show a fixed phase. Using this, a screen could be created to cycle through the phases.

To read the screen, the lamp will light up what part of the moon is visible with #FFFFFF White and the dark side of the moon with a #000032 Dark Blue. Some example phases (more can be found in /static):

New moon Waxing crescent
First quarter Full moon
Third quarter Waning gibbous

Feels like

The feels like screen, by default, shows the current local feels like temperature. It uses four colors #00BFFF Light Blue, #0000FF Blue, #00FF00 Lime Green, #FFA500 Orange, and #FF0000 Red using these rules based on the feels like temperature:

Temperature range (°F) Color
-10 (or below) to 20 #00BFFF Light Blue
20 to 50 #0000FF Blue
50 to 80 #00FF00 Lime Green
80 to 110 #FFA500 Orange
110 to 130 (or above) #FF0000 Red

Each of those ranges (except the top and bottom, more on that later) has 30 degrees which is then divided into six groups of 5 degrees and the corresponding number of lamp segments is filled in with the above color. For example, if it's 54°F, the lamp would be #00FF00 Lime Green and one segment would be filled in. If it were 55°F, two segments would be filled in.

Example images:

50°F - 54°F (i.e. low 50s) 55°F - 59°F (i.e. upper 50s)
30°F - 34°F (i.e. low 30s) 35°F - 49°F (i.e. upper 30s)
70°F - 74°F (i.e. low 70s) 75°F - 79°F (i.e. upper 70s)

If the temperature is below -10°F or above 130°F, the lamp will use the corresponding color (#00BFFF Light Blue and #FF0000 Red respectively) but light up in an on, off, on, on, off, on pattern:

Example images:

Below -10°F Above 130°F

Sunniness

The sunniness screen shows what percentage of the sky is clear (i.e. the inverse of cloudiness). If there is 25% cloud cover, then it's 75% sunny. The screen takes the sunniness percentage and finds the nearest 1/6th percent and lights up that number of LEDs. Additionally, it will light up the next LEDs at a lower power so you can see roughly if it's closer to, for example, 16% sunny or 33% sunny. If it's 0% sunny (100% cloudy), the first segment will light up at a minimum value so you know it's on the sunniness screen.

Example images:

100% sunny (0% cloud cover) 0% sunny (100% cloud cover)
25% sunny (75% cloud cover) 50% sunny (50% cloud cover)

Precipitation

This screen shows the type of precipitation and the probability for the day. #EE82EE Violet means snow and #4B0082 Indigo means rain and the number of sections that are lit up corresponds to the percent change of that happening for the next two hours. If the percent of precipitation is very low (<8%), this screen will not show up.

Example images:

30% chance of rain 60% chance of snow

Cubs game

This screen shows if there's a home day or night Cubs game. #CC3433 Red then #0E3287 Blue means there's a day game. #0E3287 Blue then #CC3433 Red means there's a night game. No screen means no game.

Example images:

Day game Night game

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published