<commit_before># node-red-contrib-eddystone

![sample](img/eddystonenode.png)

Create an [Eddystone](https://github.com/google/eddystone) Beacon using [Node-RED](http://nodered.org/). [Eddystone-URL](https://github.com/google/eddystone/tree/master/eddystone-url) beacons can be used with the [Physical Web](http://google.github.io/physical-web/). Add this node to your Node-RED environment for easy prototyping for the Physical Web.

## Prerequisites

**node-red-contrib-eddystone** is based on the awesome [node-eddystone-beacon](https://github.com/don/node-eddystone-beacon). However, node-eddystone-beacon has the same [prerequesits](https://github.com/don/node-eddystone-beacon#prerequisites) you might want to check. For instance, you might need to run Node-RED with root permissions for accessing the Bluetooth interface depending on your setup.

## Example
This flow allows to control a Eddystone URL beacon for setting the URL, starting and stopping broadcasting, setting temperature, and setting power. All parameters can be set by sending messages to the EddystoneURL node.

![sample](img/sample.png)<commit_msg>added installation howto<commit_after># node-red-contrib-eddystone

![sample](img/eddystonenode.png)

Create an [Eddystone](https://github.com/google/eddystone) Beacon using [Node-RED](http://nodered.org/). [Eddystone-URL](https://github.com/google/eddystone/tree/master/eddystone-url) beacons can be used with the [Physical Web](http://google.github.io/physical-web/). Add this node to your Node-RED environment for easy prototyping for the Physical Web.

## Installation

First install Node RED, if not done yet, and add node-red-contrib-eddystone:

```
npm install node-red -g
npm install node-red-contrib-eddystone -g
```

## Prerequisites

**node-red-contrib-eddystone** is based on the awesome [node-eddystone-beacon](https://github.com/don/node-eddystone-beacon). However, node-eddystone-beacon has the same [prerequesits](https://github.com/don/node-eddystone-beacon#prerequisites) you might want to check. For instance, you might need to run Node-RED with root permissions for accessing the Bluetooth interface depending on your setup.

We recommend to use a Raspberry Pi with a Bluetooth 4.0 compatible USB dongle.

## Example
This flow allows to control a Eddystone URL beacon for setting the URL, starting and stopping broadcasting, setting temperature, and setting power. All parameters can be set by sending messages to the EddystoneURL node.

![sample](img/sample.png)
{'fraction_non_alphanumeric': 0.10698602794411177, 'fraction_numerical': 0.0007984031936127744, 'mean_word_length': 5.067796610169491, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1387959', 'n_tokens_mistral': 780, 'n_tokens_neox': 730, 'n_words': 249}