Discussion:
APRS activity triggering a text or email notification via internet push
Steve Hanis
2011-02-08 04:19:59 UTC
Permalink
A friend and I just starting using APRS. Is there way to trigger a SMS text
message or email via Internet monitoring when his APRS goes active or moving?
This would let me know he is mobile and available to chat or view his location
on a map. My apologies if the question is too simplistic for this
list, I am a newbie.

Thanks,
Steve
AB5ID
Guido Trentalancia
2011-02-08 16:41:21 UTC
Permalink
Hello Steve !
Post by Steve Hanis
A friend and I just starting using APRS. Is there way to trigger a SMS text
message or email via Internet monitoring when his APRS goes active or moving?
This would let me know he is mobile and available to chat or view his location
on a map. My apologies if the question is too simplistic for this
list, I am a newbie.
Thanks,
Steve
AB5ID
Suppose your friend has call AB4HB, then you could use something like:

FROMEMAILADDRESS=dmesteve-***@public.gmane.org
MYEMAILADDRESS=dmesteve-***@public.gmane.org
APRSCALLSIGN=AB4HB
SMTP_SERVER=smtp.ab5id.org
axlisten -a | grep -q " fm $APRSCALLSIGN to " && echo "An APRS packet
from $APRSCALLSIGN has been heard" > /tmp/aprs_message.txt && env
MAILRC=/dev/null from=$FROMEMAILADDRESS smtp=$SMTP_SERVER mailx -v -n -s
"Mail from APRS" $MYEMAILADDRESS < /tmp/aprs_message.txt && rm
-f /tmp/aprs_message.txt

Note that APRSCALLSIGN is case sensitive (unless you pass the -i option
to grep). Note that SMTP_SERVER needs to be defined according to your
actual smtp server.
Most importantly note that the above will send out an email message for
every packet that is received from APRSCALLSIGN and this might not be
desirable as there might be a lot of packets coming continuously (so you
might do things better with some extra code that checks whether a
message has already been sent recently, for example by creating a
temporary file each time a message is sent and then checking that the
timestamp of such file is not too recent before sending a new email
message).

Or otherwise you can download a tiny program that I wrote
(ax_emergency_listen) which is generally used to monitor APRS emergency
packets and adapt it to your needs (by modifying the C source code):

http://iz6rdb.trentalancia.com/en/aprs_igate.html

73,

Guido IZ6RDB
Steve Hanis
2011-02-10 23:48:04 UTC
Permalink
Thank you for your reply. I am looking for a way to trigger an email, IM or
SMS using existing web interfaces. A way to "push" an alert to me when I am
working or relaxing at home. Can this be done?
Kind Regards,
Steve
Post by Guido Trentalancia
Hello Steve !
Post by Steve Hanis
A friend and I just starting using APRS. Is there way to trigger a SMS
text
Post by Steve Hanis
message or email via Internet monitoring when his APRS goes active or
moving?
Post by Steve Hanis
This would let me know he is mobile and available to chat or view his
location
Post by Steve Hanis
on a map. My apologies if the question is too simplistic for this
list, I am a newbie.
Thanks,
Steve
AB5ID
APRSCALLSIGN=AB4HB
SMTP_SERVER=smtp.ab5id.org
axlisten -a | grep -q " fm $APRSCALLSIGN to " && echo "An APRS packet
from $APRSCALLSIGN has been heard" > /tmp/aprs_message.txt && env
MAILRC=/dev/null from=$FROMEMAILADDRESS smtp=$SMTP_SERVER mailx -v -n -s
"Mail from APRS" $MYEMAILADDRESS < /tmp/aprs_message.txt && rm
-f /tmp/aprs_message.txt
Note that APRSCALLSIGN is case sensitive (unless you pass the -i option
to grep). Note that SMTP_SERVER needs to be defined according to your
actual smtp server.
Most importantly note that the above will send out an email message for
every packet that is received from APRSCALLSIGN and this might not be
desirable as there might be a lot of packets coming continuously (so you
might do things better with some extra code that checks whether a
message has already been sent recently, for example by creating a
temporary file each time a message is sent and then checking that the
timestamp of such file is not too recent before sending a new email
message).
(ax_emergency_listen) which is generally used to monitor APRS emergency
http://iz6rdb.trentalancia.com/en/aprs_igate.html
73,
Guido IZ6RDB
John Gorkos
2011-02-11 13:35:51 UTC
Permalink
It "can" be done. It hasn't yet. What you're asking for is 4-6 hours of
custom coding (mostly for the web interface). Do you have a web server that
can host something like this? I've got a few hours this weekend I can use to
code this.
Let me make sure I've got the requirements right:
You want a web interface that allows you to enter a "monitored" call sign, and
an email address to send a message to when that position report from that
monitored callsign indicates movement. You want one message only. Then, time
passes and the monitored station stops moving. Once the station starts moving
again, you want another text message.
The SMS messages will have to be sent via email (i.e.
2125551212-***@public.gmane.org), since a direct SMS interface is spendy and less
standard.

Do you have any programming skills you could apply to this? Web design,
maybe? I hate web design, but the back-end portion isn't too difficult. This
request will probably irritate some people on this list, FWIW. Everyone has
an imaginary line they draw between "ham radio" and "commercial radio and
internet." Using your cellphone/commercial radio to get updates about APRS
happenings on ham radio is probably on the far side of some peoples' lines.

