Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
internet_connection_watchdog [17.06.2018 21:41] – [software installation] Pascal Suter | internet_connection_watchdog [17.06.2018 22:20] – [SMS] Pascal Suter | ||
---|---|---|---|
Line 11: | Line 11: | ||
* Hardware: TP-Link MA260 | * Hardware: TP-Link MA260 | ||
* on the tp-link stick the last serial device seems to be the one that can be used for sms ('' | * on the tp-link stick the last serial device seems to be the one that can be used for sms ('' | ||
+ | * ''/ | ||
+ | |||
+ | # Gammu library configuration, | ||
+ | [gammu] | ||
+ | port = %PORT% | ||
+ | connection = at | ||
+ | #logformat = textall | ||
+ | |||
+ | # SMSD configuration, | ||
+ | [smsd] | ||
+ | service = null | ||
+ | logfile = syslog | ||
+ | # Increase for debugging information | ||
+ | debuglevel = 0 | ||
+ | RunOnReceive = / | ||
+ | </ | ||
+ | * ''/ | ||
+ | device = %PORT% | ||
+ | connection = at | ||
+ | </ | ||
+ | * ''/ | ||
+ | #!/bin/bash | ||
+ | port=$(gammu-detect | grep -B1 TP-LINK | grep ttyUSB | tail -n 1 | awk -F = ' | ||
+ | sed -e " | ||
+ | sed -e " | ||
+ | </ | ||
* installation: | * installation: | ||
* <code bash process-sms.sh># | * <code bash process-sms.sh># | ||
for i in `seq $SMS_MESSAGES` ; do | for i in `seq $SMS_MESSAGES` ; do | ||
- | | + | numvar=" |
- | | + | textvar=" |
echo " | echo " | ||
- | if [ " | + | if [ " |
echo " | echo " | ||
fi | fi |