blob: 311bbb5c07f44e46b630c1db12263fe7864fde40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# e3372-sms-handler
E3372 SMS handler written in Python. Uses the hilink web interface API. Allows
you to do something when SMS arrives.
## Requirements
* lxml (`apt install python3-lxml` or something like that)
* see `requirements.txt`
## Usage
You need at least Python 3.6 or so.
See `main.py` and adjust the `sms_handler` function to your needs.
The script should be launched periodically by cron. For example, put this to the
crontab to launch it every 15 minutes:
```cron
*/15 * * * * python3 /path/to/e3372-sms-handler/main.py --trusted-phone +79001234567 > /dev/null
```
## License
BSD-2c
|