sunrise-sunset-integrator

Fetch sunrise, sunset, and twilight data for geographic locations.

Updated May 3, 2026
One-click install
npx skills add https://github.com/wanyusheng63-alt/vocab-learn --skill sunrise-sunset-integrator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sunrise-sunset-integrator
Source: https://github.com/wanyusheng63-alt/vocab-learn/tree/main/.codebuddy/skills/sunrise-sunset-integrator
Command: npx skills add https://github.com/wanyusheng63-alt/vocab-learn --skill sunrise-sunset-integrator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This integration provides reliable sunrise, sunset, and twilight times for any geographic location to enable daylight-aware features in apps.

Core Features & Use Cases

  • Location-based sun times: fetch sunrise, sunset, and twilight data for a given latitude, longitude, date, and time zone.
  • Golden hour and blue hour planning: compute optimal photography lighting windows for planning shoots.
  • Astronomy and smart-home: support stargazing schedules and daylight-driven automation across devices.

Quick Start

Install the SDK, create a SunTimes client with createSunTimesClient, and fetch sun times for a chosen location.

Frequently Asked Questions about sunrise-sunset-integrator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get sunrise and sunset times for a specific geographic location?

To get sunrise and sunset times, you provide a latitude, longitude, date, and time zone to the client. It validates the coordinates and date formats to return accurate sun times for your location.

Can I calculate golden hour and twilight times for photography planning?

Yes, you can calculate golden hour and twilight times for photography planning. The integration provides twilight data and optimal lighting windows to help you schedule and plan outdoor photo shoots.

What do I need to set up before fetching sun times for automation?

Before fetching sun times, you need to install the SDK and initialize a SunTimesClient using createSunTimesClient. You can optionally configure a RapidAPI proxy with an API key for the connection.

Does this integration work with smart-home daylight-driven automation?

Yes, this integration works with smart-home daylight-driven automation by providing reliable sunrise, sunset, and twilight schedules. You can use these sun times to trigger devices and stargazing schedules.

What is the best way to validate coordinates when requesting sun times?

The best way to validate coordinates is using the client's built-in validation. The SunTimesClient wrapper automatically validates geographic coordinates and date formats before fetching the requested sun times.

Are there limitations when using a RapidAPI proxy for sun time data?

Using a RapidAPI proxy requires providing a valid API key for configuration. While the client supports this optional proxy setup, accurate sun time retrieval depends on correct latitude, longitude, and date inputs.