<commit_before>
HouseMonitor
============

Tested on RasperryPi type A running Raspbian.

Manual configuration is required, please look at config.js for more information.

Should be started as sudo eg.

    sudo /opt/node/bin/node main.js

When socket.io is installed, copy  ~/HouseMonitor/node_modules/socket.io/node_modules/socket.io-client/socket.io.js to dashboard/public/socket.io.js (FIXME)

Due to raspberry corrupting file on power loss (even on usb flash storage) I strongly advise setting up an automated log backup process to a remote storage. For example a cron job that commits logs to github.

###Power Monitor ![Progress](http://progressed.io/bar/90)   
describe serial data format and link to arduino .c files

    var powerEmitter = require('./libs/powerMonitor.js').powerEmitter;
    powerEmitter.on('power', function(mainsData) {<commit_msg>Added start on bootup instructions (with screen)<commit_after>
HouseMonitor
============

Tested on RasperryPi type A running Raspbian.

Manual configuration is required, please look at config.js for more information.

Should be started as sudo eg.

    sudo /opt/node/bin/node main.js

And to make it autostart on bootup you can put this in your /etc/rc.local file (before the exit 0 line):

    screen -dmS housemonitor bash
    screen -S housemonitor -X stuff "cd /home/pi/HouseMonitor; /opt/node/bin/node /home/pi/HouseMonitor/main.js\n"
    
Then you can attach to the screen session with

    sudo screen -r housemonitor
    
and detach with 

    CTRL+A+D




When socket.io is installed, copy  ~/HouseMonitor/node_modules/socket.io/node_modules/socket.io-client/socket.io.js to dashboard/public/socket.io.js (FIXME)

Due to raspberry corrupting file on power loss (even on usb flash storage) I strongly advise setting up an automated log backup process to a remote storage. For example a cron job that commits logs to github.

###Power Monitor ![Progress](http://progressed.io/bar/90)   
describe serial data format and link to arduino .c files

    var powerEmitter = require('./libs/powerMonitor.js').powerEmitter;
    powerEmitter.on('power', function(mainsData) {
{'fraction_non_alphanumeric': 0.09180327868852459, 'fraction_numerical': 0.00234192037470726, 'mean_word_length': 4.0023419203747075, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '6452020', 'n_tokens_mistral': 645, 'n_tokens_neox': 598, 'n_words': 242}