<commit_before>node-tethercell
===============

node.js lib for the Tethercell<commit_msg>- fill in read me<commit_after>node-tethercell
===============

node.js lib for the [Tethercell](http://tetherboard.com)

Install
-------

npm install tethercell

Usage
-----

    var Tethercell = require('tethercell');

__Discover__

    Tethercell.discover(callback(tethercell));

__Connect and Setup (discover services and characteristics)__

    tethercell.connectAndSetup(callback);

__Disconnect__

    tethercell.disconnect(callback);

__Authorize__

    var pin = '00000000';

    tethercell.authorize(pin, callback);

__Turn on/off, is on__

    tethercell.turnOn(callback);

    tethercell.turnOff(callback);

    tethercell.isOn(callback(isOn));

__Voltage__

    tethercell.readVoltage(callback(voltage));

__Device Name__

    tethercell.readDeviceName(callback(deviceName));

    var deviceName = 'TETHERCELL ONE';

    tethercell.writeDeviceName(deviceName, callback);
    
{'fraction_non_alphanumeric': 0.13190184049079753, 'fraction_numerical': 0.0081799591002045, 'mean_word_length': 4.4692737430167595, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '3446599', 'n_tokens_mistral': 333, 'n_tokens_neox': 307, 'n_words': 59}