Popularity
0.9
Declining
Activity
0.0
Stable
6
1
1

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"

Programming language: Elixir
Tags: Miscellaneous     Weather     Wrapper    

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.

Do you think we are missing an alternative of darksky-elixir or a related project?

Add another 'Miscellaneous' Package

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"})