Close
0%
0%

Moon Rise and Set Times in Python

A python script to get sun and moon rise and set times and moon phase from the US Naval Observatory

Public Chat
Similar projects worth following
74 views
0 followers
When planning another project (hackaday.io project 199353 Magnificent Moon-o-Meter) I thought it would be good to work out the technical details in Python first, since I had never worked with json data before and hardly ever used a web API to retrieve data.

SunMoonClock_v10.py

Python script to retrieve json Sun and Moon information from the US Naval Observatory API, parse the json and print out sunrise, moonrise, sunset, moonset, nearest moon phase and what day of the moon cycle we are in.

x-python - 8.19 kB - 11/19/2024 at 21:21

Download

Enjoy this project?

Share

Discussions

Does this project spark your interest?

Become a member to follow this project and never miss any updates