SunINFO is a simple web application that provides users with sunrise, sunset, and twilight times based on their location. The app uses the user's IP address to determine their location and fetches data from the Sunrise-Sunset API to display the relevant information.
- Displays Sunrise and Sunset times for the user's location.
- Shows times for various phases of Twilight: Civil, Nautical, and Astronomical.
- Retrieves location automatically based on the user's IP address using the GeoJS API.
- Responsive and user-friendly interface.
- index.html - The main HTML structure for the application.
- styles.css - Styling for the app's layout and design.
- script.js - JavaScript that fetches the user's location and sunrise/sunset data, and updates the UI.
- Open
index.html
in a web browser or click here. - The app will automatically detect your location and display the sunrise, sunset, and twilight times.
- The times will be updated dynamically based on your geographic location.
If you'd like to host this project on your own server:
- Download the project files (
index.html
,styles.css
,script.js
). - Upload the files to your web server or host them locally on your computer.
- Open
index.html
in a web browser to use the app.
- The app uses the GeoJS API to determine the user's location.
- The Sunrise-Sunset API provides the data for sunrise, sunset, and twilight times.
- If the location or times aren't displaying correctly, check your internet connection to ensure the APIs are accessible.
- Ensure your browser allows geolocation access for the app to function properly.
If you'd like to contribute to this project, please fork the repository and create a pull request.
This project is licensed under the MIT License.