<commit_before># CernWall

Cernwall is a collection of Arduino and Python scripts, 
configuration files, documentation etc.,
designed to drive WS2812 LED strips.

# Installing everything on Raspberry Pi
Use ssh or local keyboard to log in Raspberry Pi 3 running 
Raspbian 2017-08-16-raspbian-stretch-lite.img
or perhaps some newer version.

On Mac Os X command might be something like this (it may take a couple of minutes):

```
time sudo dd bs=4m if=2017-08-16-raspbian-stretch-lite.img of=/dev/rdisk2
```

After successful installation of Raspbian, log in to Raspberry Pi and issue following commands:

## Install mandatory packages to install the rest
```
sudo apt update && sudo apt -y install git python-pip python-dev libyaml-dev libffi-dev libssl-dev cdbs sshpass
```

## Install Ansible (this will take some time, maybe more than 10 minutes)
```
sudo pip install "ansible<=2.4"
```

# Clone this repository
```
cd /home/pi
git clone https://github.com/aapris/CernWall
```

# Run ansible playbook to install everything (this will take ~10-20 minutes)
```
cd CernWall/ansible
ansible-playbook -vv -i "cernwall," -c local cernwall.yml  --extra-vars "ap_ssid=SSID ap_passphrase=PASSWORD hostname=HOSTNAME"
```

*NOTE:* You *MUST* change correct `SSID`, `PASSWORD` and `HOSTNAME` in the command above! 
In other case things are not going to work! 
Consult the author or CernWall's management staff to get the right values.

*NOTE:* This will take some time, so crab a cup of coffee or tea.
<commit_msg>Add note about ESP8266 code<commit_after># CernWall

Cernwall is a collection of Arduino and Python scripts, 
configuration files, documentation etc.,
designed to drive WS2812 LED strips.

Note that code for ESP8266 is in another github repository:
https://github.com/aapris/WS2812FX

# Installing everything on Raspberry Pi
Use ssh or local keyboard to log in Raspberry Pi 3 running 
Raspbian 2017-08-16-raspbian-stretch-lite.img
or perhaps some newer version.

On Mac Os X command might be something like this (it may take a couple of minutes):

```
time sudo dd bs=4m if=2017-08-16-raspbian-stretch-lite.img of=/dev/rdisk2
```

After successful installation of Raspbian, log in to Raspberry Pi and issue following commands:

## Install mandatory packages to install the rest
```
sudo apt update && sudo apt -y install git python-pip python-dev libyaml-dev libffi-dev libssl-dev cdbs sshpass
```

## Install Ansible (this will take some time, maybe more than 10 minutes)
```
sudo pip install "ansible<=2.4"
```

# Clone this repository
```
cd /home/pi
git clone https://github.com/aapris/CernWall
```

# Run ansible playbook to install everything (this will take ~10-20 minutes)
```
cd CernWall/ansible
ansible-playbook -vv -i "cernwall," -c local cernwall.yml  --extra-vars "ap_ssid=SSID ap_passphrase=PASSWORD hostname=HOSTNAME"
```

*NOTE:* You *MUST* change correct `SSID`, `PASSWORD` and `HOSTNAME` in the command above! 
In other case things are not going to work! 
Consult the author or CernWall's management staff to get the right values.

*NOTE:* This will take some time, so crab a cup of coffee or tea.

{'fraction_non_alphanumeric': 0.08872517616912236, 'fraction_numerical': 0.02370275464445868, 'mean_word_length': 4.45979020979021, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '6356477', 'n_tokens_mistral': 1064, 'n_tokens_neox': 948, 'n_words': 415}