> ## Documentation Index
> Fetch the complete documentation index at: https://domoinc-openapi-sync-dataflows.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenWeatherMap Connector

## Intro

OpenWeatherMap is an online service that provides weather data, including current weather data, forecasts, and historical data to the developers of web services and mobile applications. To learn more about the OpenWeatherMap API, visit their page ([https://openweathermap.org/api](https://openweathermap.org/api "https://openweathermap.org/api") ).

You connect to your OpenWeatherMap account in the Data Center. This topic discusses the fields and menus that are specific to the OpenWeatherMap connector user interface. General information for adding DataSets, setting update schedules, and editing DataSet information is discussed in [Adding a DataSet Using a Data Connector](/s/article/360042926274 "Adding a DataSet Using a Data Connector").

<table class="mt-responsive-table" data-aura-rendered-by="33:195;a"><tbody><tr><td class="mt-noheading" colspan="1" rowspan="1"><p><b> Primary Use Cases </b></p></td><td class="mt-noheading" colspan="1" rowspan="1"><p> Common use cases are for... </p><ul><li> Retailers that need to see how weather impacts sales, and </li><li> Logistics companies that need to understand forecasts and historical weather. </li></ul><p> Basically this connector is great for any organization that relies on weather trends for attendance, product delivery, or outdoor work. </p></td></tr><tr><td class="mt-noheading" colspan="1" rowspan="1"><p><b> Primary Metrics </b></p></td><td class="mt-noheading" colspan="1" rowspan="1"><ul><li><p> Temperature and precipitation forecasts </p></li><li><p> Historical weather patterns </p></li><li><p> Likelihood of weather events occurring </p></li><li><p> Possibility of extreme events. </p></li></ul></td></tr><tr><td class="mt-noheading" colspan="1" rowspan="1"><p><b> Primary Company Roles </b></p></td><td class="mt-noheading" colspan="1" rowspan="1"><ul><li><p> Facilities </p></li><li><p> Event planning </p></li><li><p> Operations manager </p></li><li><p> Program manager </p></li><li><p> Sales teams </p></li></ul></td></tr><tr><td class="mt-noheading" colspan="1" rowspan="1"><p><b> Average Implementation Time </b></p></td><td class="mt-noheading" colspan="1" rowspan="1"><p> Less than 1 hour </p></td></tr><tr><td class="mt-noheading" colspan="1" rowspan="1"><p><b> Ease of Use (on a 1-to-10 scale with 1 being easiest) </b></p></td><td class="mt-noheading" colspan="1" rowspan="1"><p> 3 </p></td></tr></tbody></table>

## Prerequisites

To connect to your OpenWeatherMap account and create a DataSet, you must have an OpenWeatherMap API key. You can obtain an API key by doing the following:

1. Log into your OpenWeatherMap account.
2. Click the **API Keys** tab.
3. Copy and paste the default API key into Domo OR use the **Create Key** option to generate a new key.

## Connecting to Your OpenWeatherMap Account

This section enumerates the options in the **Credentials** and **Details** panes in the OpenWeatherMap Connector page. The components of the other panes in this page, **Scheduling** and **Name & Describe Your DataSet**, are universal across most connector types and are discussed in greater length in [Adding a DataSet Using a Data Connector](/s/article/360042926274 "Adding a DataSet Using a Data Connector").

### Credentials Pane

This pane contains fields for entering credentials to connect to your OpenWeatherMap account. The following table describes what is needed for each field:

<table border="1" cellpadding="1" cellspacing="1" data-aura-rendered-by="33:195;a"><thead><tr><th colspan="1" rowspan="1"><p><span class="s1"> Field </span></p></th><th colspan="1" rowspan="1"><p><span class="s1"> Description </span></p></th></tr></thead><tbody><tr><td colspan="1" rowspan="1"> API Key </td><td colspan="1" rowspan="1"> Enter your OpenWeatherMap API key. For information about obtaining a key, see "Prerequisites," above. </td></tr></tbody></table>

Once you have entered valid OpenWeatherMap credentials, you can use the same account any time you go to create a new OpenWeatherMap DataSet. You can manage connector accounts in the **Accounts** tab in the Data Center. For more information about this tab, see [Managing User Accounts for Connectors](/s/article/360042926054 "Managing User Accounts for Connectors").

### Details Pane

This pane contains a primary **Reports** menu, along with various other menus which may or may not appear depending on the report type you select.

<table border="1" cellpadding="1" cellspacing="1" data-aura-rendered-by="33:195;a"><thead><tr><th colspan="1" rowspan="1"><p> Menu </p></th><th colspan="1" rowspan="1"><p> Description </p></th></tr></thead><tbody><tr><td colspan="1" rowspan="1"><p> Report </p></td><td colspan="1" rowspan="1"><p> Select the OpenWeatherMap report you want to run. The following reports are available: </p><table border="1" cellpadding="1" cellspacing="1"><tbody><tr><td colspan="1" rowspan="1"> Current Weather Data </td><td colspan="1" rowspan="1"> Returns current weather data for one location, based on city ID, city name, geographic coordinates (latitude and longitude), or ZIP code. </td></tr><tr><td colspan="1" rowspan="1"> Current Weather Data for Multiple Cities </td><td colspan="1" rowspan="1"> Returns current weather data for several city IDs. </td></tr><tr><td colspan="1" rowspan="1"> Five-Day Three-Hour Forecast </td><td colspan="1" rowspan="1"> Returns a weather forecast for the next five days, at three hour intervals, for one location identified by city ID, city name, or geographic coordinates (latitude and longitude). </td></tr><tr><td colspan="1" rowspan="1"> Historical Data </td><td colspan="1" rowspan="1"> Returns historical weather data for one location identified by city ID, city name, or geographic coordinates (latitude and longitude). Requires a separate paid plan; for more information see <a href="https://openweathermap.org/price#history" target="_blank"> OpenWeatherMap Subscription Pricing </a>. </td></tr><tr><td colspan="1" rowspan="1"> Sixteen Day Daily Forecast </td><td colspan="1" rowspan="1"> Returns a 16-day weather forecast with daily average parameters for one location identified by city ID, city name, or geographic coordinates (latitude and longitude). </td></tr><tr><td colspan="1" rowspan="1"> Current Weather by Weather Station </td><td colspan="1" rowspan="1"> Returns current weather from one or several weather stations. </td></tr></tbody></table></td></tr><tr><td colspan="1" rowspan="1"> Choose Location By </td><td colspan="1" rowspan="1"> Select whether you want the location for your report to be based on city ID, city name, latitude and longitude, or zip code. For the most accurate results, choose <b> City ID </b>. </td></tr><tr><td colspan="1" rowspan="1"> City ID </td><td colspan="1" rowspan="1"> Enter the City ID. A list of City IDs can be downloaded from <a href="http://bulk.openweathermap.org/sample/" target="_blank"> OpenWeatherMap </a>. </td></tr><tr><td colspan="1" rowspan="1"> City Name </td><td colspan="1" rowspan="1"> Enter the name of the city you want to retrieve data for. </td></tr><tr><td colspan="1" rowspan="1"> Latitude </td><td colspan="1" rowspan="1"> Enter the latitude of the region you want to retrieve data for. This can be a positive or negative number with up to 6 decimal places. Degree-minutes-seconds form is not accepted. </td></tr><tr><td colspan="1" rowspan="1"> Longitude </td><td colspan="1" rowspan="1"> Enter the longitude of the region you want to retrieve data for. This can be a positive or negative number with up to 6 decimal places. Degree-minutes-seconds form is not accepted. </td></tr><tr><td colspan="1" rowspan="1"> Zip Code </td><td colspan="1" rowspan="1"> Enter the ZIP code of the area you want to retrieve data for. </td></tr><tr><td colspan="1" rowspan="1"> Units </td><td colspan="1" rowspan="1"> Select whether to return temperature data in Kelvin, Celsius, or Fahrenheit units. </td></tr><tr><td colspan="1" rowspan="1"> Search Accuracy </td><td colspan="1" rowspan="1"><p> Select whether to return the one closest match (<b> Accuracy </b> ) or all similar values (<b> Like </b> ). </p><p> For example, if this was set to <b> Accurate </b> and you searched for a city named "Cedar," your report would return data for "Cedar Rapids" (since this is the city determined by the server to be the best match). But if this parameter was set to <b> Like </b>, you would get results for "Cedar City," "Cedar Hills," as well as cities named "Cedar." </p></td></tr><tr><td colspan="1" rowspan="1"> Multiple City IDs </td><td colspan="1" rowspan="1"><p> Enter a comma-separated list of City IDs. For example: <span class="mt-font-courier-new"> 524901,703448,2643743 </span></p><p> A list of City IDs can be downloaded from <a href="http://bulk.openweathermap.org/sample/" target="_blank"> OpenWeatherMap </a>. </p></td></tr><tr><td colspan="1" rowspan="1"> Start Date </td><td colspan="1" rowspan="1"> Select the start date for the range of data you want to pull. </td></tr><tr><td colspan="1" rowspan="1"> End Date </td><td colspan="1" rowspan="1"> Select the end date for the range of data you want to pull. </td></tr><tr><td colspan="1" rowspan="1"> Choose Station By </td><td colspan="1" rowspan="1"> Select whether to pull station data for a station ID, a geographic point (based on latitude and longitude), or a rectangular zone. </td></tr><tr><td colspan="1" rowspan="1"> Station ID </td><td colspan="1" rowspan="1"> Enter the ID of the station you want to retrieve data for. You can find station IDs by searching for weather stations using geographic coordinates and noting the IDs in the returned data. </td></tr><tr><td colspan="1" rowspan="1"> Count </td><td colspan="1" rowspan="1"> Enter the expected number of weather stations. </td></tr><tr><td colspan="1" rowspan="1"> Bounding Box </td><td colspan="1" rowspan="1"><p> Enter the coordinates for the rectangular zone you want to retrieve data for. The format for this is: <span class="mt-font-courier-new"> \[longitude of top left point],\[latitude of top left point],\[longitude of bottom right point],\[latitude of bottom right point],\[map zoom level] </span>. </p><p> For example: <span class="mt-font-courier-new"> 8.87,49.07,65.21,61.26,6 </span></p></td></tr><tr><td colspan="1" rowspan="1"> Cluster </td><td colspan="1" rowspan="1"> Select whether to use server clustering of points. </td></tr></tbody></table>

### Other Panes

For information about the remaining sections of the connector interface, including how to configure scheduling, retry, and update options, see [Adding a DataSet Using a Data Connector](/s/article/360042926274 "Adding a DataSet Using a Data Connector").

## Troubleshooting

* Double-check the spelling on the city name.
* If using city IDs, make sure the IDs are correct.
* Ensure the free API key is valid.
* If data limits or speed becomes an issue, consider upgrading to a paid plan.
