<commit_before># humidor
Read temperature and humidity from my cigar humidor using Ruuvitag sensor. Data is read by Raspberry Pi and published in AWS via their IoT service.

![Alt text](architecture.png?raw=true "Architecture")

## Dependencies

### Ruuvitag

To measure the data in my humidor.

https://tag.ruuvi.com

### Raspberry Pi w/ bt and wi-fi

To collect data from Ruuvitag and publish it into AWS IoT service.

https://www.raspberrypi.org/products/raspberry-pi-3-model-b/

TODO: add the scripts for Pi into repository.

### AWS cloud service

A serverless solution to subscribe to the data from Pi, save it into a dynamodb table using an IoT rule, and publish it on an S3 website.

Services in use: [IoT](https://aws.amazon.com/iot/), [Lambda](https://aws.amazon.com/lambda/), [DynamoDB](https://aws.amazon.com/dynamodb/), [S3](https://aws.amazon.com/s3/)

https://aws.amazon.com

#### Serverless Framework

For AWS deployment.

Usage:
- *serverless deploy* to deploy the backend application w/ database
- *serverless client deploy* to deploy static files to S3
- *serverless deploy function -f humidor* to deploy only the function

https://serverless.com

TODO: Add dynamodb table and IoT rule

##### Serverless Finch plugin

For AWS S3 static website deployment

https://www.npmjs.com/package/serverless-finch

#### Morris.js

A very simple js chart library. Requires also jquery.

http://morrisjs.github.io/morris.js/index.html<commit_msg>Add serverless usage<commit_after># humidor
Read temperature and humidity from my cigar humidor using Ruuvitag sensor. Data is read by Raspberry Pi and published in AWS via their IoT service.

![Alt text](architecture.png?raw=true "Architecture")

## Dependencies

### Ruuvitag

To measure the data in my humidor.

https://tag.ruuvi.com

### Raspberry Pi w/ bt and wi-fi

To collect data from Ruuvitag and publish it into AWS IoT service.

https://www.raspberrypi.org/products/raspberry-pi-3-model-b/

TODO: add the scripts for Pi into repository.

### AWS cloud service

A serverless solution to subscribe to the data from Pi, save it into a dynamodb table using an IoT rule, and publish it on an S3 website.

Services in use: [IoT](https://aws.amazon.com/iot/), [Lambda](https://aws.amazon.com/lambda/), [DynamoDB](https://aws.amazon.com/dynamodb/), [S3](https://aws.amazon.com/s3/)

https://aws.amazon.com

#### Serverless Framework

For AWS deployment.

Usage:
- *serverless deploy* to deploy the backend application w/ database
- *serverless client deploy* to deploy static files to S3
- *serverless deploy function -f humidor* to deploy only the lambda function

https://serverless.com

TODO: Add dynamodb table and IoT rule

##### Serverless Finch plugin

For AWS S3 static website deployment

https://www.npmjs.com/package/serverless-finch

#### Morris.js

A very simple js chart library. Requires also jquery.

http://morrisjs.github.io/morris.js/index.html
{'fraction_non_alphanumeric': 0.10760795065113091, 'fraction_numerical': 0.00411240575736806, 'mean_word_length': 4.175531914893617, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 18, 'lorem ipsum': 0, 'www.': 4, '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': '549378', 'n_tokens_mistral': 941, 'n_tokens_neox': 886, 'n_words': 338}