<commit_before>bleServer
=========

This little server keeps track of which Bluetooth LE devices are in range.
For each device it remembers when it was first seen (and for devices that
are no longer available when it was last seen). You must run this with sudo.

Access as http://localhost:8080/ble (or modify on the command line)

Setup
-----

This server should run on any Linux, but was tested with Raspberry Pi 2 and 3.
First setup your bluetooth. If "hciconfig" shows you a "hci0" interface
this already works. Otherwise for RPi3 read http://www.cnet.com/how-to/how-to-setup-bluetooth-on-a-raspberry-pi-3/
and for RPi2 with external Bluetooth LE adapter read http://www.elinux.org/RPi_Bluetooth_LE

Make sure you install the Python interface to blues with "sudo apt-get install bluez python-bluez".
Also install web.py, with "sudo pip install web.py"

If you want to run bleServer at boot: read and possibly edit initscript-bleServer,
move it to /etc/init.d/bleServer, run "sudo update-rc.d bleServer defaults" and
reboot.<commit_msg>Added help on getting ble to work on rpi3<commit_after>bleServer
=========

This little server keeps track of which Bluetooth LE devices are in range.
For each device it remembers when it was first seen (and for devices that
are no longer available when it was last seen). You must run this with sudo.

Access as http://localhost:8080/ble (or modify on the command line)

Setup
-----

This server should run on any Linux, but was tested with Raspberry Pi 2 and 3.
First setup your bluetooth. If "hciconfig" shows you a "hci0" interface
this already works. Otherwise for RPi3 read http://www.cnet.com/how-to/how-to-setup-bluetooth-on-a-raspberry-pi-3/
and for RPi2 with external Bluetooth LE adapter read http://www.elinux.org/RPi_Bluetooth_LE

Make sure you install the Python interface to blues with "sudo apt-get install bluez python-bluez".
Also install web.py, with "sudo pip install web.py"

If you want to run bleServer at boot: read and possibly edit initscript-bleServer,
move it to /etc/init.d/bleServer, run "sudo update-rc.d bleServer defaults" and
reboot.

Raspberry Pi Issues
-------------------

When running on the Raspberry Pi, first ensure that Bluetooth LE is working, and
is working for your username. "sudo hcitool lescan" should produce some output
and no errors. Otherwise you may need to install drivers, or configure them,
or ensure your userID has bluetooth access (by being in the bluetooth group).
See for example https://www.pi-supply.com/make/fix-raspberry-pi-3-bluetooth-issues/
for some help.
{'fraction_non_alphanumeric': 0.0823575331772053, 'fraction_numerical': 0.00858704137392662, 'mean_word_length': 4.025490196078431, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 5, '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': '5910227', 'n_tokens_mistral': 754, 'n_tokens_neox': 719, 'n_words': 359}