• Stars
    star
    72
  • Rank 422,985 (Top 9 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 7 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Go package for calculating the sunrise and sunset times for a given location

go-sunrise

Build Status Coverage Status Go Report Card GoDoc MIT License

Go package for calculating the sunrise and sunset times for a given location based on this method.

Usage

To calculate sunrise and sunset times, you will need the following information:

  • the date for which you wish to calculate the times
  • the latitude and longitudinal coordinates of the location

Begin by importing the package:

import "github.com/nathan-osman/go-sunrise"

Next, feed the information into the SunriseSunset() method:

rise, set := sunrise.SunriseSunset(
    43.65, -79.38,          // Toronto, CA
    2000, time.January, 1,  // 2000-01-01
)

The two return values will be the sunrise and sunset times for the location on the given day as time.Time values. If sun does not rise or set, both return values will be time.Time{}.

More Repositories

1

hang

Extremely simple Linux application that hangs until a signal is received.
Assembly
154
star
2

REST-Easy

A simple REST client for Firefox
JavaScript
130
star
3

caddy-docker

Generate Caddy configuration on-the-fly from currently running Docker containers
Go
75
star
4

gimp-webp

Gimp plugin for loading and saving WebP images
C
67
star
5

go-rpigpio

Extremely simple Go package for interacting with the GPIO pins on a Raspberry Pi
Go
62
star
6

Stack-Alert

A set of browser extensions that monitor your inbox on Stack Exchange sites for new items.
JavaScript
49
star
7

chronosnap

Android app for capturing timed photo sequences.
Java
43
star
8

django-archive

Management command for creating compressed archives of Django projects, including database tables and uploaded media.
Python
27
star
9

stack2rss

A simple Flask website that converts a Stack Exchange API resource or path to an RSS feed.
HTML
24
star
10

clicrypt

Quickly encrypt and decrypt files with AES
Go
14
star
11

Webmail-Notifier-Linux-Driver

A Linux device driver for the Dream Cheeky USB Webmail Notifier.
C
9
star
12

Stack-Mobile

A mobile front-end to the Stack Exchange network of sites.
PHP
9
star
13

rust-sunrise

Crate for calculating sunrise / sunset times
Rust
8
star
14

CXX11-CMake-Macros

CMake macros that check for and enable C++11 support in CMake projects
8
star
15

auchatstatus

Display status of Stack Exchange chat users who opt-in
JavaScript
7
star
16

george-the-dev-bot-js

PhantomJS-based bot for the Stack Exchange chat network
JavaScript
7
star
17

rss2producer

Python package to simplify the creation of RSS 2.0 feeds.
Python
6
star
18

Stack-Exchange-Post-Editor

A UserScript for cleaning up Stack Exchange posts according to some simple automatic algorithms.
JavaScript
6
star
19

escapefromlibc

Recovery tool for users who inadvertently delete libc
Go
5
star
20

StackIRC

A small Python application that posts questions from Stack Exchange sites to IRC channels.
Python
5
star
21

django-multi-fk

Automatically update multiple foreign keys in the Django admin
Python
5
star
22

i5

Reverse proxy for web applications running in Docker containers
Go
5
star
23

qredis

Qt bindings for Redis
C++
5
star
24

go-sechat

Go package for interacting with the Stack Exchange chat network
Go
5
star
25

numbles-legacy

Python web application for managing personal finances.
Python
4
star
26

ledcontrol

Python module for controlling LED devices that use the usbled Linux kernel module
Python
4
star
27

pypail

Python package for accessing the Digital Ocean API.
Python
4
star
28

nexus-6-checker

Checks for changes to Nexus 6 inventory on the Play Store.
Python
4
star
29

NitroShare-Mac

Mac OS X project files and source code for building NitroShare.
C++
3
star
30

python-ewp

Python module for PayPal's Encrypted Website Payments
C
3
star
31

heidelberg-reader

Android app for reading the Heidelberg Catechism offline
Java
3
star
32

api2go-resource

CRUD actions for using GORM models with api2go
Go
3
star
33

chat-scraper

A scraper for Stack Exchange chat transcripts
Python
3
star
34

bettergo

Docker container for building Go applications without running as root
Shell
3
star
35

ezlyric

Simple lyric display program for OBS Studio
C++
2
star
36

pratl

Self-contained chat application written in Go
Go
2
star
37

relaycontroller

Go app providing a web-based interface for controlling a relay
Go
2
star
38

george-the-dev-bot

Go application providing a semi-intelligent bot for the Stack Exchange chat network
Go
2
star
39

social-archive-browser

Web application for viewing and analyzing archives from social media websites
Go
2
star
40

entropy-monitor

A PyQt5 application to monitor the amount of entropy available on a Linux system.
Python
2
star
41

AndroX

Tool for cross-compiling popular open-source applications / libraries for Android from Unix.
2
star
42

StackTack-WordPress-Plugin

A WordPress plugin that makes it easy to embed questions from Stack Exchange sites in your blog.
PHP
2
star
43

go-simpleacme

Go package providing a greatly simplified interface for obtaining Let's Encrypt TLS certificates
Go
2
star
44

sechatr

Enhancements for the Stack Exchange chat network
JavaScript
2
star
45

websocket-disabler

Firefox add-on for disabling WebSockets
JavaScript
2
star
46

informas

Centralized Twitter account manager
Go
2
star
47

pongo2-embed-loader

Loader for pongo2 template files using embed from Go 1.16+
Go
2
star
48

ubuntu-touch-examples

Sample Ubuntu Touch applications
CMake
1
star
49

audio-streamer

Qt application for streaming audio to an RTMP endpoint.
C++
1
star
50

Juice-Builder

A Python-based build framework for HTML, JavaScript, and CSS files in a project.
Python
1
star
51

go-aptproxy

A smarter APT-proxy written in Go
Go
1
star
52

Stack-Cartographer

A utility for screen scraping the Stack Exchange API documentation and producing a map.
PHP
1
star
53

django-bootstrap3-templates

Django app providing a set of Bootstrap 3 templates for projects.
Python
1
star
54

vtripod

Camera shake removal with an extremely easy-to-use interface
C++
1
star
55

go-reflectr

Package to simplify working with reflection in Go
Go
1
star
56

mdnsdebug

Incredibly verbose CLI application for debugging mDNS traffic
C++
1
star
57

pongo2-fileb0x

pongo2 loader for templates embedded with fileb0x
Go
1
star
58

my-site-monitor

Simple web application for monitoring a list of websites
Go
1
star
59

go-updater

Self-contained Windows executable that checks for, retrieves, and installs updates from a remote location
Go
1
star
60

cloudanchor

Generate Nginx or Apache configuration files from running Docker containers in realtime
Go
1
star
61

epigeon

Go application that accepts emails via SMTP and tweets their contents
Go
1
star
62

docker-buildbot-slave

Docker container providing BuildBot slaves
Python
1
star
63

go-ezform

Simple form parsing / validation package
Go
1
star
64

daylight.sh

Python source code powering the daylight.sh website.
Python
1
star
65

box-labeler

Simple graphical application for printing high-visibilty labels
C++
1
star
66

Stack-Exchange-Utility-Toolkit

A set of JavaScript utility classes suitable for use in a UserScript.
1
star
67

deleteself

Win32 portable executable that deletes itself
C++
1
star
68

roundcube-spf-status

Roundcube plugin to display status of Received-SPF header in messages
PHP
1
star
69

coalide

Web-based IDE for developing and building console applications
Go
1
star
70

api2go-auth

Handler for authenticating requests to api2go resources
Go
1
star
71

myrig-website

The code powering the http://myrig.quickmediasolutions.com website
Python
1
star
72

StackAd-WordPress-Plugin

A plugin for displaying open-source ads on a WordPress blog.
PHP
1
star
73

pedeconstructor

Viewer for Win32 PE files
C++
1
star
74

wakeit

Ubuntu Touch app for sending Wake-on-LAN magic packets
C++
1
star