{"id":20900891,"url":"https://github.com/vhyza/solarex","last_synced_at":"2025-05-13T02:30:30.212Z","repository":{"id":57550436,"uuid":"179535284","full_name":"vhyza/solarex","owner":"vhyza","description":"Elixir package for calculating moon phase, sunrise and sunset for particular date and place on the Earth.","archived":false,"fork":false,"pushed_at":"2019-05-11T15:18:40.000Z","size":18,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-22T19:11:32.469Z","etag":null,"topics":["elixir","moon-phase","sunrise","sunrise-sunset","sunset"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vhyza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-04T16:26:03.000Z","updated_at":"2022-08-29T08:36:12.000Z","dependencies_parsed_at":"2022-09-10T06:11:00.594Z","dependency_job_id":null,"html_url":"https://github.com/vhyza/solarex","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vhyza%2Fsolarex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vhyza%2Fsolarex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vhyza%2Fsolarex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vhyza%2Fsolarex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vhyza","download_url":"https://codeload.github.com/vhyza/solarex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253859339,"owners_count":21975082,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elixir","moon-phase","sunrise","sunrise-sunset","sunset"],"created_at":"2024-11-18T11:23:55.031Z","updated_at":"2025-05-13T02:30:29.982Z","avatar_url":"https://github.com/vhyza.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n\nWith Solarex Elixir package, you can calculate moon phase, sunrise and sunset for particular date and place on the Earth.\n\n## Installation\n\nThe package can be installed by adding `solarex` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:solarex, \"~\u003e 0.1.1\"}\n  ]\nend\n```\n\n## Modules\n\n### Moon\n\n`Solarex.Moon` module is for calculating [moon phase](https://en.wikipedia.org/wiki/Lunar_phase#Calculating_phase) using naive approach by calculating the days from the known new moon.\n\nYou can specify known new moon using `config.exs`\n\n```elixir\nuse Mix.Config\n\n# Set the date to known new moon\n#\nconfig :solarex, known_new_moon: \"2019-01-06\"\n```\n\n### Sun\n\n`Solarex.Sun` is Elixir implementation of Mike Bostock's [Solar Calculator](https://github.com/mbostock/solar-calculator). It can be used for calculating sunrise and sunset for particular date and place on earth (specified by latitude and longitude)\n\n## Documentation\n\nGenerated documentation can be found at [Hexdocs](https://hexdocs.pm/solarex).\n\n## License\n\nThis software is licensed under the [MIT license](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvhyza%2Fsolarex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvhyza%2Fsolarex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvhyza%2Fsolarex/lists"}