Differences
This shows you the differences between two versions of the page.
|
en:online_status_of_internet [2016/03/28 17:46] |
en:online_status_of_internet [2020/07/05 17:13] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Status of Internet connexion ====== | ||
| + | To verify that your repeater is still online on the internet, we will add a DTMF command that tells you by an announcement on request. | ||
| + | ===== Create a copy of Logic.tcl file ===== | ||
| + | Copy the file '' | ||
| + | <code bash> | ||
| + | cd / | ||
| + | sudo mkdir local | ||
| + | cp Logic.tcl ./ | ||
| + | </ | ||
| + | ===== Modification of the Logic.tcl file ===== | ||
| + | In '' | ||
| + | |||
| + | <code bash> | ||
| + | sudo nano / | ||
| + | </ | ||
| + | |||
| + | <code tcl> | ||
| + | #SEND DTMF CODE 25# | ||
| + | if {$cmd == " | ||
| + | set result [catch {exec ping -c 1 google.com }]; | ||
| + | if {$result == 0} { | ||
| + | puts " | ||
| + | | ||
| + | # | ||
| + | set runcmd [exec curl http:// | ||
| + | puts " | ||
| + | set splitip [split $runcmd .] | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | } else { | ||
| + | puts " | ||
| + | | ||
| + | } | ||
| + | return 1 | ||
| + | } | ||
| + | |||
| + | return 0 | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | In this TCL code , we also integrate from the line ''# | ||
| + | |||
| + | Both read messages are two sound files wav to set up in a subdirectory , eg | ||
| + | ''/ | ||
| + | |||
| + | Files available on https:// | ||
| + | {{youtube> | ||