Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaaass/sms-webhook-forwarder-service
Systemd unit (user level) for forwarding SMS message to WebHook using gammu-smsd
https://github.com/kaaass/sms-webhook-forwarder-service
Last synced: 5 days ago
JSON representation
Systemd unit (user level) for forwarding SMS message to WebHook using gammu-smsd
- Host: GitHub
- URL: https://github.com/kaaass/sms-webhook-forwarder-service
- Owner: kaaass
- License: unlicense
- Created: 2023-09-25T18:33:24.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-25T18:47:06.000Z (about 1 year ago)
- Last Synced: 2023-09-26T07:55:39.232Z (about 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sms-webhook-forwarder-service
Systemd unit (user level) for forwarding SMS message to WebHook using gammu-smsd
## Usage
```shell
# Install service files and configs
./install.sh
# e.g.,
./install.sh /dev/ttyUSB0 https://example.com/webhook
# Enable and start the service
systemctl --user enable --now gammu-smsd.service
```## Webhook
When SMS comes, the service will send a JSON payload in following format to the specified WebHook URL.
```json
{
"data": [
{
"class": "Class of message",
"number": "Sender number",
"text": "Message text",
"reference": "Message Reference. If delivery status received, this variable contains TPMR of original message"
}
]
}
```## Installed files
- `~/.config/gammu-smsd`: Config and scripts
- `~/.log/gammu-smsd`
- Log files: `gammu.log`, `smsd.log`
- SMS Messages: `inbox/`, `outbox/`, `sent/`, `error/`
- `~/.config/systemd/user/gammu-smsd.service`: Systemd service unit## Credit
https://github.com/realJoshByrnes/docker-gammu-kalkun