All Projects → sj14 → astral

sj14 / astral

Licence: Apache-2.0 License
☀️ Go calculations for the position of the sun and moon.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to astral

KosherCocoa
My Objective-C port of KosherJava. KosherCocoa enables you to perform sunrise-based and sunset-based calculations for Jewish prayer and calendar.
Stars: ✭ 49 (+113.04%)
Mutual labels:  sunrise, sunset
go-sunrise
Go package for calculating the sunrise and sunset times for a given location
Stars: ✭ 42 (+82.61%)
Mutual labels:  sunrise, sunset
astro
自用天文算法,公历农历转换、八大行星位置、日出日落月出月落时间、节气物候时间等
Stars: ✭ 33 (+43.48%)
Mutual labels:  sunrise, sunset
sunrisesunset
🌅 Go package that provides the sunrise and sunset equation
Stars: ✭ 75 (+226.09%)
Mutual labels:  sunrise, sunset
Sunscreen
🌅 A macOS app that sets your wallpaper based on sunrise and sunset.
Stars: ✭ 52 (+126.09%)
Mutual labels:  sunrise, sunset
EKAstrologyCalc
Astrology Calculator calculates moon's rise/set times, moon Age, moon phases and Zodiac Sign for location and time
Stars: ✭ 31 (+34.78%)
Mutual labels:  moon, moon-phase
Solar-Calculator
Calculates the sunrise and sunset for a given date and location (using GEO coordinates). This library uses the method outlined NOAA Solar Calculations Day spreadsheet found at http://www.esrl.noaa.gov/gmd/grad/solcalc/calcdetails.html.
Stars: ✭ 36 (+56.52%)
Mutual labels:  sunrise, sunset
suncalc-py
A Python port of suncalc.js for calculating sun position and sunlight phases
Stars: ✭ 31 (+34.78%)
Mutual labels:  sunrise, sunset
Daylight-Calendar-ICS
Daylight Calendar is a dynamically generated .ics calendar that you can host and subscribe to in Google Calendar, iCal, or other calendar software.
Stars: ✭ 22 (-4.35%)
Mutual labels:  sunrise, sunset
sun
Simple library and application that shows sunset and sunrise based on your latitude,longitude
Stars: ✭ 23 (+0%)
Mutual labels:  sunrise, sunset
rust-sun
A Rust library for calculating sun positions
Stars: ✭ 31 (+34.78%)
Mutual labels:  sunrise, sunset
selenoid-container-tests
An automated Java test suite to check browser images quality
Stars: ✭ 12 (-47.83%)
Mutual labels:  moon
dusker
Stand alone Laravel Dusk test suit, which do not require Laravel framework itself
Stars: ✭ 28 (+21.74%)
Mutual labels:  dusk
moon-cli
✨ Easily scaffold a Moon project
Stars: ✭ 27 (+17.39%)
Mutual labels:  moon
lunar-theme
🌓 A minimal dark and light theme for Visual Studio Code. Handpicked colours, easy on the eyes, and perfect for coding in the day/night.
Stars: ✭ 24 (+4.35%)
Mutual labels:  midnight
hodlmoon
A command line tool for crytocurrency data. When moon?
Stars: ✭ 25 (+8.7%)
Mutual labels:  moon
Moonwards-Virtual-Moon
Development continues on Unreal, in the MoonwardsUE repository
Stars: ✭ 97 (+321.74%)
Mutual labels:  moon
dusk-demo
Laravel Dusk Demo
Stars: ✭ 26 (+13.04%)
Mutual labels:  dusk
kirby3-suncyclepages
kirby3 plugin to embargo pages until sunrise date and withdraw at sunset date
Stars: ✭ 17 (-26.09%)
Mutual labels:  sunset
menu-circular
Menu circular desarrollado con C# en Unity3D
Stars: ✭ 18 (-21.74%)
Mutual labels:  moon

Astral

Action Go Report Card GoDoc

Calculations for the position of the sun and moon.

This is a Go port of the Python astral package.

The astral package provides the means to calculate the following times of the sun:

  • dawn
  • sunrise
  • noon
  • midnight
  • sunset
  • dusk
  • daylight
  • night
  • twilight
  • blue hour
  • golden hour
  • rahukaalam TODO

plus solar azimuth and elevation at a specific latitude/longitude. It can also calculate the moon phase for a specific date.

CLI

Besides the package for usage in you own programs, we also provide a tool for showing the data.

screenshot

Installation

Homebrew

brew install sj14/tap/astral

Manually

go get -u github.com/sj14/astral/cmd/astral

Usage

Usage of astral:
  -elev float
        elevation of the observer
  -lat float
        latitude of the observer
  -long float
        longitude of the observer
  -time string
        day/time used for the calculation (defaults to current time)

Example

$ astral -lat 51.58 -long 6.52
Date/Time	Fri Apr 30 21:12:11 CEST 2021
Latitude	51.58
Longitude	6.52
Elevation	0

Daylight	14h48m11s
Night-Time	9h9m55s
Moon Phase	Full Moon (17.611222222222224)

Apr 30 03:39 (-17:32)   Dawn (Astronomical)
Apr 30 04:39 (-16:32)   Dawn (Nautical)
Apr 30 05:28 (-15:43)   Dawn (Civil)         Twilight Start    Blue Hour Start
Apr 30 05:43 (-15:28)   Golden Hour Start                      Blue Hour End
Apr 30 06:07 (-15:04)   Sunrise              Twilight End
Apr 30 06:53 (-14:18)   Golden Hour End
Apr 30 13:31 (-07:41)   Noon
Apr 30 20:09 (-01:02)   Golden Hour Start
Apr 30 20:55 (-00:16)   Sunset               Twilight Start
┈┈┈┈┈┈ 21:12 ┈┈┈┈┈┈┈┈   ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
Apr 30 21:19 (+00:07)   Golden Hour End                        Blue Hour Start
Apr 30 21:34 (+00:22)   Dusk (Civil)         Twilight End      Blue Hour End
Apr 30 22:24 (+01:12)   Dusk (Nautical)
Apr 30 23:25 (+02:13)   Dusk (Astronomical)
May  1 01:31 (+04:18)   Midnight
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].