wunderground v0.0.9 Wunderground.Query
A collections of types for handling queries to the Weather Underground API.
List of possible queries
πΊπΈ Cities in the U.S.
# using state and city
{:us, "CA", "San_Francisco"}
# or via zipcode
{:us_zip, 60290}
π Cities outside the U.S.
# by country and city
{:international, "Australia", "Sydney"}
π Coordinates
# by latidute and longitude
{:geo, 37.8, -122.4}
βοΈ Airports
# by International Civil Aviation Organization airport code
# see https://en.wikipedia.org/wiki/International_Civil_Aviation_Organization_airport_code
{:airport, "KJFK"}
π‘ Specific personal weather station
# by it's ID
{:pws, "KCASANFR70"}
π GeoIP location
# of the running machine using
{:auto_ip}
# or of a specific IP address
{:auto_ip, {185, 1, 74, 1}}
Link to this section Summary
Types
Shortcode of an airport. See International Civil Aviation Organization airport code
City name as a String, where spaces should be replaced by a _
Country as a String
An IPv4 address as a tuple of 4 integers
Latitude as a float
Longitude as a float
An ID of a personal weather station as a string
US state shortform
The different possible Query tuples
US zipcode as an Integer
Functions
Builds a query string for the given Query tuple
Link to this section Types
Shortcode of an airport. See International Civil Aviation Organization airport code.
Example
airport_code = "KJFK" # for the John F. Kennedy International Airport
ipv4_address() :: {non_neg_integer, non_neg_integer, non_neg_integer, non_neg_integer}
An IPv4 address as a tuple of 4 integers.
Example
ipv4_address = {10, 0, 0, 23} # for 10.0.0.23
The different possible Query tuples.
Link to this section Functions
Builds a query string for the given Query tuple.
Isnβt really intended to be used directly. Use Wunderground.forecast/1 instead.