Skip to content

Commit 7e95276

Browse files
docs: Add config example (#6)
1 parent af72bb5 commit 7e95276

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,31 @@ $ pip install -r requirements.txt
1717
$ python main.py
1818
```
1919

20+
Create a `.config.json` file in the root directory with the following content:
21+
22+
```json
23+
{
24+
"main_settings": {
25+
"recievers": [
26+
{
27+
"name": "[RECEIVER NAME 1]",
28+
"tel_no": "[RECEIVER TEL NO 1]",
29+
"callmebot_key": "[CALLMEBOT_KEY 1]"
30+
}
31+
],
32+
"protectors": [
33+
{
34+
"name": "[PROTECTOR NAME 1]",
35+
"address": "[PROTECTOR MAC/IP ADDR 1]"
36+
}
37+
]
38+
},
39+
"strategy_settings": {
40+
[...IF NEEDED]
41+
},
42+
"file_io_key": "[FILE_IO_KEY]"
43+
}
44+
```
45+
2046
### Advice
2147
You can use service file provided to run the script with systemd. It would make it run on startup, and restart it if it crashes.

0 commit comments

Comments
 (0)