wunderground v0.0.9 Wunderground.Astronomy
Handles API requests for getting the astronomy of a given place.
Link to this section Summary
Functions
Gets the current astronomy for the given tuple
Link to this section Types
Link to this type
t()
t() :: %Wunderground.Astronomy{ageOfMoon: String.t, current_time: Wunderground.Astronomy.Time.t, hemisphere: String.t, moonrise: Wunderground.Astronomy.Time.t, moonset: Wunderground.Astronomy.Time.t, percentIlluminated: String.t, phaseofMoon: String.t, sunrise: Wunderground.Astronomy.Time.t, sunset: Wunderground.Astronomy.Time.t}
The Wunderground.Astronomy struct.
Example
%Wunderground.Astronomy{
ageOfMoon: "9",
current_time: %Wunderground.Astronomy.Time{hour: "13", minute: "01"},
hemisphere: "North",
moonrise: %Wunderground.Astronomy.Time{hour: "16", minute: "37"},
moonset: %Wunderground.Astronomy.Time{hour: "1", minute: "45"},
percentIlluminated: "70",
phaseofMoon: "Waxing Gibbous",
sunrise: %Wunderground.Astronomy.Time{hour: "7", minute: "16"},
sunset: %Wunderground.Astronomy.Time{hour: "20", minute: "25"}
}
Link to this section Functions
Link to this function
get(query_args)
get(Wunderground.Query.t) :: {:ok, Wunderground.Astronomy.t} | {:error, Wunderground.API.error}
Gets the current astronomy for the given tuple.
Isn’t really intended to be used directly. Use Wunderground.astronomy/1 instead.