From 8f7c6b6c362a67d37e78948ddc1269d0dafece77 Mon Sep 17 00:00:00 2001 From: MIRZAEV Date: Wed, 7 Jan 2026 21:09:04 +0500 Subject: [PATCH] create a simple instruction --- README.md | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3a2c9d8..cfd43d0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,40 @@ -# campanula +# Campanula Receive and send messages through Gammu server and Telegram messenger interface + +## Preparation +1. **Ubuntu** linux distributive +2. Any **SIM-modem**, for example **[SIM900](https://ali.click/xxe9vh?erid=2SDnjdoLMq2)** +
Реклама: ООО "АЛИБАБА.КОМ (РУ)" ИНН: 7703380158 +3. **UART** → **USB** adapter +4. **[Gammu](https://docs.gammu.org/smsd/smsd.html)** installed and configured + +## Installation + +### Download the repository and its dependencies +```bash +cd /var/www +git clone https://git.svoboda.works/garden/campanula +cd campanula +composer update +``` + +### Edit settings files +```bash +cd garden/campanula/system/settings +nvim system.php +nvim telegram.php +nvim gammu.php +``` + +### Test manually launch +```bash +cd ../public +php telegram_week.php +``` +*The robot will send a message only if you have already started a conversation with it* + +### Write script launch into crontab +```bash +cat ../../../../examples/crontab/records.sh +sudo crontab -e +``` \ No newline at end of file