Skip to content

Commit 19e33df

Browse files
committed
Config changes and logging adjustment
1 parent e42163e commit 19e33df

9 files changed

+5074
-597
lines changed

Diff for: .eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = {
2121
'@typescript-eslint/no-base-to-string': 'error',
2222
'@typescript-eslint/no-explicit-any': 'error',
2323
'@typescript-eslint/no-extra-parens': 'error',
24+
'@typescript-eslint/no-non-null-assertion': 'off',
2425
'@typescript-eslint/no-unnecessary-boolean-literal-compare': ['error', {"allowComparingNullableBooleansToTrue": false, "allowComparingNullableBooleansToFalse": false}],
2526
'@typescript-eslint/no-var-requires': 'error',
2627
'@typescript-eslint/prefer-optional-chain': 'error',

Diff for: .markdownlint.json

-5
This file was deleted.

Diff for: README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ This plugin converts SMTP messages into HTTP motion alerts [homebridge-camera-ff
66

77
Note that this plugin itself does not expose any devices to HomeKit.
88

9-
This is in an extremely early state, and currently only triggers alerts after uploading an image into the folder with the same name as your camera. The image is not currently stored anywhere.
10-
119
## Installation
1210

1311
1. Install Homebridge using the [official instructions](https://github.com/homebridge/homebridge/wiki).
@@ -23,16 +21,15 @@ Edit your `config.json` accordingly. Configuration sample:
2321
"platforms": [
2422
{
2523
"platform": "smtpMotion",
26-
"smtp_port": 2525,
27-
"http_port": 8080
24+
"smtp_port": 2525
2825
}
2926
]
3027
```
3128

3229
- platform: _(Required)_ Must always be `smtpMotion`.
3330
- smtp_port: The port to run the SMTP server on. (Default: `2525`)
34-
- http_port: The HTTP port used by homebridge-camera-ffmpeg. (Default: `8080`)
3531
- space_replace: The character to replace a space with in the camera name portion of the email address. (Default: `+`)
32+
- log_emails: Write to the Homebridge log when an email is received. (Default: `false`)
3633

3734
### Camera Configuration
3835

Diff for: config.schema.json

+5-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"pluginType": "platform",
44
"singular": true,
55
"headerDisplay": "Converts SMTP messages into HTTP motion alerts that homebridge-camera-ffmpeg understands",
6-
"footerDisplay": "Raise [Issues](https://github.com/Sunoo/homebridge-smtp-motion/issues) or submit [Pull Requests](https://github.com/Sunoo/homebridge-smtp-motion/pulls) on [Project Page](https://github.com/Sunoo/homebridge-smtp-motion).",
76
"schema": {
87
"type": "object",
98
"properties": {
@@ -20,17 +19,16 @@
2019
"placeholder": 2525,
2120
"description": "The port to run the SMTP server on."
2221
},
23-
"http_port": {
24-
"title": "HTTP Port",
25-
"type": "integer",
26-
"placeholder": 8080,
27-
"description": "The HTTP port used by homebridge-camera-ffmpeg."
28-
},
2922
"space_replace": {
3023
"title": "Space Replace",
3124
"type": "string",
3225
"placeholder": "+",
3326
"description": "The character to replace a space with in the camera name portion of the email address."
27+
},
28+
"log_emails": {
29+
"title": "Log Emails",
30+
"type": "boolean",
31+
"description": "Write to the Homebridge log when an email is received."
3432
}
3533
}
3634
}

0 commit comments

Comments
 (0)