darkskyx v1.0.0 Darkskyx.Api View Source

Simple API wrapper for Darksky weather API

Link to this section Summary

Functions

Perform a forecast API call for given latitude longitude

Perform a time machine API call for given latitude, longitude and time

Link to this section Functions

Link to this function

forecast(lat, lng, params \\ defaults())

View Source

Perform a forecast API call for given latitude longitude

Link to this function

read(path_arg, query_params \\ %{})

View Source
Link to this function

time_machine(lat, lng, time, params \\ defaults())

View Source

Perform a time machine API call for given latitude, longitude and time

time

Either be a UNIX time (that is, seconds since midnight GMT on 1 Jan 1970) or a string formatted as follows: [YYYY]-[MM]-[DD]T[HH]:[MM]:[SS][timezone]. timezone should either be omitted (to refer to local time for the location being requested), Z (referring to GMT time), or +[HH][MM] or -[HH][MM] for an offset from GMT in hours and minutes. The timezone is only used for determining the time of the request; the response will always be relative to the local time zone.