<commit_before>pimatic-smartmeter
===============

Reading Smartmeter energy usage through P1 port

Installation
------------
To enable the smartmeter plugin add this to the plugins in the config.json file.

```
...
{
  "plugin": "smartmeter",
  "serialport": "/dev/ttyUSB0"
}
...
```

and add the following to the devices

```
{
  "id": "smartmeter",
  "class": "Smartmeterdevice",
  "name": "smartmeter",
}
```

Then run the following command from the pimatic-app directory:

```
sudo npm install pimatic-smartmeter
```


Configuration
-------------
The only configuration you can do currently is what serialport to use. You do this in the plugin section, as you can see in the installation section.

<commit_msg>Update README.md with correct installation instruction<commit_after>pimatic-smartmeter
===============

Reading Smartmeter energy usage through P1 port

Installation
------------
To enable the smartmeter plugin add this to the plugins in the config.json file.

```
...
{
  "plugin": "smartmeter",
  "serialport": "/dev/ttyUSB0"
}
...
```

and add the following to the devices

```
{
  "id": "smartmeter",
  "class": "Smartmeterdevice",
  "name": "smartmeter",
}
```

Then install through the standard pimatic plugin install page.


Configuration
-------------
The only configuration you can do currently is what serialport to use. You do this in the plugin section, as you can see in the installation section.


{'fraction_non_alphanumeric': 0.15077138849929875, 'fraction_numerical': 0.002805049088359046, 'mean_word_length': 3.5884244372990355, 'pattern_counts': {'":': 10, '<': 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': '6010183', 'n_tokens_mistral': 433, 'n_tokens_neox': 396, 'n_words': 163}