Get the Current Temperature

This operation fetches the current temperature for a specified city using the OpenWeather API.

This procedure is part of the OpenWeather Book (BDK). To use this book, you must first learn it in your agent.

Input Concepts

Concept
Description
Type
Required
Default Value

city

The name of the city. Please refer to ISO 3166 for the state codes or country codes.

noun

Yes

N/A

unit

The unit of measurement. standard, metric and imperial units are available. The default is standard.

noun

No

standard

Output Concepts

Concept
Description
Type

current temperature

The current temperature in the specified units of measurement, or None if an error occurs.

number

Examples

  1. Retrieve the current temperature at London

get the current temperature at London
  1. Retrieve the current temperature at London in Celsius

get the current temperature at Buenos Aires with
    the unit is metric

Last updated

Was this helpful?