<commit_before>
# poolpi
A collection of scripts that I'm using to monitor my pool's temperature.

## Config
### `location.py`

A simple config so I don't have to put my home location into the public repo. It should look something like this:

```
from pytz import timezone

# Location information
longitude = -5;
latitude = 22;
localtz = timezone('UTC')
weather_station = 'KNYNEWYO256'
```

Weather station is an identifier from wunderground.com.

### Cron

Just add a crontab to take the temperature every minute and store it in rrd:
```
* * * * *   poolpi/update_rrd.py
```
<commit_msg>doc rrd and web<commit_after>
# poolpi
A collection of scripts that I'm using to monitor my pool's temperature.

## Config
### `location.py`

A simple config so I don't have to put my home location into the public repo. It should look something like this:

```
from pytz import timezone

# Location information
longitude = -5;
latitude = 22;
localtz = timezone('UTC')
weather_station = 'KNYNEWYO256'
```

Weather station is an identifier from wunderground.com.

### RRD

Create an rrd at `temperature.rrd` with the `tools/create_rrd.sh` script.

### Cron

Just add a crontab to take the temperature every minute and store it in rrd:
```
* * * * *   poolpi/update_rrd.py
```

### Web

Symlink or document root the `web` directory. Then you can access `temps.php` for a rudimentary display of
hourly, daily, weekly and yearly graphs. One graph for each time period will have ambient and probe
temperature overlaid and another graph will have just the probe temperature so it's easier to see
its fluctuation without the scale of the ambient temperature zooming out the graph.

{'fraction_non_alphanumeric': 0.08368452739313667, 'fraction_numerical': 0.007224563515954244, 'mean_word_length': 4.292993630573249, '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': '158068', 'n_tokens_mistral': 525, 'n_tokens_neox': 489, 'n_words': 229}