<commit_before># Device-Monitor-Dashboard
Python script to generate material design html report of devices' online/offline status. A cheap/fun reporting solution.
This can be used for for servers, networking equipment, IOT devices, anything that's "pingable".  

## Changelog (2/3/17)
 - Change status from online/offline text to colored orb indicators

## Easy Install
`curl -sL https://raw.githubusercontent.com/circa10a/Device-Monitor-Dashboard/master/install.sh > install.sh && bash install.sh`
- Apache and Python required for Easy Install
- Tested with Ubuntu 16.04 / Apache 2.4.7 / Python 2.7
- Follow the prompts!

##Screenshots
![alt text](http://i.imgur.com/JPuGodA.png)
![alt text](http://i.imgur.com/n0oXtGG.png)

## Usage
- Have a text file with hostnames or ip addresses
- Update the python script (variable at the top) with the path/name of your file with hostnames and output file path.(default hostames= file.txt   default output= status.html)
- Run `python report.py'
- Ensure that you run place the output HTML file in the project directory so it can find its web dependencies

## Automation
- Setup a web server
- Install a new cron job to run the report periodically `python $path/to/project_directory/report.py &> /dev/null`
- Set output path in python script to write out html report to web serving directory such as `/var/www/html`
- The page will automatically refresh every 60 seconds to reflect the new report generated by cron
- BE SURE TO HAVE TO HAVE THE HTML FILE IN THE ROOT OF THE PROJECT DIRECTORY<commit_msg>Update documentation & include changelog<commit_after># Device-Monitor-Dashboard
Python script to generate material design html report of devices' online/offline status. A cheap/fun reporting solution.
This can be used for for servers, networking equipment, IOT devices, anything that's "pingable".  

## Changelog (2/3/17)
 - Change status from online/offline text to colored orb indicators

## Easy Install
`curl -sL https://raw.githubusercontent.com/circa10a/Device-Monitor-Dashboard/master/install.sh > install.sh && bash install.sh`
- Apache and Python required for Easy Install
- Tested with Ubuntu 16.04 / Apache 2.4.7 / Python 2.7
- Follow the prompts!

##Screenshots
![alt text](http://i.imgur.com/JPuGodA.png)
![alt text](http://i.imgur.com/n0oXtGG.png)

## Usage
- Have a text file with hostnames or ip addresses
- Update the python script (variable at the top) with the path/name of your file with hostnames and output file path.(default hostames= file.txt   default output= index.html)
- Run `python report.py'
- Ensure that you place the output HTML file in the project directory so it can find its web dependencies

## Automation
- Setup a web server
- Install a new cron job to run the report periodically `cd $path/to/project_directory/ && python report.py &> /dev/null`
- Set output path in python script to write out html report to web serving directory such as `/var/www/html`
- The page will automatically refresh every 60 seconds to reflect the new report generated by cron
{'fraction_non_alphanumeric': 0.0836076366030283, 'fraction_numerical': 0.01184990125082291, 'mean_word_length': 4.159592529711375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '5115832', 'n_tokens_mistral': 885, 'n_tokens_neox': 839, 'n_words': 387}