-->September 6th, 2025<--
Thank you to GolfCharlie and Claude Code for fixing the code to work with the newly changed FAA API! They have saved a lot of time. A new image has been created and will be uploaded today and available later tonight. If you don't want or need the image, you can visit https://github.com/markyharris/livesectional and incorporate the changes into your board now.
--->September 5th, 2025<--
There has been another change to the FAA API which has again broke the map. We are currently working on this. Check back for fix. If you have the fix please post it. - Mark
Hi, would it be possible to modify the the high wind blink from an on/off blink to either a bright/dim or even better yet something like what Harrison Liddiard did with his ( https://harrisonliddiard.com/project/aviation-weather-map/ ) where he has it oscillate faster or slower based on the wind speed?
Thanks!
I like the idea. For now, there won't be any changes. But if version 5 sees the light of day, I'll try to add that feature. I'm keeping a list of such suggestions.
If you want a different color other than black, you can edit the 'metar-v4.py' file at around line 1624. Change;
color = color_black
to
color = (R,G,B)
Brighter colors would be higher numbers (255) and darker would be lower (50)
Hope this helps in the meantime. - Mark
Thanks, Mark. I updated the code and pasted below in case anyone else is interested:
#Check winds and set the 2nd half of cycles to black to create blink effect
if hiwindblink: #bypass if "hiwindblink" is set to 0
if (int(airportwinds) >= max_wind_speed and (cycle_num == 3 or cycle_num == 4 or cycle_num == 5)):
color = (int(color[0]/2), int(color[1]/2), int(color[2]/2)) # dim the current color by half
print(("HIGH WINDS-> " + airportcode + " Winds = " + str(airportwinds) + " ")) #debug
logger.info(("HIGH WINDS-> " + airportcode + " Winds = " + str(airportwinds) + " ")) #debug
Thank you for that! Tell us which file (I assume metar-v4.py) and what line number, or area to make finding it a bit easier. - Mark
This is interesting. Mark, if you recall there was another thread with a feature request for a gradient in brightness (instead of being stuck at two discrete levels). https://github.com/liddiard/aviation-weather-map/blob/master/light_sensor.py seems to circumvent the limitation to get an approximate measure of ambient brightness.
Thanks for pointing that code out. It's an inspired solution, to use a photo resister. I really like the way he codes, its clear and concise. At some point I'll have to try a photo resister to see if I can get the same results. - Mark
Thank you for that! Tell us which file (I assume metar-v4.py) and what line number, or area to make finding it a bit easier. - Mark
@markyharris Sorry Mark, I missed your reply on this. Yes, it's in the metar-v4.py file, approximately around line 1620.