aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-03-23 04:14:34 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-03-23 04:14:34 +0300
commitbb955f2546b46e72f7ce30c0aefe88e4a848925b (patch)
tree4fad7c869c7e24922f1b1981b7d5d7b6aa2c220d /README.md
parentb8c7b0b6ef904d0262b846e914c10b59e159a8fd (diff)
some improvements while network was down.....
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 16 insertions, 1 deletions
diff --git a/README.md b/README.md
index 25489a0..9d1d166 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,25 @@
# e3372-py
+E3372 SMS handler written in Python. Uses the hilink web interface API. Allows
+you to do something when SMS arrives.
+
## Requirements
-* lxml (python3-lxml)
+* lxml (`apt install python3-lxml` or something like it)
* 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. This line in crontab would
+launch the script every 10 minutes:
+```cron
+*/10 * * * * python3 /path/to/e3372-py/main.py --trusted-phone 79001234567
+```
+
## License
BSD-2c \ No newline at end of file