All Projects → flosse → rust-sun

flosse / rust-sun

Licence: other
A Rust library for calculating sun positions

Programming Languages

rust
11053 projects
Nix
1067 projects

Projects that are alternatives of or similar to rust-sun

suncalc-py
A Python port of suncalc.js for calculating sun position and sunlight phases
Stars: ✭ 31 (+0%)
Mutual labels:  sunrise, sunset, sun
astro
自用天文算法,公历农历转换、八大行星位置、日出日落月出月落时间、节气物候时间等
Stars: ✭ 33 (+6.45%)
Mutual labels:  sunrise, sunset, sun
Sunscreen
🌅 A macOS app that sets your wallpaper based on sunrise and sunset.
Stars: ✭ 52 (+67.74%)
Mutual labels:  sunrise, sunset
sun
Get information on the position of the sun
Stars: ✭ 64 (+106.45%)
Mutual labels:  geo, sun
go-sunrise
Go package for calculating the sunrise and sunset times for a given location
Stars: ✭ 42 (+35.48%)
Mutual labels:  sunrise, sunset
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 (+16.13%)
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 (-29.03%)
Mutual labels:  sunrise, sunset
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 (+58.06%)
Mutual labels:  sunrise, sunset
astral
☀️ Go calculations for the position of the sun and moon.
Stars: ✭ 23 (-25.81%)
Mutual labels:  sunrise, sunset
sunrisesunset
🌅 Go package that provides the sunrise and sunset equation
Stars: ✭ 75 (+141.94%)
Mutual labels:  sunrise, sunset
sun
Simple library and application that shows sunset and sunrise based on your latitude,longitude
Stars: ✭ 23 (-25.81%)
Mutual labels:  sunrise, sunset
GMT.jl
Generic Mapping Tools Library Wrapper for Julia
Stars: ✭ 148 (+377.42%)
Mutual labels:  geo
rgis
Performant, cross-platform (web, desktop) GIS app written in Rust
Stars: ✭ 79 (+154.84%)
Mutual labels:  geo
geostat
GeoStat, Python script for parsing Nginx and Apache logs files and getting GEO data from incoming IP's.
Stars: ✭ 50 (+61.29%)
Mutual labels:  geo
cordova-plugin-amap
Amap Maps plugin for Cordova
Stars: ✭ 51 (+64.52%)
Mutual labels:  geo
geocodage-spd
Scripts de géocodage et remise en forme des bases du Service Public de la Donnéee
Stars: ✭ 64 (+106.45%)
Mutual labels:  geo
Atlas
🌎 Atlas is a set of APIs for looking up information about locations
Stars: ✭ 21 (-32.26%)
Mutual labels:  geo
CityEngine-Twitter
Visualise Twitter activity using a procedurally-generated 3D city model
Stars: ✭ 68 (+119.35%)
Mutual labels:  geo
addressr
Free Australian Address Validation, Search and Autocomplete
Stars: ✭ 46 (+48.39%)
Mutual labels:  geo
turf-go
A Go language port of Turf.js
Stars: ✭ 41 (+32.26%)
Mutual labels:  geo

sun

A rust port of the JS library suncalc.

Build Status Build status

Install

Add the following to your Cargo.toml

[dependencies]
sun = "0.2"

Usage

pub fn main() {
  let unixtime = 1362441600000;
  let lat = 48.0;
  let lon = 9.0;
  let pos = sun::pos(unixtime,lat,lon);
  let az  = pos.azimuth.to_degrees();
  let alt = pos.altitude.to_degrees();
  println!("The position of the sun is {}/{}", az, alt);
}
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].