John Gorkos
AB0OO
Post by Steve Hanis
Thank you for your reply. I am looking for a way to trigger an email, IM or
SMS using existing web interfaces. A way to "push" an alert to me when I am
working or relaxing at home. Can this be done?
Kind Regards,
Steve
On Tue, Feb 8, 2011 at 10:41 AM, Guido Trentalancia
Post by Guido Trentalancia
Hello Steve !
Post by Steve Hanis
A friend and I just starting using APRS. Is there way to trigger a SMS
text
Post by Steve Hanis
message or email via Internet monitoring when his APRS goes active or
moving?
Post by Steve Hanis
This would let me know he is mobile and available to chat or view his
location
Post by Steve Hanis
on a map. My apologies if the question is too simplistic for this
list, I am a newbie.
Thanks,
Steve
AB5ID
APRSCALLSIGN=AB4HB
SMTP_SERVER=smtp.ab5id.org
axlisten -a | grep -q " fm $APRSCALLSIGN to " && echo "An APRS packet
from $APRSCALLSIGN has been heard" > /tmp/aprs_message.txt && env
MAILRC=/dev/null from=$FROMEMAILADDRESS smtp=$SMTP_SERVER mailx -v -n -s
"Mail from APRS" $MYEMAILADDRESS < /tmp/aprs_message.txt && rm
-f /tmp/aprs_message.txt
Note that APRSCALLSIGN is case sensitive (unless you pass the -i option
to grep). Note that SMTP_SERVER needs to be defined according to your
actual smtp server.
Most importantly note that the above will send out an email message for
every packet that is received from APRSCALLSIGN and this might not be
desirable as there might be a lot of packets coming continuously (so you
might do things better with some extra code that checks whether a
message has already been sent recently, for example by creating a
temporary file each time a message is sent and then checking that the
timestamp of such file is not too recent before sending a new email
message).
(ax_emergency_listen) which is generally used to monitor APRS emergency
http://iz6rdb.trentalancia.com/en/aprs_igate.html
73,
Guido IZ6RDB
Eric Hansen
2011-02-11 14:40:38 UTC
Permalink
Getting an update about ham radio through a commercial service is in no way
prohibited as far as I know. The reverse is probably not true.
Post by John Gorkos
It "can" be done. It hasn't yet. What you're asking for is 4-6 hours of
custom coding (mostly for the web interface). Do you have a web server that
can host something like this? I've got a few hours this weekend I can use to
code this.
You want a web interface that allows you to enter a "monitored" call sign, and
an email address to send a message to when that position report from that
monitored callsign indicates movement. You want one message only. Then, time
passes and the monitored station stops moving. Once the station starts moving
again, you want another text message.
The SMS messages will have to be sent via email (i.e.
less
standard.
Do you have any programming skills you could apply to this? Web design,
maybe? I hate web design, but the back-end portion isn't too difficult.
This
request will probably irritate some people on this list, FWIW. Everyone has
an imaginary line they draw between "ham radio" and "commercial radio and
internet." Using your cellphone/commercial radio to get updates about APRS
happenings on ham radio is probably on the far side of some peoples' lines.
John Gorkos
AB0OO
Post by Steve Hanis
Thank you for your reply. I am looking for a way to trigger an email, IM
or
Post by Steve Hanis
SMS using existing web interfaces. A way to "push" an alert to me when I
am
Post by Steve Hanis
working or relaxing at home. Can this be done?
Kind Regards,
Steve
On Tue, Feb 8, 2011 at 10:41 AM, Guido Trentalancia
Post by Guido Trentalancia
Hello Steve !
Post by Steve Hanis
A friend and I just starting using APRS. Is there way to trigger a
SMS
Post by Steve Hanis
Post by Guido Trentalancia
text
Post by Steve Hanis
message or email via Internet monitoring when his APRS goes active or
moving?
Post by Steve Hanis
This would let me know he is mobile and available to chat or view his
location
Post by Steve Hanis
on a map. My apologies if the question is too simplistic for this
list, I am a newbie.
Thanks,
Steve
AB5ID
APRSCALLSIGN=AB4HB
SMTP_SERVER=smtp.ab5id.org
axlisten -a | grep -q " fm $APRSCALLSIGN to " && echo "An APRS packet
from $APRSCALLSIGN has been heard" > /tmp/aprs_message.txt && env
MAILRC=/dev/null from=$FROMEMAILADDRESS smtp=$SMTP_SERVER mailx -v -n
-s
Post by Steve Hanis
Post by Guido Trentalancia
"Mail from APRS" $MYEMAILADDRESS < /tmp/aprs_message.txt && rm
-f /tmp/aprs_message.txt
Note that APRSCALLSIGN is case sensitive (unless you pass the -i option
to grep). Note that SMTP_SERVER needs to be defined according to your
actual smtp server.
Most importantly note that the above will send out an email message for
every packet that is received from APRSCALLSIGN and this might not be
desirable as there might be a lot of packets coming continuously (so
you
Post by Steve Hanis
Post by Guido Trentalancia
might do things better with some extra code that checks whether a
message has already been sent recently, for example by creating a
temporary file each time a message is sent and then checking that the
timestamp of such file is not too recent before sending a new email
message).
(ax_emergency_listen) which is generally used to monitor APRS emergency
http://iz6rdb.trentalancia.com/en/aprs_igate.html
73,
Guido IZ6RDB
_______________________________________________
aprssig mailing list
https://www.tapr.org/cgi-bin/mailman/listinfo/aprssig
Steve Hanis
2011-02-11 14:51:24 UTC
Permalink
Hi John,

I have no intention of irritating anyone one the list, and apologize
if I have done so. I haven't written any programs since college back
in the early 90's and don't consider myself programmer, I use Linux
occasionally. I was made aware of this list after I posed this same
question on the APRS Yahoo group.

What I am looking for is something like what is described on
http://www.aprs.org/aprs-messaging.html:

"APRS Messages to Your Cellphone: . N3FLR Frank Rossi reports that he
uses "YahooAlert" to send all of his APRS messages to his cell phone.
First, Find-U has RSS output capability so he has his computer RSS
Feed Reader watching his Feed From FindU, and YahooAlert also
watching. After setting up Yahoo Alert for a pager, he uses his
phone's text e-mail address such as xxxxxxxxxx-EZ0Sl//K/***@public.gmane.org . Then you
just need to know what your phone's "e-mail address" to "text address"
is. You don't need mobile internet to do it this way, just text
ability. That will work with a text pager also. . When FINDU sees a
message to him on APRS it generates an RSS Feed that now Yahoo-Alerts
is watching. YahooAlerts then forwards the RSS Message as Text to his
cell phone. Although this is only one way communications, it still
lets him receive his APRS messages. He also says that you can set up
RSS feeds from FindU for weather alerts, or APRS users X amount of
miles from you. You can make the miles anything you want. He has not
tried that function yet."

I've tried this to no avail, but was wondering if anyone else had come
up with a different way to accomplish the same goal. I have no
commercial interest in this, I just want to be pinged on my cell phone
(SMS, Email, IM) when my friend goes mobile, or for special cases like
a high altitude balloon with a known call sign goes active on APRS.

Kind Regards,
Steve
It "can" be done.  It hasn't yet.  What you're asking for is 4-6 hours of
custom coding (mostly for the web interface).  Do you have a web server that
can host something like this?  I've got a few hours this weekend I can use to
code this.
You want a web interface that allows you to enter a "monitored" call sign, and
an email address to send a message to when that position report from that
monitored callsign indicates movement.  You want one message only.  Then, time
passes and the monitored station stops moving.  Once the station starts moving
again, you want another text message.
The SMS messages will have to be sent via email (i.e.
standard.
Do you have any programming skills you could apply to this?  Web design,
maybe?  I hate web design, but the back-end portion isn't too difficult.  This
request will probably irritate some people on this list, FWIW.  Everyone has
an imaginary line they draw between "ham radio" and "commercial radio and
internet."  Using your cellphone/commercial radio to get updates about APRS
happenings on ham radio is probably on the far side of some peoples' lines.
John Gorkos
AB0OO
Post by Steve Hanis
Thank you for your reply. I am looking for a way to trigger an email, IM or
SMS using existing web interfaces. A way to "push" an alert to me when I am
working or relaxing at home. Can this be done?
Kind Regards,
Steve
On Tue, Feb 8, 2011 at 10:41 AM, Guido Trentalancia
Post by Guido Trentalancia
Hello Steve !
A friend and I just starting using APRS.  Is there way to trigger a SMS
text
message or email via Internet monitoring when his APRS goes active or
moving?
This would let me know he is mobile and available to chat or view his
location
on a map. My apologies if the question is too simplistic for this
list, I am a newbie.
Thanks,
Steve
AB5ID
APRSCALLSIGN=AB4HB
SMTP_SERVER=smtp.ab5id.org
axlisten -a | grep -q " fm $APRSCALLSIGN to " && echo "An APRS packet
from $APRSCALLSIGN has been heard" > /tmp/aprs_message.txt && env
MAILRC=/dev/null from=$FROMEMAILADDRESS smtp=$SMTP_SERVER mailx -v -n -s
"Mail from APRS" $MYEMAILADDRESS < /tmp/aprs_message.txt && rm
-f /tmp/aprs_message.txt
Note that APRSCALLSIGN is case sensitive (unless you pass the -i option
to grep). Note that SMTP_SERVER needs to be defined according to your
actual smtp server.
Most importantly note that the above will send out an email message for
every packet that is received from APRSCALLSIGN and this might not be
desirable as there might be a lot of packets coming continuously (so you
might do things better with some extra code that checks whether a
message has already been sent recently, for example by creating a
temporary file each time a message is sent and then checking that the
timestamp of such file is not too recent before sending a new email
message).
(ax_emergency_listen) which is generally used to monitor APRS emergency
http://iz6rdb.trentalancia.com/en/aprs_igate.html
73,
Guido IZ6RDB
John Gorkos
2011-02-11 20:53:25 UTC
Permalink
I'm not irritated, just saying. On the other hand, Bob seems to like it, so
it's good enough for me (I'll freely admit to group-think and "me-too" when it
comes to Bob).
let me gin up some code this weekend and I'll bring it back to present on
Monday. I'll use the same sourceforge repository as AVRS for the code, and
all code will be open source/GPL3. Check there for updates. I'm also working
on the beginnings of a Better Internet Gateway (the notorious B.I.G.) and that
code will be mixed in there.
AVRS is at http://sourceforge.net/projects/avrs

I'll try to work in some of the other suggestions, and take a look at the
Yahoo stuff mentioned.

John Gorkos
Post by Steve Hanis
Hi John,
I have no intention of irritating anyone one the list, and apologize
if I have done so. I haven't written any programs since college back
in the early 90's and don't consider myself programmer, I use Linux
occasionally. I was made aware of this list after I posed this same
question on the APRS Yahoo group.
What I am looking for is something like what is described on
"APRS Messages to Your Cellphone: . N3FLR Frank Rossi reports that he
uses "YahooAlert" to send all of his APRS messages to his cell phone.
First, Find-U has RSS output capability so he has his computer RSS
Feed Reader watching his Feed From FindU, and YahooAlert also
watching. After setting up Yahoo Alert for a pager, he uses his
just need to know what your phone's "e-mail address" to "text address"
is. You don't need mobile internet to do it this way, just text
ability. That will work with a text pager also. . When FINDU sees a
message to him on APRS it generates an RSS Feed that now Yahoo-Alerts
is watching. YahooAlerts then forwards the RSS Message as Text to his
cell phone. Although this is only one way communications, it still
lets him receive his APRS messages. He also says that you can set up
RSS feeds from FindU for weather alerts, or APRS users X amount of
miles from you. You can make the miles anything you want. He has not
tried that function yet."
I've tried this to no avail, but was wondering if anyone else had come
up with a different way to accomplish the same goal. I have no
commercial interest in this, I just want to be pinged on my cell phone
(SMS, Email, IM) when my friend goes mobile, or for special cases like
a high altitude balloon with a known call sign goes active on APRS.
Kind Regards,
Steve
Post by John Gorkos
It "can" be done. It hasn't yet. What you're asking for is 4-6 hours of
custom coding (mostly for the web interface). Do you have a web server
that can host something like this? I've got a few hours this weekend I
can use to code this.
You want a web interface that allows you to enter a "monitored" call
sign, and an email address to send a message to when that position
report from that monitored callsign indicates movement. You want one
message only. Then, time passes and the monitored station stops moving.
Once the station starts moving again, you want another text message.
The SMS messages will have to be sent via email (i.e.
less standard.
Do you have any programming skills you could apply to this? Web design,
maybe? I hate web design, but the back-end portion isn't too difficult.
This request will probably irritate some people on this list, FWIW.
Everyone has an imaginary line they draw between "ham radio" and
"commercial radio and internet." Using your cellphone/commercial radio
to get updates about APRS happenings on ham radio is probably on the far
side of some peoples' lines.
John Gorkos
AB0OO
Post by Steve Hanis
Thank you for your reply. I am looking for a way to trigger an email,
IM or SMS using existing web interfaces. A way to "push" an alert to
me when I am working or relaxing at home. Can this be done?
Kind Regards,
Steve
On Tue, Feb 8, 2011 at 10:41 AM, Guido Trentalancia
Post by Guido Trentalancia
Hello Steve !
Post by Steve Hanis
A friend and I just starting using APRS. Is there way to trigger a SMS
text
Post by Steve Hanis
message or email via Internet monitoring when his APRS goes active or
moving?
Post by Steve Hanis
This would let me know he is mobile and available to chat or view his
location
Post by Steve Hanis
on a map. My apologies if the question is too simplistic for this
list, I am a newbie.
Thanks,
Steve
AB5ID
APRSCALLSIGN=AB4HB
SMTP_SERVER=smtp.ab5id.org
axlisten -a | grep -q " fm $APRSCALLSIGN to " && echo "An APRS packet
from $APRSCALLSIGN has been heard" > /tmp/aprs_message.txt && env
MAILRC=/dev/null from=$FROMEMAILADDRESS smtp=$SMTP_SERVER mailx -v -n
-s "Mail from APRS" $MYEMAILADDRESS < /tmp/aprs_message.txt && rm -f
/tmp/aprs_message.txt
Note that APRSCALLSIGN is case sensitive (unless you pass the -i
option to grep). Note that SMTP_SERVER needs to be defined according
to your actual smtp server.
Most importantly note that the above will send out an email message
for every packet that is received from APRSCALLSIGN and this might
not be desirable as there might be a lot of packets coming
continuously (so you might do things better with some extra code
that checks whether a message has already been sent recently, for
example by creating a temporary file each time a message is sent and
then checking that the timestamp of such file is not too recent
before sending a new email message).
(ax_emergency_listen) which is generally used to monitor APRS
emergency packets and adapt it to your needs (by modifying the C
http://iz6rdb.trentalancia.com/en/aprs_igate.html
73,
Guido IZ6RDB
John Gorkos
2011-02-16 04:22:40 UTC
Permalink
Post by Steve Hanis
Hi John,
I have no intention of irritating anyone one the list, and apologize
if I have done so. I haven't written any programs since college back
in the early 90's and don't consider myself programmer, I use Linux
occasionally. I was made aware of this list after I posed this same
question on the APRS Yahoo group.
What I am looking for is something like what is described on
"APRS Messages to Your Cellphone: . N3FLR Frank Rossi reports that he
uses "YahooAlert" to send all of his APRS messages to his cell phone.
First, Find-U has RSS output capability so he has his computer RSS
Feed Reader watching his Feed From FindU, and YahooAlert also
watching. After setting up Yahoo Alert for a pager, he uses his
just need to know what your phone's "e-mail address" to "text address"
is. You don't need mobile internet to do it this way, just text
ability. That will work with a text pager also. . When FINDU sees a
message to him on APRS it generates an RSS Feed that now Yahoo-Alerts
is watching. YahooAlerts then forwards the RSS Message as Text to his
cell phone. Although this is only one way communications, it still
lets him receive his APRS messages. He also says that you can set up
RSS feeds from FindU for weather alerts, or APRS users X amount of
miles from you. You can make the miles anything you want. He has not
tried that function yet."
I've tried this to no avail, but was wondering if anyone else had come
up with a different way to accomplish the same goal. I have no
commercial interest in this, I just want to be pinged on my cell phone
(SMS, Email, IM) when my friend goes mobile, or for special cases like
a high altitude balloon with a known call sign goes active on APRS.
Kind Regards,
Steve
Post by John Gorkos
It "can" be done. It hasn't yet. What you're asking for is 4-6 hours of
custom coding (mostly for the web interface). Do you have a web server
that can host something like this? I've got a few hours this weekend I
can use to code this.
You want a web interface that allows you to enter a "monitored" call
sign, and an email address to send a message to when that position
report from that monitored callsign indicates movement. You want one
message only. Then, time passes and the monitored station stops moving.
Once the station starts moving again, you want another text message.
The SMS messages will have to be sent via email (i.e.
less standard.
Do you have any programming skills you could apply to this? Web design,
maybe? I hate web design, but the back-end portion isn't too difficult.
This request will probably irritate some people on this list, FWIW.
Everyone has an imaginary line they draw between "ham radio" and
"commercial radio and internet." Using your cellphone/commercial radio
to get updates about APRS happenings on ham radio is probably on the far
side of some peoples' lines.
John Gorkos
AB0OO
Post by Steve Hanis
Thank you for your reply. I am looking for a way to trigger an email,
IM or SMS using existing web interfaces. A way to "push" an alert to
me when I am working or relaxing at home. Can this be done?
Kind Regards,
Steve
On Tue, Feb 8, 2011 at 10:41 AM, Guido Trentalancia
Post by Guido Trentalancia
Hello Steve !
Post by Steve Hanis
A friend and I just starting using APRS. Is there way to trigger a SMS
text
Post by Steve Hanis
message or email via Internet monitoring when his APRS goes active or
moving?
Post by Steve Hanis
This would let me know he is mobile and available to chat or view his
location
Post by Steve Hanis
on a map. My apologies if the question is too simplistic for this
list, I am a newbie.
Thanks,
Steve
AB5ID
APRSCALLSIGN=AB4HB
SMTP_SERVER=smtp.ab5id.org
axlisten -a | grep -q " fm $APRSCALLSIGN to " && echo "An APRS packet
from $APRSCALLSIGN has been heard" > /tmp/aprs_message.txt && env
MAILRC=/dev/null from=$FROMEMAILADDRESS smtp=$SMTP_SERVER mailx -v -n
-s "Mail from APRS" $MYEMAILADDRESS < /tmp/aprs_message.txt && rm -f
/tmp/aprs_message.txt
Note that APRSCALLSIGN is case sensitive (unless you pass the -i
option to grep). Note that SMTP_SERVER needs to be defined according
to your actual smtp server.
Most importantly note that the above will send out an email message
for every packet that is received from APRSCALLSIGN and this might
not be desirable as there might be a lot of packets coming
continuously (so you might do things better with some extra code
that checks whether a message has already been sent recently, for
example by creating a temporary file each time a message is sent and
then checking that the timestamp of such file is not too recent
before sending a new email message).
(ax_emergency_listen) which is generally used to monitor APRS
emergency packets and adapt it to your needs (by modifying the C
http://iz6rdb.trentalancia.com/en/aprs_igate.html
73,
Guido IZ6RDB
Believe it or not, I've not forgotten about this. I've spent about 10 hours
so far doing design and outline work on the code. I've also had to hunt down
some extremely nasty off-by-one bugs in the Java AVRS position parsers. Now
that I'm getting reliable, accurate positions from all 4 types of position
packets (compressed, uncompressed, MICe, and raw NMEA) I can move on to
alarms.
In the AVRS sourceforge repo, there is a new package called Wedjet
(net.ab0oo.aprs.wedjet) that contains some rudimentary code for monitoring
positions. The alerting portion will come later. I'm using a Spring-injected
Jetty container as a base web-server, so the whole thing can be self-
contained.
Give me another few days and I'll have something you can play with. Once we
reach a stable beta point, we'll look for hosting options.

John Gorkos
AB0OO
Steve Hanis
2011-02-16 05:19:04 UTC
Permalink
Post by Steve Hanis
Hi John,
I have no intention of irritating anyone one the list, and apologize
if I have done so. I haven't written any programs since college back
in the early 90's and don't consider myself programmer, I use Linux
occasionally. I was made aware of this list after I posed this same
question on the APRS Yahoo group.
What I am looking for is something like what is described on
"APRS Messages to Your Cellphone: . N3FLR Frank Rossi reports that he
uses "YahooAlert" to send all of his APRS messages to his cell phone.
First, Find-U has RSS output capability so he has his computer RSS
Feed Reader watching his Feed From FindU, and YahooAlert also
watching. After setting up Yahoo Alert for a pager, he uses his
just need to know what your phone's "e-mail address" to "text address"
is. You don't need mobile internet to do it this way, just text
ability. That will work with a text pager also. . When FINDU sees a
message to him on APRS it generates an RSS Feed that now Yahoo-Alerts
is watching. YahooAlerts then forwards the RSS Message as Text to his
cell phone. Although this is only one way communications, it still
lets him receive his APRS messages. He also says that you can set up
RSS feeds from FindU for weather alerts, or APRS users X amount of
miles from you. You can make the miles anything you want. He has not
tried that function yet."
I've tried this to no avail, but was wondering if anyone else had come
up with a different way to accomplish the same goal. I have no
commercial interest in this, I just want to be pinged on my cell phone
(SMS, Email, IM) when my friend goes mobile, or for special cases like
a high altitude balloon with a known call sign goes active on APRS.
Kind Regards,
Steve
It "can" be done.  It hasn't yet.  What you're asking for is 4-6 hours of
custom coding (mostly for the web interface).  Do you have a web server
that can host something like this?  I've got a few hours this weekend I
can use to code this.
You want a web interface that allows you to enter a "monitored" call
sign, and an email address to send a message to when that position
report from that monitored callsign indicates movement.  You want one
message only.  Then, time passes and the monitored station stops moving.
 Once the station starts moving again, you want another text message.
The SMS messages will have to be sent via email (i.e.
less standard.
Do you have any programming skills you could apply to this?  Web design,
maybe?  I hate web design, but the back-end portion isn't too difficult.
 This request will probably irritate some people on this list, FWIW.
 Everyone has an imaginary line they draw between "ham radio" and
"commercial radio and internet."  Using your cellphone/commercial radio
to get updates about APRS happenings on ham radio is probably on the far
side of some peoples' lines.
John Gorkos
AB0OO
Post by Steve Hanis
Thank you for your reply. I am looking for a way to trigger an email,
IM or SMS using existing web interfaces. A way to "push" an alert to
me when I am working or relaxing at home. Can this be done?
Kind Regards,
Steve
On Tue, Feb 8, 2011 at 10:41 AM, Guido Trentalancia
Post by Guido Trentalancia
Hello Steve !
A friend and I just starting using APRS.  Is there way to trigger a
SMS
text
message or email via Internet monitoring when his APRS goes active or
moving?
This would let me know he is mobile and available to chat or view his
location
on a map. My apologies if the question is too simplistic for this
list, I am a newbie.
Thanks,
Steve
AB5ID
APRSCALLSIGN=AB4HB
SMTP_SERVER=smtp.ab5id.org
axlisten -a | grep -q " fm $APRSCALLSIGN to " && echo "An APRS packet
from $APRSCALLSIGN has been heard" > /tmp/aprs_message.txt && env
MAILRC=/dev/null from=$FROMEMAILADDRESS smtp=$SMTP_SERVER mailx -v -n
-s "Mail from APRS" $MYEMAILADDRESS < /tmp/aprs_message.txt && rm -f
/tmp/aprs_message.txt
Note that APRSCALLSIGN is case sensitive (unless you pass the -i
option to grep). Note that SMTP_SERVER needs to be defined according
to your actual smtp server.
Most importantly note that the above will send out an email message
for every packet that is received from APRSCALLSIGN and this might
not be desirable as there might be a lot of packets coming
continuously (so you might do things better with some extra code
that checks whether a message has already been sent recently, for
example by creating a temporary file each time a message is sent and
then checking that the timestamp of such file is not too recent
before sending a new email message).
(ax_emergency_listen) which is generally used to monitor APRS
emergency packets and adapt it to your needs (by modifying the C
http://iz6rdb.trentalancia.com/en/aprs_igate.html
73,
Guido IZ6RDB
Believe it or not, I've not forgotten about this.  I've spent about 10 hours
so far doing design and outline work on the code.  I've also had to hunt down
some extremely nasty off-by-one bugs in the Java AVRS position parsers.  Now
that I'm getting reliable, accurate positions from all 4 types of position
packets (compressed, uncompressed, MICe, and raw NMEA) I can move on to
alarms.
In the AVRS sourceforge repo, there is a new package called Wedjet
(net.ab0oo.aprs.wedjet) that contains some rudimentary code for monitoring
positions.  The alerting portion will come later.  I'm using a Spring-injected
Jetty container as a base web-server, so the whole thing can be self-
contained.
Give me another few days and I'll have something you can play with.  Once we
reach a stable beta point, we'll look for hosting options.
John Gorkos
AB0OO
John,

A sincere thank you. I had no idea how much work would be involved.

Kind Regards,
Steve
AB5ID
Rich Mulvey
2011-02-16 17:09:38 UTC
Permalink
I hadn't followed this topic before, but if you have a machine you can run
perl on, this is trivially easy. I just whipped up this script and tested
it. Replace the callsign, recipient, and sender addresses, and run it
periodically.

It will store the last position found for the callsign, then, then next time
it runs, if the lat/long differ, it will send an email. Most cell providers
provide an email gateway to allow you to email SMS messages to someone.

Obviously you'd want to surpress position changes within some window ( i.e.,
less than 100 feet ). Plus probably some more error checking. ;-)

---
#!/usr/bin/perl

use strict;
use Ham::APRS::LastPacket;
use Storable;
use Email::Sender::Simple qw(sendmail);
use Email::Simple;
use Email::Simple::Creator;


my $callsign = "MYCALLSIGN";
my $recipient = "blah\@blah.com";
my $sender = "myposition\@blah.com";
my %lastPosition;

my $aprs = Ham::APRS::LastPacket->new;
$aprs->set_callsign($callsign);

# Load the last position, if we've stored it
if( -r $callsign ) {
%lastPosition = %{retrieve $callsign};
}


my $packet = $aprs->get_data;
die $aprs->error_message if $aprs->is_error;

# get the position report
print "$callsign is at
$packet->{position}->{latitude}->{degrees},$packet->{position}->{longitude}->{degrees}\n";

# If the position has changed, send out an email
if( ( $lastPosition{latitude} != $packet->{position}->{latitude}->{degrees}
) ||
( $lastPosition{'longitude'} !=
$packet->{position}->{longitude}->{degrees} ) ) {
sendEmail();
}

# Save the position
$lastPosition{'latitude'} = $packet->{position}->{latitude}->{degrees};
$lastPosition{'longitude'} = $packet->{position}->{longitude}->{degrees};
store \%lastPosition, $callsign;


sub sendEmail {
print "Sending a movement report\n";

my $email = Email::Simple->create(
header => [
To => $recipient,
From => $sender,
Subject => "$callsign position report",
],
body => "$callsign has moved",
);

sendmail($email);
}
Post by John Gorkos
Post by John Gorkos
Post by Steve Hanis
Hi John,
I have no intention of irritating anyone one the list, and apologize
if I have done so. I haven't written any programs since college back
in the early 90's and don't consider myself programmer, I use Linux
occasionally. I was made aware of this list after I posed this same
question on the APRS Yahoo group.
What I am looking for is something like what is described on
"APRS Messages to Your Cellphone: . N3FLR Frank Rossi reports that he
uses "YahooAlert" to send all of his APRS messages to his cell phone.
First, Find-U has RSS output capability so he has his computer RSS
Feed Reader watching his Feed From FindU, and YahooAlert also
watching. After setting up Yahoo Alert for a pager, he uses his
just need to know what your phone's "e-mail address" to "text address"
is. You don't need mobile internet to do it this way, just text
ability. That will work with a text pager also. . When FINDU sees a
message to him on APRS it generates an RSS Feed that now Yahoo-Alerts
is watching. YahooAlerts then forwards the RSS Message as Text to his
cell phone. Although this is only one way communications, it still
lets him receive his APRS messages. He also says that you can set up
RSS feeds from FindU for weather alerts, or APRS users X amount of
miles from you. You can make the miles anything you want. He has not
tried that function yet."
I've tried this to no avail, but was wondering if anyone else had come
up with a different way to accomplish the same goal. I have no
commercial interest in this, I just want to be pinged on my cell phone
(SMS, Email, IM) when my friend goes mobile, or for special cases like
a high altitude balloon with a known call sign goes active on APRS.
Kind Regards,
Steve
Post by John Gorkos
It "can" be done. It hasn't yet. What you're asking for is 4-6
hours of
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
custom coding (mostly for the web interface). Do you have a web
server
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
that can host something like this? I've got a few hours this weekend
I
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
can use to code this.
You want a web interface that allows you to enter a "monitored" call
sign, and an email address to send a message to when that position
report from that monitored callsign indicates movement. You want one
message only. Then, time passes and the monitored station stops
moving.
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Once the station starts moving again, you want another text message.
The SMS messages will have to be sent via email (i.e.
and
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
less standard.
Do you have any programming skills you could apply to this? Web
design,
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
maybe? I hate web design, but the back-end portion isn't too
difficult.
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
This request will probably irritate some people on this list, FWIW.
Everyone has an imaginary line they draw between "ham radio" and
"commercial radio and internet." Using your cellphone/commercial
radio
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
to get updates about APRS happenings on ham radio is probably on the
far
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
side of some peoples' lines.
John Gorkos
AB0OO
Post by Steve Hanis
Thank you for your reply. I am looking for a way to trigger an
email,
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
IM or SMS using existing web interfaces. A way to "push" an alert
to
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
me when I am working or relaxing at home. Can this be done?
Kind Regards,
Steve
On Tue, Feb 8, 2011 at 10:41 AM, Guido Trentalancia
Post by Guido Trentalancia
Hello Steve !
Post by Steve Hanis
A friend and I just starting using APRS. Is there way to
trigger a
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
Post by Steve Hanis
SMS
text
Post by Steve Hanis
message or email via Internet monitoring when his APRS goes
active
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
Post by Steve Hanis
or
moving?
Post by Steve Hanis
This would let me know he is mobile and available to chat or
view
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
Post by Steve Hanis
his
location
Post by Steve Hanis
on a map. My apologies if the question is too simplistic for
this
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
Post by Steve Hanis
list, I am a newbie.
Thanks,
Steve
AB5ID
APRSCALLSIGN=AB4HB
SMTP_SERVER=smtp.ab5id.org
axlisten -a | grep -q " fm $APRSCALLSIGN to " && echo "An APRS
packet
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
from $APRSCALLSIGN has been heard" > /tmp/aprs_message.txt && env
MAILRC=/dev/null from=$FROMEMAILADDRESS smtp=$SMTP_SERVER mailx
-v -n
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
-s "Mail from APRS" $MYEMAILADDRESS < /tmp/aprs_message.txt && rm
-f
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
/tmp/aprs_message.txt
Note that APRSCALLSIGN is case sensitive (unless you pass the -i
option to grep). Note that SMTP_SERVER needs to be defined
according
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
to your actual smtp server.
Most importantly note that the above will send out an email
message
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
for every packet that is received from APRSCALLSIGN and this
might
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
not be desirable as there might be a lot of packets coming
continuously (so you might do things better with some extra code
that checks whether a message has already been sent recently, for
example by creating a temporary file each time a message is sent
and
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
then checking that the timestamp of such file is not too recent
before sending a new email message).
(ax_emergency_listen) which is generally used to monitor APRS
emergency packets and adapt it to your needs (by modifying the C
http://iz6rdb.trentalancia.com/en/aprs_igate.html
73,
Guido IZ6RDB
Believe it or not, I've not forgotten about this. I've spent about 10
hours
Post by John Gorkos
so far doing design and outline work on the code. I've also had to hunt
down
Post by John Gorkos
some extremely nasty off-by-one bugs in the Java AVRS position parsers.
Now
Post by John Gorkos
that I'm getting reliable, accurate positions from all 4 types of
position
Post by John Gorkos
packets (compressed, uncompressed, MICe, and raw NMEA) I can move on to
alarms.
In the AVRS sourceforge repo, there is a new package called Wedjet
(net.ab0oo.aprs.wedjet) that contains some rudimentary code for
monitoring
Post by John Gorkos
positions. The alerting portion will come later. I'm using a
Spring-injected
Post by John Gorkos
Jetty container as a base web-server, so the whole thing can be self-
contained.
Give me another few days and I'll have something you can play with. Once
we
Post by John Gorkos
reach a stable beta point, we'll look for hosting options.
John Gorkos
AB0OO
John,
A sincere thank you. I had no idea how much work would be involved.
Kind Regards,
Steve
AB5ID
_______________________________________________
aprssig mailing list
https://www.tapr.org/cgi-bin/mailman/listinfo/aprssig
--
rich-c6a9rF0ZqvjLiC/***@public.gmane.org
John Gorkos
2011-02-16 22:54:50 UTC
Permalink
I agree the initial code effort is trivially easy, and this does indeed work.
The goal I was shooting for was a little beyond this. Here's the requirements
doc for what I'm aiming for:

* work for multiple users, with multiple notification paths for each.
Specifically, provide multiple email addresses and the option for an APRS
message sent to a specific call sign.

* allow for both point and area zones of interest, i.e. "within 500 meters of
point x,y", or "incusion into zone defined by "x,y (NE) - x,y (SW)"

* differentiate between "approaching" and "departing" (i.e. "AB0OO is
approaching home" shouldn't trigger when I leave the house in the morning to
go to work)

* set up time windows for various notifications, and reset-times that prevent
rapid-fire messaging (unfortunately, your Perl script will page me at 0200,
when I really don't want to be woken up).

The design of a set of business rules, a method for storing those rules, and
the logic to execute those rules requires some framework and some support code
to go with it. On top of that, the user interface needs to be something more
than "edit this script with your hardcoded information". Something more along
the lines of "go to this web page, register as a user, select call signs
you're interested in, select the times and other business rules you want
applied to those callsigns, send a test message, etc" is what I'm shooting
for. Finally, in the end, it needs to be documented (which your Perl is,
kudos to you) and published in a source repository so people 5 years from now
can find it, modify it, extend it, or whatever. There's nothing more
frustrating than having a new guy join the APRS sig 10 months from now and ask
this same question, and someone shoot back "yeah, there was a Perl script
posted a few months back that does that. Search the archives."

On the other hand, quick and dirty gets the job done. It's just unfortunate
that so many good ideas die at the "quick and dirty, I scratched my itch
you're on your own for anything else" stage.

Imagine the value of being part of a road race that is supported by APRS. You
can ask the race director for his cell phone number, and then set him up to
recieve a text message whenever the LEAD, TRAIL, or SAG tracker passes any
number of specific points on the course...

Thanks for proving it can be done in less than 60 lines of Perl, though. I
think all 3 of Larry Wall's "Three Virtues of a Programmer" are well
represented here.

John Gorkos
Post by Rich Mulvey
I hadn't followed this topic before, but if you have a machine you can run
perl on, this is trivially easy. I just whipped up this script and tested
it. Replace the callsign, recipient, and sender addresses, and run it
periodically.
It will store the last position found for the callsign, then, then next
time it runs, if the lat/long differ, it will send an email. Most cell
providers provide an email gateway to allow you to email SMS messages to
someone.
Obviously you'd want to surpress position changes within some window (
i.e., less than 100 feet ). Plus probably some more error checking. ;-)
---
#!/usr/bin/perl
use strict;
use Ham::APRS::LastPacket;
use Storable;
use Email::Sender::Simple qw(sendmail);
use Email::Simple;
use Email::Simple::Creator;
my $callsign = "MYCALLSIGN";
my %lastPosition;
my $aprs = Ham::APRS::LastPacket->new;
$aprs->set_callsign($callsign);
# Load the last position, if we've stored it
if( -r $callsign ) {
%lastPosition = %{retrieve $callsign};
}
my $packet = $aprs->get_data;
die $aprs->error_message if $aprs->is_error;
# get the position report
print "$callsign is at
$packet->{position}->{latitude}->{degrees},$packet->{position}->{longitude}
->{degrees}\n";
# If the position has changed, send out an email
if( ( $lastPosition{latitude} != $packet->{position}->{latitude}->{degrees}
) ||
( $lastPosition{'longitude'} !=
$packet->{position}->{longitude}->{degrees} ) ) {
sendEmail();
}
# Save the position
$lastPosition{'latitude'} = $packet->{position}->{latitude}->{degrees};
$lastPosition{'longitude'} = $packet->{position}->{longitude}->{degrees};
store \%lastPosition, $callsign;
sub sendEmail {
print "Sending a movement report\n";
my $email = Email::Simple->create(
header => [
To => $recipient,
From => $sender,
Subject => "$callsign position report",
],
body => "$callsign has moved",
);
sendmail($email);
}
Post by John Gorkos
Post by John Gorkos
Post by Steve Hanis
Hi John,
I have no intention of irritating anyone one the list, and apologize
if I have done so. I haven't written any programs since college back
in the early 90's and don't consider myself programmer, I use Linux
occasionally. I was made aware of this list after I posed this same
question on the APRS Yahoo group.
What I am looking for is something like what is described on
"APRS Messages to Your Cellphone: . N3FLR Frank Rossi reports that he
uses "YahooAlert" to send all of his APRS messages to his cell phone.
First, Find-U has RSS output capability so he has his computer RSS
Feed Reader watching his Feed From FindU, and YahooAlert also
watching. After setting up Yahoo Alert for a pager, he uses his
just need to know what your phone's "e-mail address" to "text
address" is. You don't need mobile internet to do it this way, just
text ability. That will work with a text pager also. . When FINDU
sees a message to him on APRS it generates an RSS Feed that now
Yahoo-Alerts is watching. YahooAlerts then forwards the RSS Message
as Text to his cell phone. Although this is only one way
communications, it still lets him receive his APRS messages. He also
says that you can set up RSS feeds from FindU for weather alerts, or
APRS users X amount of miles from you. You can make the miles
anything you want. He has not tried that function yet."
I've tried this to no avail, but was wondering if anyone else had
come up with a different way to accomplish the same goal. I have no
commercial interest in this, I just want to be pinged on my cell
phone (SMS, Email, IM) when my friend goes mobile, or for special
cases like a high altitude balloon with a known call sign goes
active on APRS.
Kind Regards,
Steve
Post by John Gorkos
It "can" be done. It hasn't yet. What you're asking for is 4-6
hours of
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
custom coding (mostly for the web interface). Do you have a web
server
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
that can host something like this? I've got a few hours this weekend
I
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
can use to code this.
You want a web interface that allows you to enter a "monitored"
call sign, and an email address to send a message to when that
position report from that monitored callsign indicates movement.
You want one message only. Then, time passes and the monitored
station stops
moving.
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Once the station starts moving again, you want another text message.
The SMS messages will have to be sent via email (i.e.
and
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
less standard.
Do you have any programming skills you could apply to this? Web
design,
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
maybe? I hate web design, but the back-end portion isn't too
difficult.
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
This request will probably irritate some people on this list,
FWIW. Everyone has an imaginary line they draw between "ham
radio" and
"commercial radio and internet." Using your cellphone/commercial
radio
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
to get updates about APRS happenings on ham radio is probably on the
far
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
side of some peoples' lines.
John Gorkos
AB0OO
Post by Steve Hanis
Thank you for your reply. I am looking for a way to trigger an
email,
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
IM or SMS using existing web interfaces. A way to "push" an alert
to
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
me when I am working or relaxing at home. Can this be done?
Kind Regards,
Steve
On Tue, Feb 8, 2011 at 10:41 AM, Guido Trentalancia
Post by Guido Trentalancia
Hello Steve !
Post by Steve Hanis
A friend and I just starting using APRS. Is there way to
trigger a
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
Post by Steve Hanis
SMS
text
Post by Steve Hanis
message or email via Internet monitoring when his APRS goes
active
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
Post by Steve Hanis
or
moving?
Post by Steve Hanis
This would let me know he is mobile and available to chat or
view
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
Post by Steve Hanis
his
location
Post by Steve Hanis
on a map. My apologies if the question is too simplistic for
this
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
Post by Steve Hanis
list, I am a newbie.
Thanks,
Steve
AB5ID
Suppose your friend has call AB4HB, then you could use
APRSCALLSIGN=AB4HB
SMTP_SERVER=smtp.ab5id.org
axlisten -a | grep -q " fm $APRSCALLSIGN to " && echo "An APRS
packet
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
from $APRSCALLSIGN has been heard" > /tmp/aprs_message.txt &&
env MAILRC=/dev/null from=$FROMEMAILADDRESS smtp=$SMTP_SERVER
mailx
-v -n
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
-s "Mail from APRS" $MYEMAILADDRESS < /tmp/aprs_message.txt && rm
-f
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
/tmp/aprs_message.txt
Note that APRSCALLSIGN is case sensitive (unless you pass the
-i option to grep). Note that SMTP_SERVER needs to be defined
according
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
to your actual smtp server.
Most importantly note that the above will send out an email
message
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
for every packet that is received from APRSCALLSIGN and this
might
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
not be desirable as there might be a lot of packets coming
continuously (so you might do things better with some extra
code that checks whether a message has already been sent
recently, for example by creating a temporary file each time a
message is sent
and
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
then checking that the timestamp of such file is not too recent
before sending a new email message).
(ax_emergency_listen) which is generally used to monitor APRS
emergency packets and adapt it to your needs (by modifying the
http://iz6rdb.trentalancia.com/en/aprs_igate.html
73,
Guido IZ6RDB
Believe it or not, I've not forgotten about this. I've spent about 10
hours
Post by John Gorkos
so far doing design and outline work on the code. I've also had to hunt
down
Post by John Gorkos
some extremely nasty off-by-one bugs in the Java AVRS position parsers.
Now
Post by John Gorkos
that I'm getting reliable, accurate positions from all 4 types of
position
Post by John Gorkos
packets (compressed, uncompressed, MICe, and raw NMEA) I can move on to
alarms.
In the AVRS sourceforge repo, there is a new package called Wedjet
(net.ab0oo.aprs.wedjet) that contains some rudimentary code for
monitoring
Post by John Gorkos
positions. The alerting portion will come later. I'm using a
Spring-injected
Post by John Gorkos
Jetty container as a base web-server, so the whole thing can be self-
contained.
Give me another few days and I'll have something you can play with.
Once
we
Post by John Gorkos
reach a stable beta point, we'll look for hosting options.
John Gorkos
AB0OO
John,
A sincere thank you. I had no idea how much work would be involved.
Kind Regards,
Steve
AB5ID
_______________________________________________
aprssig mailing list
https://www.tapr.org/cgi-bin/mailman/listinfo/aprssig
Wes Johnston, AI4PX
2011-02-17 00:59:57 UTC
Permalink
I hope it won't send me a txt every time a position happens within the
bounding box?? Perhaps an 80 minute delay (to coincide with the min time to
orbit the earth for LEOs).

Wes
---
"Language shapes the way we think, and determines what we can think about."
-- B. L. Whorf
Post by John Gorkos
I agree the initial code effort is trivially easy, and this does indeed work.
The goal I was shooting for was a little beyond this. Here's the requirements
* work for multiple users, with multiple notification paths for each.
Specifically, provide multiple email addresses and the option for an APRS
message sent to a specific call sign.
* allow for both point and area zones of interest, i.e. "within 500 meters of
point x,y", or "incusion into zone defined by "x,y (NE) - x,y (SW)"
* differentiate between "approaching" and "departing" (i.e. "AB0OO is
approaching home" shouldn't trigger when I leave the house in the morning to
go to work)
* set up time windows for various notifications, and reset-times that prevent
rapid-fire messaging (unfortunately, your Perl script will page me at 0200,
when I really don't want to be woken up).
The design of a set of business rules, a method for storing those rules, and
the logic to execute those rules requires some framework and some support code
to go with it. On top of that, the user interface needs to be something more
than "edit this script with your hardcoded information". Something more along
the lines of "go to this web page, register as a user, select call signs
you're interested in, select the times and other business rules you want
applied to those callsigns, send a test message, etc" is what I'm shooting
for. Finally, in the end, it needs to be documented (which your Perl is,
kudos to you) and published in a source repository so people 5 years from now
can find it, modify it, extend it, or whatever. There's nothing more
frustrating than having a new guy join the APRS sig 10 months from now and ask
this same question, and someone shoot back "yeah, there was a Perl script
posted a few months back that does that. Search the archives."
On the other hand, quick and dirty gets the job done. It's just unfortunate
that so many good ideas die at the "quick and dirty, I scratched my itch
you're on your own for anything else" stage.
Imagine the value of being part of a road race that is supported by APRS.
You
can ask the race director for his cell phone number, and then set him up to
recieve a text message whenever the LEAD, TRAIL, or SAG tracker passes any
number of specific points on the course...
Thanks for proving it can be done in less than 60 lines of Perl, though. I
think all 3 of Larry Wall's "Three Virtues of a Programmer" are well
represented here.
John Gorkos
Post by Rich Mulvey
I hadn't followed this topic before, but if you have a machine you can
run
Post by Rich Mulvey
perl on, this is trivially easy. I just whipped up this script and
tested
Post by Rich Mulvey
it. Replace the callsign, recipient, and sender addresses, and run it
periodically.
It will store the last position found for the callsign, then, then next
time it runs, if the lat/long differ, it will send an email. Most cell
providers provide an email gateway to allow you to email SMS messages to
someone.
Obviously you'd want to surpress position changes within some window (
i.e., less than 100 feet ). Plus probably some more error checking. ;-)
---
#!/usr/bin/perl
use strict;
use Ham::APRS::LastPacket;
use Storable;
use Email::Sender::Simple qw(sendmail);
use Email::Simple;
use Email::Simple::Creator;
my $callsign = "MYCALLSIGN";
my %lastPosition;
my $aprs = Ham::APRS::LastPacket->new;
$aprs->set_callsign($callsign);
# Load the last position, if we've stored it
if( -r $callsign ) {
%lastPosition = %{retrieve $callsign};
}
my $packet = $aprs->get_data;
die $aprs->error_message if $aprs->is_error;
# get the position report
print "$callsign is at
$packet->{position}->{latitude}->{degrees},$packet->{position}->{longitude}
Post by Rich Mulvey
->{degrees}\n";
# If the position has changed, send out an email
if( ( $lastPosition{latitude} !=
$packet->{position}->{latitude}->{degrees}
Post by Rich Mulvey
) ||
( $lastPosition{'longitude'} !=
$packet->{position}->{longitude}->{degrees} ) ) {
sendEmail();
}
# Save the position
$lastPosition{'latitude'} = $packet->{position}->{latitude}->{degrees};
$lastPosition{'longitude'} = $packet->{position}->{longitude}->{degrees};
store \%lastPosition, $callsign;
sub sendEmail {
print "Sending a movement report\n";
my $email = Email::Simple->create(
header => [
To => $recipient,
From => $sender,
Subject => "$callsign position report",
],
body => "$callsign has moved",
);
sendmail($email);
}
Post by John Gorkos
Post by John Gorkos
Post by Steve Hanis
Hi John,
I have no intention of irritating anyone one the list, and
apologize
Post by Rich Mulvey
Post by John Gorkos
Post by John Gorkos
Post by Steve Hanis
if I have done so. I haven't written any programs since college
back
Post by Rich Mulvey
Post by John Gorkos
Post by John Gorkos
Post by Steve Hanis
in the early 90's and don't consider myself programmer, I use Linux
occasionally. I was made aware of this list after I posed this same
question on the APRS Yahoo group.
What I am looking for is something like what is described on
"APRS Messages to Your Cellphone: . N3FLR Frank Rossi reports that
he
Post by Rich Mulvey
Post by John Gorkos
Post by John Gorkos
Post by Steve Hanis
uses "YahooAlert" to send all of his APRS messages to his cell
phone.
Post by Rich Mulvey
Post by John Gorkos
Post by John Gorkos
Post by Steve Hanis
First, Find-U has RSS output capability so he has his computer RSS
Feed Reader watching his Feed From FindU, and YahooAlert also
watching. After setting up Yahoo Alert for a pager, he uses his
you
Post by Rich Mulvey
Post by John Gorkos
Post by John Gorkos
Post by Steve Hanis
just need to know what your phone's "e-mail address" to "text
address" is. You don't need mobile internet to do it this way, just
text ability. That will work with a text pager also. . When FINDU
sees a message to him on APRS it generates an RSS Feed that now
Yahoo-Alerts is watching. YahooAlerts then forwards the RSS Message
as Text to his cell phone. Although this is only one way
communications, it still lets him receive his APRS messages. He
also
Post by Rich Mulvey
Post by John Gorkos
Post by John Gorkos
Post by Steve Hanis
says that you can set up RSS feeds from FindU for weather alerts,
or
Post by Rich Mulvey
Post by John Gorkos
Post by John Gorkos
Post by Steve Hanis
APRS users X amount of miles from you. You can make the miles
anything you want. He has not tried that function yet."
I've tried this to no avail, but was wondering if anyone else had
come up with a different way to accomplish the same goal. I have no
commercial interest in this, I just want to be pinged on my cell
phone (SMS, Email, IM) when my friend goes mobile, or for special
cases like a high altitude balloon with a known call sign goes
active on APRS.
Kind Regards,
Steve
Post by John Gorkos
It "can" be done. It hasn't yet. What you're asking for is 4-6
hours of
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
custom coding (mostly for the web interface). Do you have a web
server
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
that can host something like this? I've got a few hours this weekend
I
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
can use to code this.
You want a web interface that allows you to enter a "monitored"
call sign, and an email address to send a message to when that
position report from that monitored callsign indicates movement.
You want one message only. Then, time passes and the monitored
station stops
moving.
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Once the station starts moving again, you want another text message.
The SMS messages will have to be sent via email (i.e.
spendy
Post by Rich Mulvey
Post by John Gorkos
and
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
less standard.
Do you have any programming skills you could apply to this? Web
design,
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
maybe? I hate web design, but the back-end portion isn't too
difficult.
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
This request will probably irritate some people on this list,
FWIW. Everyone has an imaginary line they draw between "ham
radio" and
"commercial radio and internet." Using your cellphone/commercial
radio
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
to get updates about APRS happenings on ham radio is probably on the
far
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
side of some peoples' lines.
John Gorkos
AB0OO
Post by Steve Hanis
Thank you for your reply. I am looking for a way to trigger an
email,
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
IM or SMS using existing web interfaces. A way to "push" an
alert
Post by Rich Mulvey
Post by John Gorkos
to
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
me when I am working or relaxing at home. Can this be done?
Kind Regards,
Steve
On Tue, Feb 8, 2011 at 10:41 AM, Guido Trentalancia
Post by Guido Trentalancia
Hello Steve !
Post by Steve Hanis
A friend and I just starting using APRS. Is there way to
trigger a
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
Post by Steve Hanis
SMS
text
Post by Steve Hanis
message or email via Internet monitoring when his APRS goes
active
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
Post by Steve Hanis
or
moving?
Post by Steve Hanis
This would let me know he is mobile and available to chat
or
Post by Rich Mulvey
Post by John Gorkos
view
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
Post by Steve Hanis
his
location
Post by Steve Hanis
on a map. My apologies if the question is too simplistic
for
Post by Rich Mulvey
Post by John Gorkos
this
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
Post by Steve Hanis
list, I am a newbie.
Thanks,
Steve
AB5ID
Suppose your friend has call AB4HB, then you could use
APRSCALLSIGN=AB4HB
SMTP_SERVER=smtp.ab5id.org
axlisten -a | grep -q " fm $APRSCALLSIGN to " && echo "An
APRS
Post by Rich Mulvey
Post by John Gorkos
packet
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
from $APRSCALLSIGN has been heard" > /tmp/aprs_message.txt &&
env MAILRC=/dev/null from=$FROMEMAILADDRESS smtp=$SMTP_SERVER
mailx
-v -n
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
-s "Mail from APRS" $MYEMAILADDRESS < /tmp/aprs_message.txt
&&
Post by Rich Mulvey
Post by John Gorkos
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
rm
-f
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
/tmp/aprs_message.txt
Note that APRSCALLSIGN is case sensitive (unless you pass the
-i option to grep). Note that SMTP_SERVER needs to be defined
according
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
to your actual smtp server.
Most importantly note that the above will send out an email
message
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
for every packet that is received from APRSCALLSIGN and this
might
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
not be desirable as there might be a lot of packets coming
continuously (so you might do things better with some extra
code that checks whether a message has already been sent
recently, for example by creating a temporary file each time
a
Post by Rich Mulvey
Post by John Gorkos
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
message is sent
and
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
then checking that the timestamp of such file is not too
recent
Post by Rich Mulvey
Post by John Gorkos
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
before sending a new email message).
(ax_emergency_listen) which is generally used to monitor APRS
emergency packets and adapt it to your needs (by modifying
the
Post by Rich Mulvey
Post by John Gorkos
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
http://iz6rdb.trentalancia.com/en/aprs_igate.html
73,
Guido IZ6RDB
Believe it or not, I've not forgotten about this. I've spent about
10
Post by Rich Mulvey
Post by John Gorkos
hours
Post by John Gorkos
so far doing design and outline work on the code. I've also had to hunt
down
Post by John Gorkos
some extremely nasty off-by-one bugs in the Java AVRS position
parsers.
Post by Rich Mulvey
Post by John Gorkos
Now
Post by John Gorkos
that I'm getting reliable, accurate positions from all 4 types of
position
Post by John Gorkos
packets (compressed, uncompressed, MICe, and raw NMEA) I can move on
to
Post by Rich Mulvey
Post by John Gorkos
Post by John Gorkos
alarms.
In the AVRS sourceforge repo, there is a new package called Wedjet
(net.ab0oo.aprs.wedjet) that contains some rudimentary code for
monitoring
Post by John Gorkos
positions. The alerting portion will come later. I'm using a
Spring-injected
Post by John Gorkos
Jetty container as a base web-server, so the whole thing can be self-
contained.
Give me another few days and I'll have something you can play with.
Once
we
Post by John Gorkos
reach a stable beta point, we'll look for hosting options.
John Gorkos
AB0OO
John,
A sincere thank you. I had no idea how much work would be involved.
Kind Regards,
Steve
AB5ID
_______________________________________________
aprssig mailing list
https://www.tapr.org/cgi-bin/mailman/listinfo/aprssig
_______________________________________________
aprssig mailing list
https://www.tapr.org/cgi-bin/mailman/listinfo/aprssig
Lee Bengston
2011-02-17 02:17:43 UTC
Permalink
Wow, I had no idea that Ham::APRS::LastPacket existed. Interestingly
enough, it's available via the perl package manager in ActivePerl making it
usable in Windows, but I'm not finding it in the Ubuntu repositories. It's
two dependencies are, however, available, so it looks like it would be a
simple matter of installing those and then grabbing the LastPacket source
code from CPAN.

Before seeing this I was also thinking of using a perl script, but it would
grab the needed info from http://aprs.fi/info/a/$callsign. Perhaps use
WWW::Mechanize or just curl or wget.

Lee - K5DAT
Post by Rich Mulvey
I hadn't followed this topic before, but if you have a machine you can run
perl on, this is trivially easy. I just whipped up this script and tested
it. Replace the callsign, recipient, and sender addresses, and run it
periodically.
It will store the last position found for the callsign, then, then next
time it runs, if the lat/long differ, it will send an email. Most cell
providers provide an email gateway to allow you to email SMS messages to
someone.
Obviously you'd want to surpress position changes within some window (
i.e., less than 100 feet ). Plus probably some more error checking. ;-)
---
#!/usr/bin/perl
use strict;
use Ham::APRS::LastPacket;
use Storable;
use Email::Sender::Simple qw(sendmail);
use Email::Simple;
use Email::Simple::Creator;
my $callsign = "MYCALLSIGN";
my %lastPosition;
my $aprs = Ham::APRS::LastPacket->new;
$aprs->set_callsign($callsign);
# Load the last position, if we've stored it
if( -r $callsign ) {
%lastPosition = %{retrieve $callsign};
}
my $packet = $aprs->get_data;
die $aprs->error_message if $aprs->is_error;
# get the position report
print "$callsign is at
$packet->{position}->{latitude}->{degrees},$packet->{position}->{longitude}->{degrees}\n";
# If the position has changed, send out an email
if( ( $lastPosition{latitude} != $packet->{position}->{latitude}->{degrees}
) ||
( $lastPosition{'longitude'} !=
$packet->{position}->{longitude}->{degrees} ) ) {
sendEmail();
}
# Save the position
$lastPosition{'latitude'} = $packet->{position}->{latitude}->{degrees};
$lastPosition{'longitude'} = $packet->{position}->{longitude}->{degrees};
store \%lastPosition, $callsign;
sub sendEmail {
print "Sending a movement report\n";
my $email = Email::Simple->create(
header => [
To => $recipient,
From => $sender,
Subject => "$callsign position report",
],
body => "$callsign has moved",
);
sendmail($email);
}
Post by John Gorkos
Post by John Gorkos
Post by Steve Hanis
Hi John,
I have no intention of irritating anyone one the list, and apologize
if I have done so. I haven't written any programs since college back
in the early 90's and don't consider myself programmer, I use Linux
occasionally. I was made aware of this list after I posed this same
question on the APRS Yahoo group.
What I am looking for is something like what is described on
"APRS Messages to Your Cellphone: . N3FLR Frank Rossi reports that he
uses "YahooAlert" to send all of his APRS messages to his cell phone.
First, Find-U has RSS output capability so he has his computer RSS
Feed Reader watching his Feed From FindU, and YahooAlert also
watching. After setting up Yahoo Alert for a pager, he uses his
just need to know what your phone's "e-mail address" to "text address"
is. You don't need mobile internet to do it this way, just text
ability. That will work with a text pager also. . When FINDU sees a
message to him on APRS it generates an RSS Feed that now Yahoo-Alerts
is watching. YahooAlerts then forwards the RSS Message as Text to his
cell phone. Although this is only one way communications, it still
lets him receive his APRS messages. He also says that you can set up
RSS feeds from FindU for weather alerts, or APRS users X amount of
miles from you. You can make the miles anything you want. He has not
tried that function yet."
I've tried this to no avail, but was wondering if anyone else had come
up with a different way to accomplish the same goal. I have no
commercial interest in this, I just want to be pinged on my cell phone
(SMS, Email, IM) when my friend goes mobile, or for special cases like
a high altitude balloon with a known call sign goes active on APRS.
Kind Regards,
Steve
Post by John Gorkos
It "can" be done. It hasn't yet. What you're asking for is 4-6
hours of
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
custom coding (mostly for the web interface). Do you have a web
server
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
that can host something like this? I've got a few hours this
weekend I
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
can use to code this.
You want a web interface that allows you to enter a "monitored" call
sign, and an email address to send a message to when that position
report from that monitored callsign indicates movement. You want
one
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
message only. Then, time passes and the monitored station stops
moving.
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Once the station starts moving again, you want another text
message.
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
The SMS messages will have to be sent via email (i.e.
and
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
less standard.
Do you have any programming skills you could apply to this? Web
design,
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
maybe? I hate web design, but the back-end portion isn't too
difficult.
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
This request will probably irritate some people on this list, FWIW.
Everyone has an imaginary line they draw between "ham radio" and
"commercial radio and internet." Using your cellphone/commercial
radio
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
to get updates about APRS happenings on ham radio is probably on the
far
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
side of some peoples' lines.
John Gorkos
AB0OO
Post by Steve Hanis
Thank you for your reply. I am looking for a way to trigger an
email,
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
IM or SMS using existing web interfaces. A way to "push" an alert
to
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
me when I am working or relaxing at home. Can this be done?
Kind Regards,
Steve
On Tue, Feb 8, 2011 at 10:41 AM, Guido Trentalancia
Post by Guido Trentalancia
Hello Steve !
Post by Steve Hanis
A friend and I just starting using APRS. Is there way to
trigger a
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
Post by Steve Hanis
SMS
text
Post by Steve Hanis
message or email via Internet monitoring when his APRS goes
active
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
Post by Steve Hanis
or
moving?
Post by Steve Hanis
This would let me know he is mobile and available to chat or
view
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
Post by Steve Hanis
his
location
Post by Steve Hanis
on a map. My apologies if the question is too simplistic for
this
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
Post by Steve Hanis
list, I am a newbie.
Thanks,
Steve
AB5ID
Suppose your friend has call AB4HB, then you could use something
APRSCALLSIGN=AB4HB
SMTP_SERVER=smtp.ab5id.org
axlisten -a | grep -q " fm $APRSCALLSIGN to " && echo "An APRS
packet
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
from $APRSCALLSIGN has been heard" > /tmp/aprs_message.txt &&
env
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
MAILRC=/dev/null from=$FROMEMAILADDRESS smtp=$SMTP_SERVER mailx
-v -n
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
-s "Mail from APRS" $MYEMAILADDRESS < /tmp/aprs_message.txt &&
rm -f
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
/tmp/aprs_message.txt
Note that APRSCALLSIGN is case sensitive (unless you pass the -i
option to grep). Note that SMTP_SERVER needs to be defined
according
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
to your actual smtp server.
Most importantly note that the above will send out an email
message
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
for every packet that is received from APRSCALLSIGN and this
might
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
not be desirable as there might be a lot of packets coming
continuously (so you might do things better with some extra code
that checks whether a message has already been sent recently,
for
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
example by creating a temporary file each time a message is sent
and
Post by John Gorkos
Post by Steve Hanis
Post by John Gorkos
Post by Steve Hanis
Post by Guido Trentalancia
then checking that the timestamp of such file is not too recent
before sending a new email message).
(ax_emergency_listen) which is generally used to monitor APRS
emergency packets and adapt it to your needs (by modifying the C
http://iz6rdb.trentalancia.com/en/aprs_igate.html
73,
Guido IZ6RDB
Believe it or not, I've not forgotten about this. I've spent about 10
hours
Post by John Gorkos
so far doing design and outline work on the code. I've also had to hunt
down
Post by John Gorkos
some extremely nasty off-by-one bugs in the Java AVRS position parsers.
Now
Post by John Gorkos
that I'm getting reliable, accurate positions from all 4 types of
position
Post by John Gorkos
packets (compressed, uncompressed, MICe, and raw NMEA) I can move on to
alarms.
In the AVRS sourceforge repo, there is a new package called Wedjet
(net.ab0oo.aprs.wedjet) that contains some rudimentary code for
monitoring
Post by John Gorkos
positions. The alerting portion will come later. I'm using a
Spring-injected
Post by John Gorkos
Jetty container as a base web-server, so the whole thing can be self-
contained.
Give me another few days and I'll have something you can play with.
Once we
Post by John Gorkos
reach a stable beta point, we'll look for hosting options.
John Gorkos
AB0OO
John,
A sincere thank you. I had no idea how much work would be involved.
Kind Regards,
Steve
AB5ID
_______________________________________________
aprssig mailing list
https://www.tapr.org/cgi-bin/mailman/listinfo/aprssig
--
_______________________________________________
aprssig mailing list
https://www.tapr.org/cgi-bin/mailman/listinfo/aprssig
Heikki Hannikainen
2011-02-17 04:39:02 UTC
Permalink
Before seeing this I was also thinking of using a perl script, but it would grab the
needed info from http://aprs.fi/info/a/$callsign.  Perhaps use WWW::Mechanize or
just curl or wget.
That would not be a good idea, and I would greatly dislike if you did
that. Please see the last item in the FAQ: http://aprs.fi/page/faq ("Can I
write software to download data from aprs.fi and display it on my site?").
There's a Terms Of Service page, too.

But! There's an API, which could be used much like the one provided by
aprsworld and used by Ham::APRS::LastPacket: http://aprs.fi/page/api

Of course LastPacket & aprsworld is a good solution, and works, too.
Nothing wrong with that. Just wanted to object to parsing the user
interface html. :)

- Hessu, OH7LZB, of aprs.fi
Lee Bengston
2011-02-17 05:15:42 UTC
Permalink
Post by Lee Bengston
Before seeing this I was also thinking of using a perl script, but it
would grab the
needed info from http://aprs.fi/info/a/$callsign. Perhaps use
WWW::Mechanize or
just curl or wget.
That would not be a good idea, and I would greatly dislike if you did that.
Please see the last item in the FAQ: http://aprs.fi/page/faq ("Can I write
software to download data from aprs.fi and display it on my site?").
There's a Terms Of Service page, too.
But! There's an API, which could be used much like the one provided by
aprsworld and used by Ham::APRS::LastPacket: http://aprs.fi/page/api
Of course LastPacket & aprsworld is a good solution, and works, too.
Nothing wrong with that. Just wanted to object to parsing the user interface
html. :)
- Hessu, OH7LZB, of aprs.fi
Thanks. I was actually referring to a thought I had in the past as opposed
to something I actually planned to do. It's good, though, that you
responded so that it would discourage any others on the list from using that
link for such a purpose. In hindsight I realize I was careless in posting
that. You make some excellent points in http://aprs.fi/page/faq.

Regards,
Lee - K5DAT

Wes Johnston, AI4PX
2011-02-11 14:59:54 UTC
Permalink
The next thing you know, someone will want to know when a station has
gotten near a point. For example, I could get a text when the wife's
car is < 5 miles of the house so I can start looking busy.

Or know that my teenager has arrived at school when their car is <xxx
feet of the school.

Or know that my teenager's car has gone outside a polygon.

Or know that my teen's car is going faster than 30mph within 1000feet
of the house, or faster than 65mph in a polygon that encloses the
local interstate.


I'm just pointing out that many possibilities exist for this. Hope
it's flexible.

Wes
Post by John Gorkos
It "can" be done. It hasn't yet. What you're asking for is 4-6 hours of
custom coding (mostly for the web interface). Do you have a web server that
can host something like this? I've got a few hours this weekend I can use to
code this.
You want a web interface that allows you to enter a "monitored" call sign, and
an email address to send a message to when that position report from that
monitored callsign indicates movement. You want one message only. Then, time
passes and the monitored station stops moving. Once the station starts moving
again, you want another text message.
The SMS messages will have to be sent via email (i.e.
standard.
Do you have any programming skills you could apply to this? Web design,
maybe? I hate web design, but the back-end portion isn't too difficult.
This
request will probably irritate some people on this list, FWIW. Everyone has
an imaginary line they draw between "ham radio" and "commercial radio and
internet." Using your cellphone/commercial radio to get updates about APRS
happenings on ham radio is probably on the far side of some peoples' lines.
John Gorkos
AB0OO
Post by Steve Hanis
Thank you for your reply. I am looking for a way to trigger an email, IM or
SMS using existing web interfaces. A way to "push" an alert to me when I am
working or relaxing at home. Can this be done?
Kind Regards,
Steve
On Tue, Feb 8, 2011 at 10:41 AM, Guido Trentalancia
Post by Guido Trentalancia
Hello Steve !
Post by Steve Hanis
A friend and I just starting using APRS. Is there way to trigger a SMS
text
Post by Steve Hanis
message or email via Internet monitoring when his APRS goes active or
moving?
Post by Steve Hanis
This would let me know he is mobile and available to chat or view his
location
Post by Steve Hanis
on a map. My apologies if the question is too simplistic for this
list, I am a newbie.
Thanks,
Steve
AB5ID
APRSCALLSIGN=AB4HB
SMTP_SERVER=smtp.ab5id.org
axlisten -a | grep -q " fm $APRSCALLSIGN to " && echo "An APRS packet
from $APRSCALLSIGN has been heard" > /tmp/aprs_message.txt && env
MAILRC=/dev/null from=$FROMEMAILADDRESS smtp=$SMTP_SERVER mailx -v -n -s
"Mail from APRS" $MYEMAILADDRESS < /tmp/aprs_message.txt && rm
-f /tmp/aprs_message.txt
Note that APRSCALLSIGN is case sensitive (unless you pass the -i option
to grep). Note that SMTP_SERVER needs to be defined according to your
actual smtp server.
Most importantly note that the above will send out an email message for
every packet that is received from APRSCALLSIGN and this might not be
desirable as there might be a lot of packets coming continuously (so you
might do things better with some extra code that checks whether a
message has already been sent recently, for example by creating a
temporary file each time a message is sent and then checking that the
timestamp of such file is not too recent before sending a new email
message).
(ax_emergency_listen) which is generally used to monitor APRS emergency
http://iz6rdb.trentalancia.com/en/aprs_igate.html
73,
Guido IZ6RDB
_______________________________________________
aprssig mailing list
https://www.tapr.org/cgi-bin/mailman/listinfo/aprssig
--
Wes
---
"Language shapes the way we think, and determines what we can think about."
-- B. L. Whorf
Bob Bruninga
2011-02-11 16:18:36 UTC
Permalink
All of these ALARMS were in the original APRSdos and I assume some other
clients. But it didn't send a message, it just beeped and focused the map
on the alarmed object so that Dad could be alerted. I like this new idea of
sending a text message or email. Bob, Wb4APR
Post by Wes Johnston, AI4PX
The next thing you know, someone will want to know
when a station has gotten near a point.
For example, I could get a text when the wife's
car is < 5 miles of the house so I can start looking busy.
Yes, exactly the intent when I added the proximity alarm...
Post by Wes Johnston, AI4PX
Or know that my teenager has arrived at school
when their car is <xxx feet of the school.
Or know that my teenager's car has gone outside a polygon.
Or know that my teen's car is going faster than...
It "can" be done. It hasn't yet. What you're asking for is 4-6 hours of
custom coding (mostly for the web interface). Do you have a web server that
can host something like this? I've got a few hours this weekend I can use to
code this.
You want a web interface that allows you to enter a "monitored" call sign, and
an email address to send a message to when that position report from that
monitored callsign indicates movement. You want one message only. Then, time
passes and the monitored station stops moving. Once the station starts moving
again, you want another text message.
The SMS messages will have to be sent via email (i.e.
less
Post by Wes Johnston, AI4PX
standard.
Do you have any programming skills you could apply to this? Web design,
maybe? I hate web design, but the back-end portion isn't too difficult.
This
request will probably irritate some people on this list, FWIW. Everyone has
an imaginary line they draw between "ham radio" and "commercial radio and
internet." Using your cellphone/commercial radio to get updates about APRS
happenings on ham radio is probably on the far side of some peoples' lines.
John Gorkos
AB0OO
Post by Steve Hanis
Thank you for your reply. I am looking for a way to trigger an email, IM or
SMS using existing web interfaces. A way to "push" an alert to me when I am
working or relaxing at home. Can this be done?
Kind Regards,
Steve
On Tue, Feb 8, 2011 at 10:41 AM, Guido Trentalancia
Post by Guido Trentalancia
Hello Steve !
Post by Steve Hanis
A friend and I just starting using APRS. Is there way to trigger a SMS
text
Post by Steve Hanis
message or email via Internet monitoring when his APRS goes active or
moving?
Post by Steve Hanis
This would let me know he is mobile and available to chat or view his
location
Post by Steve Hanis
on a map. My apologies if the question is too simplistic for this
list, I am a newbie.
Thanks,
Steve
AB5ID
APRSCALLSIGN=AB4HB
SMTP_SERVER=smtp.ab5id.org
axlisten -a | grep -q " fm $APRSCALLSIGN to " && echo "An APRS packet
from $APRSCALLSIGN has been heard" > /tmp/aprs_message.txt && env
MAILRC=/dev/null from=$FROMEMAILADDRESS smtp=$SMTP_SERVER mailx -v -n -s
"Mail from APRS" $MYEMAILADDRESS < /tmp/aprs_message.txt && rm
-f /tmp/aprs_message.txt
Note that APRSCALLSIGN is case sensitive (unless you pass the -i option
to grep). Note that SMTP_SERVER needs to be defined according to your
actual smtp server.
Most importantly note that the above will send out an email message for
every packet that is received from APRSCALLSIGN and this might not be
desirable as there might be a lot of packets coming continuously (so you
might do things better with some extra code that checks whether a
message has already been sent recently, for example by creating a
temporary file each time a message is sent and then checking that the
timestamp of such file is not too recent before sending a new email
message).
(ax_emergency_listen) which is generally used to monitor APRS emergency
http://iz6rdb.trentalancia.com/en/aprs_igate.html
73,
Guido IZ6RDB
_______________________________________________
aprssig mailing list
https://www.tapr.org/cgi-bin/mailman/listinfo/aprssig
--
Wes
---
"Language shapes the way we think, and determines what we can think about."
-- B. L. Whorf
Rudy Benner
2011-02-11 16:26:05 UTC
Permalink
Consider AGWTracker, it has all sorts of nifty keen amazing features.

ve3bdr

-----Original Message-----
From: Bob Bruninga
Sent: Friday, February 11, 2011 11:18 AM
To: 'TAPR APRS Mailing List'
Subject: Re: [aprssig] APRS activity triggering a text or email
notificationvia internet push

All of these ALARMS were in the original APRSdos and I assume some other
clients. But it didn't send a message, it just beeped and focused the map
on the alarmed object so that Dad could be alerted. I like this new idea of
sending a text message or email. Bob, Wb4APR
Post by Wes Johnston, AI4PX
The next thing you know, someone will want to know
when a station has gotten near a point.
For example, I could get a text when the wife's
car is < 5 miles of the house so I can start looking busy.
Yes, exactly the intent when I added the proximity alarm...
Post by Wes Johnston, AI4PX
Or know that my teenager has arrived at school
when their car is <xxx feet of the school.
Or know that my teenager's car has gone outside a polygon.
Or know that my teen's car is going faster than...
It "can" be done. It hasn't yet. What you're asking for is 4-6 hours of
custom coding (mostly for the web interface). Do you have a web server that
can host something like this? I've got a few hours this weekend I can use to
code this.
You want a web interface that allows you to enter a "monitored" call sign, and
an email address to send a message to when that position report from that
monitored callsign indicates movement. You want one message only. Then, time
passes and the monitored station stops moving. Once the station starts moving
again, you want another text message.
The SMS messages will have to be sent via email (i.e.
less
Post by Wes Johnston, AI4PX
standard.
Do you have any programming skills you could apply to this? Web design,
maybe? I hate web design, but the back-end portion isn't too difficult.
This
request will probably irritate some people on this list, FWIW. Everyone has
an imaginary line they draw between "ham radio" and "commercial radio and
internet." Using your cellphone/commercial radio to get updates about APRS
happenings on ham radio is probably on the far side of some peoples' lines.
John Gorkos
AB0OO
Post by Steve Hanis
Thank you for your reply. I am looking for a way to trigger an email, IM or
SMS using existing web interfaces. A way to "push" an alert to me when I am
working or relaxing at home. Can this be done?
Kind Regards,
Steve
On Tue, Feb 8, 2011 at 10:41 AM, Guido Trentalancia
Post by Guido Trentalancia
Hello Steve !
Post by Steve Hanis
A friend and I just starting using APRS. Is there way to trigger a SMS
text
Post by Steve Hanis
message or email via Internet monitoring when his APRS goes active or
moving?
Post by Steve Hanis
This would let me know he is mobile and available to chat or view his
location
Post by Steve Hanis
on a map. My apologies if the question is too simplistic for this
list, I am a newbie.
Thanks,
Steve
AB5ID
APRSCALLSIGN=AB4HB
SMTP_SERVER=smtp.ab5id.org
axlisten -a | grep -q " fm $APRSCALLSIGN to " && echo "An APRS packet
from $APRSCALLSIGN has been heard" > /tmp/aprs_message.txt && env
MAILRC=/dev/null from=$FROMEMAILADDRESS smtp=$SMTP_SERVER mailx -v -n -s
"Mail from APRS" $MYEMAILADDRESS < /tmp/aprs_message.txt && rm
-f /tmp/aprs_message.txt
Note that APRSCALLSIGN is case sensitive (unless you pass the -i option
to grep). Note that SMTP_SERVER needs to be defined according to your
actual smtp server.
Most importantly note that the above will send out an email message for
every packet that is received from APRSCALLSIGN and this might not be
desirable as there might be a lot of packets coming continuously (so you
might do things better with some extra code that checks whether a
message has already been sent recently, for example by creating a
temporary file each time a message is sent and then checking that the
timestamp of such file is not too recent before sending a new email
message).
(ax_emergency_listen) which is generally used to monitor APRS emergency
http://iz6rdb.trentalancia.com/en/aprs_igate.html
73,
Guido IZ6RDB
_______________________________________________
aprssig mailing list
https://www.tapr.org/cgi-bin/mailman/listinfo/aprssig
--
Wes
---
"Language shapes the way we think, and determines what we can think about."
-- B. L. Whorf
Bill V WA7NWP
2011-02-11 17:30:46 UTC
Permalink
Check out - http://misterhouse.sourceforge.net/
Post by Wes Johnston, AI4PX
The next thing you know, someone will want to know when a station has
gotten near a point.  For example, I could get a text when the wife's
car is < 5 miles of the house so I can start looking busy.
Or know that my teenager has arrived at school when their car is <xxx
feet of the school.
Or know that my teenager's car has gone outside a polygon.
Or know that my teen's car is going faster than 30mph within 1000feet
of the house, or faster than 65mph in a polygon that encloses the
local interstate.
Wes Johnston, AI4PX
2011-02-12 01:23:45 UTC
Permalink
Bill, I once wrote a script for Mr House that would use text to speech and a
list of local points of interest to annouce in the house that a car was near
walmart or at home. =-)
Wes
---
"Language shapes the way we think, and determines what we can think about."
-- B. L. Whorf
Post by Bill V WA7NWP
Check out - http://misterhouse.sourceforge.net/
Post by Wes Johnston, AI4PX
The next thing you know, someone will want to know when a station has
gotten near a point. For example, I could get a text when the wife's
car is < 5 miles of the house so I can start looking busy.
Or know that my teenager has arrived at school when their car is <xxx
feet of the school.
Or know that my teenager's car has gone outside a polygon.
Or know that my teen's car is going faster than 30mph within 1000feet
of the house, or faster than 65mph in a polygon that encloses the
local interstate.
_______________________________________________
aprssig mailing list
https://www.tapr.org/cgi-bin/mailman/listinfo/aprssig
Loading...