[arm-allstar] Announce when Internet is lost

Gervais Fillion ve2ckn2 at hotmail.fr
Tue Nov 14 12:53:26 EST 2023


well ,
it could be a great idea to have it on all our nodes.

Maybe send us a "command line " so we would download it and install!!

let's hope for a christmas gift!  🙂

73

gervais,ve2ckn

________________________________
De : ARM-allstar <arm-allstar-bounces at hamvoip.org> de la part de Danny K5CG via ARM-allstar <arm-allstar at hamvoip.org>
Envoyé : 13 novembre 2023 16:38
À : ARM Allstar <arm-allstar at hamvoip.org>
Cc : Danny K5CG <k5cg at hamoperator.org>
Objet : Re: [arm-allstar] Announce when Internet is lost

Dave,

There's probably so many ways to do that they can't be listed, but here's one that should work for you.

Create a new script and give it execute permission.


#!/usr/bin/bash

wget -q --spider http://google.com

if [ $? -gt 0 ]; then
    echo "Offline"
fi


Replace the echo line with whatever asterisk command you want that will play a local file.

Add the script to your crontab to run every minute.

One idea of many.

73
Danny, K5CG
HH 550-000-0609
SKCC 14257

----- Original Message -----
From: "ARM Allstar" <arm-allstar at hamvoip.org>
To: "ARM Allstar" <arm-allstar at hamvoip.org>
Cc: "Dave Petrie" <wa2kjc at gmail.com>
Sent: Monday, November 13, 2023 7:22:57 AM
Subject: [arm-allstar] Announce when Internet is lost

Is there anyway to run a script that would ping let's say 8.8.8.8 and
announce
over the local repeater the hamvoip raspberry is controlling, that the
internet has been lost, disconnected.
I am helping a Ham friend that is a History teacher at a school and is
setting up, with the support and enthusiasm from school staff and
principal, a uhf repeater with a internet hotspot that recently stopped
working, i know there are lots of reason for the disconnect, we just want
to know when it happens.
Thanks
Dave
_______________________________________________

ARM-allstar mailing list
ARM-allstar at hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar

Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
_______________________________________________

ARM-allstar mailing list
ARM-allstar at hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar

Visit the BBB and RPi2/3/4 web page - http://hamvoip.org


More information about the ARM-allstar mailing list