---
title: "node-red-node-openweathermap • FlowFuse Integrations"
description: "FlowFuse builds your first industrial solution with your team, proves it at one plant, then helps you roll it out to every plant, faster each time."
canonical_url: "https://flowfuse.com/integrations/node-red-node-openweathermap/"
meta:
  "og:description": "FlowFuse builds your first industrial solution with your team, proves it at one plant, then helps you roll it out to every plant, faster each time."
  "og:title": "node-red-node-openweathermap • FlowFuse Integrations"
---

> Index of every page on this site: [llms.txt](https://flowfuse.com/llms.txt)

# **node-red-node-openweathermap**

A Node-RED node that gets the weather report from openweathermap

**Version:** 1.0.1**Weekly Downloads:** 4,600**Author:**Ben Perry**Updated:** May 2, 2024

# node-red-node-openweathermap

A [Node-RED](http://nodered.org) node that gets the weather report and forecast from OpenWeatherMap.

## Install

Run the following command in the root directory of your Node-RED install

```
    npm install node-red-node-openweathermap
```

## Usage

Two nodes that get the weather report and forecast from OpenWeatherMap.

**Note:** An API key is required to use these nodes. To obtain an API key go to [OpenWeatherMap](http://openweathermap.org/appid).

### Input Node

Fetches the current weather or 5 day forecast at a location specified by `city and country` or `latitude and longitude` every 10 minutes - and outputs a **msg** if something has changed.

### Query node

Accepts an input to trigger fetching the current weather either from a specified `city and country` or `latitude and longitude` or passed in on

```
msg.location.city and msg.location.country
    or
msg.location.lat and msg.location.lon
```

### Results

Current conditions will return

- **description** - a brief verbal description of the current weather for human reading.
- **weather** - a very short description of the current weather.
- **icon** - the weather icon code for the current conditions.
- **id** - the id given to the current weather by OpenWeatherMap
- **tempc** - the current ground temperature at that location in Celsius.
- **tempk** - the current ground temperature at that location in Kelvin.
- **humidity** - the current relative humidity at the location in percent.
- **windspeed** - the current wind speed at the location in metres per second.
- **winddirection** - the current wind direction at the location in meteorological degrees.
- **location** - the name of the location from which the data was sourced.
- **rain** - the precipitation amount in mm/h (only present if it is raining).

5 day Forecast will return a 5 part array, each with

- **dt** - epoch timestamp
- **pressure** - in hPa
- **humidity** - in %
- **speed** - wind speed in metres per second
- **deg** - wind direction in degrees
- **clouds** - cloudiness in %
- **temp** - an object with various temperatures in degC,
  - day, min, max, night, eve, morn
- **weather** - an object with some misc. data,
  - description, icon, main, id

The node also sets the following properties of **msg.location**.

- **lat** - the latitude of the location from which the data was sourced.
- **lon** - the longitude of the location from which the data was sourced.
- **city** - the city from which the data was sourced.
- **country** - the country from which the data was sourced.

Finally, the node sets:

- **msg.time** - the time at which the weather data was received by OpenWeatherMap.
- **msg.data** - the full JSON returned by the API. This is VERY rich...

Weather data provided by [OpenWeatherMap.org/](http://openweathermap.org/)

## **Installation **

Install in Node-RED via the [**palette manager**](https://flowfuse.com/docs/node-red/getting-started/library/#using-the-palette-manager).

![Node-RED Palette Manager dialog with the node selected and the Install button visible.](https://flowfuse.com/images/integrations/palette-manager-install.png)

## **Quick Stats**

Current Version**1.0.1**

Weekly Downloads**4,600**

First Published**Apr 9, 2015**

Last Updated**May 2, 2024**

## **GitHub Stats**

[Open Issues ![GitHub Issues](https://img.shields.io/github/issues/node-red/node-red-web-nodes#master.svg?style=flat-square)](https://github.com/node-red/node-red-web-nodes#master/issues) [ Stars ![GitHub Stars](https://img.shields.io/github/stars/node-red/node-red-web-nodes#master.svg?style=flat-square)](https://github.com/node-red/node-red-web-nodes#master/stargazers) [ Forks ![GitHub Forks](https://img.shields.io/github/forks/node-red/node-red-web-nodes#master.svg?style=flat-square)](https://github.com/node-red/node-red-web-nodes#master/network/members)

## **External Resources**

[View on NPM](https://www.npmjs.com/package/node-red-node-openweathermap) [ View Repository](https://github.com/node-red/node-red-web-nodes#master)

## **Need Help?**

Get professional support for your Node-RED projects with FlowFuse.

[**Contact Us**](https://flowfuse.com/contact-us/)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://flowfuse.com/#website","@type":"WebSite","description":"FlowFuse builds your first industrial solution with your team, proves it at one plant, then helps you roll it out to every plant, faster each time.","inLanguage":"en","name":"FlowFuse","url":"https://flowfuse.com/","alternateName":["FlowForge","Flow Fuse"],"publisher":{"@id":"https://flowfuse.com/#identity"}},{"@id":"https://flowfuse.com/integrations/node-red-node-openweathermap/#webpage","@type":"WebPage","description":"FlowFuse builds your first industrial solution with your team, proves it at one plant, then helps you roll it out to every plant, faster each time.","name":"node-red-node-openweathermap","url":"https://flowfuse.com/integrations/node-red-node-openweathermap/","isPartOf":{"@id":"https://flowfuse.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://flowfuse.com/integrations/node-red-node-openweathermap/"]}],"primaryImageOfPage":{"@id":"https://flowfuse.com/#logo"}},{"@id":"https://flowfuse.com/#identity","@type":"Organization","legalName":"FlowFuse Inc.","name":"FlowFuse","url":"https://flowfuse.com","alternateName":["FlowForge","Flow Fuse"],"logo":{"@id":"https://flowfuse.com/#logo"},"sameAs":["https://twitter.com/FlowFuseinc","https://github.com/FlowFuse","https://www.linkedin.com/company/flowfuse/","https://www.facebook.com/FlowFuse/","https://www.youtube.com/channel/UCbBzP8NZbv3WDtlt4UouA-g"]},{"@id":"https://flowfuse.com/#logo","@type":"ImageObject","caption":"FlowFuse","contentUrl":"https://flowfuse.com/handbook/images/logos/ff-logo--square--dark.png","inLanguage":"en","url":"https://flowfuse.com/handbook/images/logos/ff-logo--square--dark.png"}]}
```

## Sitemap

See the full [sitemap](https://flowfuse.com/sitemap.md) for all pages.
