<commit_before>EspruinoHub
===========

A BLE -> MQTT bridge for Raspberry Pi and other Embedded devices


Setting up
----------

Assuming a blank Pi:

```
# Get node, npm, node-red, etc
sudo apt-get install npm mosquitto mosquitto-clients nodered bluetooth bluez libbluetooth-dev libudev-dev
# Install node-red service
sudo systemctl enable nodered.service
# Start nodered manually this one time (this creates ~/.node-red)
sudo systemctl start nodered.service
# Install the node-red UI
cd ~/.node-red && npm install node-red-contrib-ui

# As it comes, NPM on the Pi is broken
# and doesn't like installing native libs. Update NPM
sudo npm -g install npm node-gyp

# Now get this repository
cd ~/<commit_msg>Use nodesource apt sources to install node<commit_after>EspruinoHub
===========

A BLE -> MQTT bridge for Raspberry Pi and other Embedded devices


Setting up
----------

Assuming a blank Pi:

```
# Install a modern version of nodejs
curl -sL https://deb.nodesource.com/setup_7.x |sudo -E bash -
sudo apt-get install nodejs
# Get dependencies
sudo apt-get install mosquitto mosquitto-clients nodered bluetooth bluez libbluetooth-dev libudev-dev
# Install node-red service
sudo systemctl enable nodered.service
# Start nodered manually this one time (this creates ~/.node-red)
sudo systemctl start nodered.service
# Install the node-red UI
cd ~/.node-red && npm install node-red-contrib-ui

# As it comes, NPM on the Pi is broken
# and doesn't like installing native libs. Update NPM
sudo npm -g install npm node-gyp

# Now get this repository
cd ~/
{'fraction_non_alphanumeric': 0.09704370179948586, 'fraction_numerical': 0.0006426735218508997, 'mean_word_length': 3.9272151898734178, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '3120384', 'n_tokens_mistral': 504, 'n_tokens_neox': 466, 'n_words': 200}