Files
campanula/README.md
2026-01-07 21:09:04 +05:00

40 lines
1009 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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)**
</br><sub><sup>Реклама: ООО "АЛИБАБА.КОМ (РУ)" ИНН: 7703380158</sup></sub>
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
```