<commit_before># Configuration

To configure, create a `js` or `json` file somewhere.

Pass this in to `homenet4` as the last argument.

If no configuration is passed in it uses `/etc/homenet4/config.json`.

## Example

```json
{
  "dataPath": "",
  "webServerPort": 1234,
  "location": {
    "latitude": 37.8136,
    "longitude": 144.9631
  },
  "zones": [
    {}
  ],
  "scenes": [
    {}
  ],
  "people": [
    {}
  ],
  "instances": [
    {}
  ]
}
```

For more details see:

- [Zone configuration](../../tsdoc/interfaces/homenet.izoneconfig.html)
- [Scene configuration](../../tsdoc/interfaces/homenet.isceneconfig.html)
- [Person configuration](../../tsdoc/interfaces/homenet.ipersonconfig.html)
- [Instance configuration](../../tsdoc/interfaces/homenet.instanceconfig.html)

## Schema

```json
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {},
    "id": "http://homenet4/api/v1",
    "properties": {
        "dataPath": {
            "id": "/properties/dataPath",
            "type": "string"
        },
        "instances": {
            "id": "/properties/instances",
            "items": {},
            "type": "array"
        },
        "location": {
            "id": "/properties/location",
            "properties": {
                "latitude": {
                    "id": "/properties/location/properties/latitude",
                    "type": "number"
                },
                "longitude": {<commit_msg>1 more level<commit_after># Configuration

To configure, create a `js` or `json` file somewhere.

Pass this in to `homenet4` as the last argument.

If no configuration is passed in it uses `/etc/homenet4/config.json`.

## Example

```json
{
  "dataPath": "",
  "webServerPort": 1234,
  "location": {
    "latitude": 37.8136,
    "longitude": 144.9631
  },
  "zones": [
    {}
  ],
  "scenes": [
    {}
  ],
  "people": [
    {}
  ],
  "instances": [
    {}
  ]
}
```

For more details see:

- [Zone configuration](../tsdoc/interfaces/homenet.izoneconfig.html)
- [Scene configuration](../tsdoc/interfaces/homenet.isceneconfig.html)
- [Person configuration](../../tsdoc/interfaces/homenet.ipersonconfig.html)
- [Instance configuration](../../tsdoc/interfaces/homenet.instanceconfig.html)

## Schema

```json
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {},
    "id": "http://homenet4/api/v1",
    "properties": {
        "dataPath": {
            "id": "/properties/dataPath",
            "type": "string"
        },
        "instances": {
            "id": "/properties/instances",
            "items": {},
            "type": "array"
        },
        "location": {
            "id": "/properties/location",
            "properties": {
                "latitude": {
                    "id": "/properties/location/properties/latitude",
                    "type": "number"
                },
                "longitude": {
{'fraction_non_alphanumeric': 0.1862375898664841, 'fraction_numerical': 0.01609038000684697, 'mean_word_length': 2.0596858638743454, 'pattern_counts': {'":': 54, '<': 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': '1188399', 'n_tokens_mistral': 977, 'n_tokens_neox': 936, 'n_words': 170}