Open  Weather
App-Id
Zipcode
Open  Weather  Map
owm-invoke-json
owm-invoke-json
8.12

OpenWeather🔗ℹ

Raymond Racine <ray.racine@gmail.com>

 (require openweather) package: openweather

Type

App-Id : "String"

(define-new-subtype App-Id (app-id String))

The App Identifier assigned by OpenWeatherMap when you sign up for an account.

Type

Zipcode : "String"

(define-new-subtype Zipcode (zipcode String))

US Zipcode value for the requested weather information.

struct

(struct OpenWeatherMap (datetime
    city
    clouds
    visibility
    humidity
    pressure
    temp
    temp-min
    temp-max
    sunrise
    sunset)
    #:transparent)
  datetime : Exact-Nonnegative-Integer
  city : String
  clouds : Exact-Nonnegative-Integer
  visibility : Exact-Nonnegative-Integer
  humidity : Exact-Nonnegative-Integer
  pressure : Exact-Nonnegative-Integer
  temp : Exact-Nonnegative-Integer
  temp-min : Exact-Nonnegative-Integer
  temp-max : Exact-Nonnegative-Integer
  sunrise : Exact-Nonnegative-Integer
  sunset : Exact-Nonnegative-Integer
Data structure for the weather values parsed from the API’s returned Json. Temperature units are converted to Fahrenheit from API’s Kelvin. All other values are as stated in OpenWeatherMap’s API documentation.

procedure

(owm-invoke-json aid zip)  (Option JsObject)

  aid : App-Id
  zip : Zipcode
Performs an HTTP call to the OpenWeatherMap free API for the given zipcode in the US. Returns the Json response parsed into a JsObject as in OpenWeatherMap’s API documentation.

procedure

(owm-invoke-json aid zip)  (Option JsObject)

  aid : App-Id
  zip : Zipcode
Performs an HTTP call to the OpenWeatherMap free API for the given zipcode in the US. OpenWeatherMap’s Json response is parsed into OpenWeatherMap struct.