<commit_before># homestar-template
[IOTDB](https://github.com/dpjanes/node-iotdb) Bridge for for [Template]().

<img src="https://raw.githubusercontent.com/dpjanes/iotdb-homestar/master/docs/HomeStar.png" align="right" />

# Installation

[Install Home☆Star first](https://homestar.io/about/install).

Then:

    $ npm install homestar-template

# Testing

## IOTDB

Turn on Template.

	$ node
	>>> iotdb = require('iotdb')
	>>> things = iotdb.connect("Template")
	>>> things.set(":on", true);
	
## [IoTQL](https://github.com/dpjanes/iotdb-iotql)

Change to HDMI1 

	$ homestar install iotql
	$ homestar iotql
	> SET state:on = true WHERE meta:model-id = "template";

## Home☆Star

Do:

	$ homestar runner browser=1
	
You may have to refresh the page, as it may take a little while for your Things to be discovered. If your TV is not on it won't show up.

# Models
## Template

See [Template.iotql](https://github.com/dpjanes/homestar-template/blob/master/models/Template.iotql)<commit_msg>new install instructions<commit_after># homestar-template
[IOTDB](https://github.com/dpjanes/node-iotdb) Bridge for for [Template]().

<img src="https://raw.githubusercontent.com/dpjanes/iotdb-homestar/master/docs/HomeStar.png" align="right" />

# Installation

* [Read this first](https://github.com/dpjanes/node-iotdb/blob/master/docs/install.md)

Then:

    $ npm install homestar-template

# Use

Turn on Template.

	const iotdb = require('iotdb')
    iotdb.use("homestar-template")

	const things = iotdb.connect("Template")
	things.set(":on", true);
	
# Models
## Template

See [Template.iotql](https://github.com/dpjanes/homestar-template/blob/master/models/Template.iotql)
{'fraction_non_alphanumeric': 0.15269461077844312, 'fraction_numerical': 0.0011976047904191617, 'mean_word_length': 4.46078431372549, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 9, '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': '4749523', 'n_tokens_mistral': 607, 'n_tokens_neox': 588, 'n_words': 120}