n0bel / PiClock

A Fancy Clock built around a monitor and a Raspberry Pi
MIT License
566 stars 182 forks source link

Feature Request: Moon Phases in Percentage instead of phases #220

Open cbronner35 opened 2 years ago

cbronner35 commented 2 years ago

Hello this is a pretty impossible request but is there a way I can grab the actual percentage rate of the moon instead of displaying the current phase? The reason is that we are a Medivac Helicopter EMS base and we wanted the medical crew to know what percentage rate the moon is currently at. We use NVG night vision googles at night and depending on the percentage rate determines how much visibility we have in the air. Strange I know but figured it didn't hurt to ask. The crew is loving the new weather TV! Thanks again for putting this together it looks amazing!!

merky1 commented 2 years ago

Hmmm …. The JS library for suncalc does this

https://github.com/mourner/suncalc

SunCalc.getMoonIllumination(/*Date*/ timeAndDate)

Would need hacking (i am not a python guru)