# node-red-contrib-overview

Collection of Node-RED nodes to control the Overview smart AI cameras.

## Description

This Node-RED contribution package provides nodes to interact with Overview smart AI cameras, allowing you to control your devices directly into your Node-RED flows.

## Installation

You can install this package through the Node-RED Palette Manager or manually using npm:
```bash
npm install node-red-contrib-overview
```

## Nodes

This package includes the following nodes:

- **change-recipe**: to change the active recipe on the device.
- **check confidence classification**: to verify confidence thresholds for pass/fail classifications.

## License

[MIT License](LICENSE)

## Development

You can manually test and develop your nodes using the provided docker image. Your package will then be available in the instance of Node-RED running at http://127.0.0.1:1880.
```bash
docker run -it -p 1880:1880 -v $(pwd):/node-red-contrib-overview nodered/node-red
```

## Publishing

To publish a new version of this package:

1. Update the version number in `package.json`:
```bash
npm version patch  # for bug fixes
npm version minor  # for new features
npm version major  # for breaking changes
```

2. Publish to npm registry:
```bash
npm publish
```

3. Update Node-RED library:
   - Go to [flows.nodered.org/node/@viun/node-red-contrib-overview](https://flows.nodered.org/node/@viun/node-red-contrib-overview)
   - Log in to your account
   - Click "check for update"

The new version should be available in the Node-RED palette manager within 30 minutes.
