<commit_before>This is a simple demo web application.

Only purpose: Display temperature data recorded with a Raspberry Pi (RPi).

This code is intended to run on the same RPi as the data is recorded on.

If running the command `npm start` and visiting [http://localhost:3000/](http://localhost:3000/) does not work, please see below.

Otherwise visit [http://localhost:3000/temperatures](http://localhost:3000//temperatures).

## TL;DR Build instructions

Prerequisites: [node.js](https://nodejs.org/).

[Bower.js](http://bower.io/) is optional: All frontend stuff from bower is included in `/vendor/bower` (ie jquery, bootstrap, etc).

```
npm install
```

`npm install`: gets the backend dependencies (ie express.js, sqlite3-api for express).

## Quick test

```
npm start
```

Then open your browser at [http://localhost:3000/](http://localhost:3000/). Test for express.js

Then open your browser at [http://localhost:3000/temperatures](http://localhost:3000//temperatures). Tests the rest

Should look something like this:

![screenshot](documentation/images/screenshot-01.png)

## Production setup

```
export SET_ENV=production
npm start
```

## TODOs

- legend: placement outside of plot
- legend: select which data set to display
- overview plot: fix margins
- detail plot: add panning functionality<commit_msg>Updated TODOs in README.<commit_after>This is a simple demo web application.

Only purpose: Display temperature data recorded with a Raspberry Pi (RPi).

This code is intended to run on the same RPi as the data is recorded on.

If running the command `npm start` and visiting [http://localhost:3000/](http://localhost:3000/) does not work, please see below.

Otherwise visit [http://localhost:3000/temperatures](http://localhost:3000//temperatures).

## TL;DR Build instructions

Prerequisites: [node.js](https://nodejs.org/).

[Bower.js](http://bower.io/) is optional: All frontend stuff from bower is included in `/vendor/bower` (ie jquery, bootstrap, etc).

```
npm install
```

`npm install`: gets the backend dependencies (ie express.js, sqlite3-api for express).

## Quick test

```
npm start
```

Then open your browser at [http://localhost:3000/](http://localhost:3000/). Test for express.js

Then open your browser at [http://localhost:3000/temperatures](http://localhost:3000//temperatures). Tests the rest

Should look something like this:

![screenshot](documentation/images/screenshot-01.png)

## Production setup

```
export SET_ENV=production
npm start
```

## TODOs

- ~~legend: placement outside of plot~~
- ~~legend: select which data set to display~~
- legend: checkbox, color box and label should be side by side
- tooltip should show all y values for selected x value (requires data interpolation, check available plugins)
- overview plot: fix margins
- detail plot: add panning functionality
{'fraction_non_alphanumeric': 0.1200141193081539, 'fraction_numerical': 0.024708789269325803, 'mean_word_length': 4.645418326693227, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1287967', 'n_tokens_mistral': 886, 'n_tokens_neox': 788, 'n_words': 313}