# node-red-contrib-moving-average

> A Node-RED node to calculate moving averages.

Latest version **1.3.0** (published 2021-03-15) · WTFPL license · 0 weekly downloads

## Install

```sh
npm install node-red-contrib-moving-average
pnpm add node-red-contrib-moving-average
yarn add node-red-contrib-moving-average
bun add node-red-contrib-moving-average
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2021-03-15 |
| First published | 2020-10-18 |
| Weekly downloads | 0 |
| License | WTFPL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | AmyAmy |
| Maintainers | amy_amy |
| Keywords | node-red |

## Links

- npm: https://www.npmjs.com/package/node-red-contrib-moving-average
- Repository: https://github.com/AmyAmy/node-red-contrib-moving-average
- Homepage: https://github.com/AmyAmy/node-red-contrib-moving-average#readme
- Issues: https://github.com/AmyAmy/node-red-contrib-moving-average/issues
- npm.io page: https://npm.io/package/node-red-contrib-moving-average

## Recent versions

- 1.3.0 (latest) — 2021-03-15
- 1.2.0 — 2020-12-06
- 1.1.1 — 2020-10-23
- 1.1.0 — 2020-10-19
- 1.0.0 — 2020-10-18

## README

# Moving average for Node-RED

A [Node-RED](https://github.com/node-red/node-red) node that calculates
moving averages.

Moving averages are calculated on a per topic basis.

The amount of messages over which the moving average is calculated can be
configured. It handles moving averages over numbers and booleans. Booleans
are converted to 1 and 0.

Additionally you can send some commands to the node to
manipulate it:

- "get": Gets the current moving average whithout adding a new number.
- "pop": Removes the oldest stored number.
- "clear": Removes all stored numbers.
- "count": Counts the number of currently stored numbers.
- "min": Returns the minimum of the currently stored numbers.
- "max": Returns the maximum of the currently stored numbers.

The original payload is returned as payload_in.

## Links

GitHub: https://github.com/AmyAmy/node-red-contrib-moving-average

NPM: https://www.npmjs.com/package/node-red-contrib-moving-average

Node-RED: https://flows.nodered.org/node/node-red-contrib-moving-average

---
_Source: https://npm.io/package/node-red-contrib-moving-average · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
