internet_connection_watchdog

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
internet_connection_watchdog [17.06.2018 20:51] – [GSM Link] Pascal Suterinternet_connection_watchdog [17.06.2018 20:53] Pascal Suter
Line 9: Line 9:
   * on the tp-link stick the last serial device seems to be the one that can be used for sms (''gammu identify'' only gets information from that device). <code>gammu-detect | grep -B1 TP-LINK | grep ttyUSB | tail -n 1</code> to get the device name for the config   * on the tp-link stick the last serial device seems to be the one that can be used for sms (''gammu identify'' only gets information from that device). <code>gammu-detect | grep -B1 TP-LINK | grep ttyUSB | tail -n 1</code> to get the device name for the config
   * installation: <code>apt install gammu gammu-smsd</code>   * installation: <code>apt install gammu gammu-smsd</code>
-  * +  * <code bash process-sms.sh>#!/bin/bash 
 +for i in `seq $SMS_MESSAGES` ; do 
 +    $numvar="SMS_${i}_NUMBER" 
 +    $textvar="SMS_${i}_TEXT"; 
 +    echo "${!numvar}:${!textvar}" >> /tmp/messages 
 +    if [ "${!textvar}" == "connect ]; then 
 +      echo "connect!" >> /tmp/messages 
 +    fi 
 +done 
 +</code>
 ===== GSM Link ===== ===== GSM Link =====
   * Hardware: See above   * Hardware: See above
  • internet_connection_watchdog.txt
  • Last modified: 17.06.2018 22:21
  • by Pascal Suter