[arm-allstar] Announce when Internet is lost
Danny K5CG
k5cg at hamoperator.org
Mon Nov 13 16:38:08 EST 2023
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
More information about the ARM-allstar
mailing list