<commit_before># homestar-lg-smart-tv

Connect and control LG SmartTV with HomeStar and IOTDB. 

Note that we can't turn these _on_ because when the
TV is off it's not on the Internet.

See <a href="samples/">the samples</a> for details how to add to your project,
particularly <code>model.js</code> for use standalone
and <code>iotdb.js</code> for use inside IOTDB.

# Quick Start

Set the channel to 3

	$ npm install -g homestar ## with 'sudo' if error
	$ homestar setup
	$ homestar install homestar-lg-smart-tv
	$ node
	>>> iotdb = require('iotdb')
	>>> iot = iotdb.iot()
	>>> things = iot.connect("LGSmartTV")
	>>> things.set(":channel", 3)

# LGSmartTV

* <code>volume</code>: integer from 0 to 100 (<code>iot-attribute:volume</code>)
* <code>band</code>: string, see below (<code>iot-attribute:band</code>)
* <code>mute</code>: true or false (<code>iot-attribute:mute</code>)
* <code>channel</code>: a string, like <code>3-0</code> (<code>iot-attribute:channel</code>)

### LG TV Bands

Not a complete list. This needs to be made semantic

* anyplace.tv
* cinemanow
* com.webos.app.browser
* com.webos.app.camera
* com.webos.app.capturetv
* com.webos.app.connectionwizard
* com.webos.app.discovery
* com.webos.app.hdmi1
* com.webos.app.hdmi2
* com.webos.app.livetv
* com.webos.app.miracast
* com.webos.app.notificationcenter
* com.webos.app.smartshare
* com.webos.app.tvuserguide
* crackle
* netflix
* tkc
* youtube.leanback.v4
<commit_msg>updated docs<commit_after># homestar-lg-smart-tv

Connect and control LG SmartTV with HomeStar and IOTDB. 

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

Note that we can't turn these _on_ because when the
TV is off it's not on the Internet.

See <a href="samples/">the samples</a> for details how to add to your project,
particularly <code>model.js</code> for use standalone
and <code>iotdb.js</code> for use inside IOTDB.

# Installation

Install Home☆Star first. 
See: https://github.com/dpjanes/iotdb-homestar#installation

Then

    $ homestar install homestar-template

# Quick Start

Set the channel to 3

	$ npm install -g homestar ## with 'sudo' if error
	$ homestar setup
	$ homestar install homestar-lg-smart-tv
	$ node
	>>> iotdb = require('iotdb')
	>>> iot = iotdb.iot()
	>>> things = iot.connect("LGSmartTV")
	>>> things.set(":channel", 3)

# LGSmartTV

* <code>volume</code>: integer from 0 to 100 (<code>iot-attribute:volume</code>)
* <code>band</code>: string, see below (<code>iot-attribute:band</code>)
* <code>mute</code>: true or false (<code>iot-attribute:mute</code>)
* <code>channel</code>: a string, like <code>3-0</code> (<code>iot-attribute:channel</code>)

### LG TV Bands

Not a complete list. This needs to be made semantic

* anyplace.tv
* cinemanow
* com.webos.app.browser
* com.webos.app.camera
* com.webos.app.capturetv
* com.webos.app.connectionwizard
* com.webos.app.discovery
* com.webos.app.hdmi1
* com.webos.app.hdmi2
* com.webos.app.livetv
* com.webos.app.miracast
* com.webos.app.notificationcenter
* com.webos.app.smartshare
* com.webos.app.tvuserguide
* crackle
* netflix
* tkc
* youtube.leanback.v4

{'fraction_non_alphanumeric': 0.1478537360890302, 'fraction_numerical': 0.0069952305246422895, 'mean_word_length': 4.424137931034482, 'pattern_counts': {'":': 2, '<': 52, '<?xml version=': 0, '>': 76, 'https://': 2, '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': '4453263', 'n_tokens_mistral': 1206, 'n_tokens_neox': 1148, 'n_words': 286}