<commit_before>HueTube
=======

Live updating dashboard application to interact with Phillips Hue smart lighting.

Instructions:

Run on AWS EC2 using init script and latest DockerHub image:

1) SSH into EC2 instance and create a salt.txt with your desired admin password.<br/>
2) SCP the init.sh script onto the instance.<br/>
3) Run the script via 'bash init.sh'. The script kills all running containers and images, pulls fresh images and starts linked mongodb and HueTube application containers.<br/>

Build local image, start mongodb container, and run via Docker:<br/>

1) docker build -t huetube .<br/>
2) docker run -d --name mongodb mongo<br/>
3) docker run  -v /localpath/to/saltfile:/mnt --link mongodb:mongodb -p 80:7076 -p 7076:7076 -d --name huetubecontainer huetube<br/>
4) docker exec -it huetubecontainer cp ../../../mnt/salt.txt . <br/>

Run directly as MEAN stack app:<br/>
Start Mongo Db Server /path/to/mongod --dbpath /data<br/>
1) cd src<br/>
2) npm install<br/>
3) node ./app.js<br/>

Node server will be running on port 7076. App is accessible at http://localhost:7076<br/> 
Bridge port, IP, and Hue Developer ID are all configurable via src/Config.js within node. <br/>


<commit_msg>Updating README.md<commit_after>HueTube
=======

Live updating dashboard application to interact with Phillips Hue smart lighting.

Instructions:


Option 1: Run using Docker:<br/>

1)Utilize one of the sample bash scripts /init-scripts to pull and run the latest DockerHub image or build a local image via the Dockerfile.<br/>

2)Update the Config.js with your local IP and Phillips Hue developer name.<br/>

3)Replace the salt.txt file contents with your desired Admin password.<br/>

<br/>

Option 2: Run directly as a MEAN stack app:<br/>

*Start Mongo Db Server /path/to/mongod --dbpath /data<br/>
1) Update the Config.js with your local IP and Phillips Hue developer name.<br/>
2) Replace the salt.txt file contents with your desired Admin password.<br/>
3) cd src<br/>
4) npm install<br/>
5) node ./app.js<br/>

Node server will be running on port 7076. App is accessible at http://localhost:7076<br/> 
Bridge port, IP, and Hue Developer ID are all configurable via src/Config.js within node. <br/>



{'fraction_non_alphanumeric': 0.10509697789806044, 'fraction_numerical': 0.02345511953089761, 'mean_word_length': 3.917960088691796, 'pattern_counts': {'":': 0, '<': 32, '<?xml version=': 0, '>': 32, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4451247', 'n_tokens_mistral': 727, 'n_tokens_neox': 661, 'n_words': 311}