Description
"The Dark Sky API allows you to look up the weather anywhere on the globe, returning (where available):
Current conditions Minute-by-minute forecasts out to one hour Hour-by-hour and day-by-day forecasts out to seven days Hour-by-hour and day-by-day observations going back decades"
darksky-elixir alternatives and similar packages
Based on the "Miscellaneous" category.
Alternatively, view darksky-elixir alternatives based on common mentions on social networks and blogs.
-
ex_rated
ExRated, the Elixir OTP GenServer with the naughty name that allows you to rate-limit calls to any service that requires it. -
gen_task
Generic Task behavior that helps encapsulate errors and recover from them in classic GenStage workers. -
countriex
All sorts of useful information about every country. A pure elixir port of the ruby Countries gem
CodeRabbit: AI Code Reviews for Developers
Do you think we are missing an alternative of darksky-elixir or a related project?
README
darksky-elixir
Dark Sky API wrapper in Elixir
Quoting Dark Sky API documentation:
The Dark Sky API allows you to look up the weather anywhere on the globe, returning (where available):
Current conditions Minute-by-minute forecasts out to one hour Hour-by-hour and day-by-day forecasts out to seven days Hour-by-hour and day-by-day observations going back decades`
There are two functions available:
- forecast/4
- timemachine/5
They need the API key, latitude, longitude, and time only for timemachine function.
Both have optional parameters, you have to put them in a map, for example:
forecast("YOUR-API-KEY", 12,1234, -5,4321, %{lang: "es", units: "si"})
You can check the full list of options here:
Both functions returns a nested map, you can see samples of the output in the file output_examples.md.
Examples
Darksky.forecast("YOUR-API-KEY", 43.545, -5.6626, %{lang: "es", units: "si"})
Darksky.timemachine("YOUR-API-KEY", 43.545, -5.6626, 1475430147, %{units: "si", lang: "es"})