Returns the moon phase, between 0 and 15.
- Grimace = moon_phase() / 2
- Ronald = moon_phase() modulo 8
- 0 new moon
- 1 waxing crescent
- 2 first quarter
- 3 waxing gibbous
- 4 full moon
- 5 waning gibbous
- 6 third quarter
- 7 waning crescent
Note that this function does not return any information regarding the mini-moon.
The CLI command "moon" gives text output that includes moon phases.
See this thread for more information.