1
0
mirror of https://github.com/craigerl/aprsd.git synced 2025-09-03 13:47:51 -04:00

added weather and location 2

This commit is contained in:
craigerl 2018-11-21 11:31:54 -08:00
parent 7b74138cba
commit 2fbc0e305c

114
README.md
View File

@ -8,49 +8,107 @@ You must also have an imap email account available for polling.
Current messages this will respond to: Current messages this will respond to:
``` ```
APRS messages: APRS messages:
l(ocation) = descriptive location of calling station
8 Miles E Auburn CA 1673' 38.91150,-120.93450 0.1h ago
w(eather) = temp, (hi/low) forecast, later forecast
58F(58F/46F) Heavy Rain. Tonight, Heavy Rain.
t(ime) = respond with the current time t(ime) = respond with the current time
f(ortune) = respond with a short fortune (requires fuzzyclock python module) f(ortune) = respond with a short fortune
-email_addr email text = send an email -email_addr email text = send an email
-2 = display the last 2 emails received -2 = display the last 2 emails received
p(ing) = respond with Pong!/time
anything else = respond with usage anything else = respond with usage
``` ```
Meanwhile this code will monitor an imap mailbox and forward email Meanwhile this code will monitor an imap mailbox and forward email
to your BASECALLSIGN over the air. to your BASECALLSIGN over the air.
There are additional parameters in the code (sorry), so be sure to set your There are additional parameters in the code (sorry), so be sure to set your
email server, and associated logins, passwords. search for "yourmaildomain", email server, and associated logins, passwords. search for "yourdomain",
"password". Search for "shortcuts" to setup email aliases as well. "password". Search for "shortcuts" to setup email aliases as well.
Example usage: Example usage:
```
./aprsd.py
```
Example output:
SEND EMAIL
``` ```
craiger@pc:~/ham/aprsd$ ./aprsd.py
# aprsc 2.1.4-g408ed49
# logresp KM6LYW-9 verified, server T2TEXAS
# aprsc 2.1.4-g408ed49 31 Oct 2017 17:42:54 GMT T2TEXAS 205.209.228.93:14580
Received message______________ Received message______________
Raw : KM6LYW>APY01D,ALDER*,WIDE2-1,qAR,N6VUD-15::KM6LYW-9 :Test31{53 Raw : KM6XXX>APY400,WIDE1-1,qAO,KM6XXX-1::KM6XXX-9 :-user@host.com test new shortcuts global, radio to pc{29
From : KM6LYW From : KM6XXX
Message : Test31 Message : -user@host.com test new shortcuts global, radio to pc
Ack number : 53 Msg number : 29
Sending ack __________________
Raw : KM6LYW-9>APRS,TCPIP*::KM6LYW :ack53 Sending Email_________________
To : KM6LYW To : cl (craig@craiger.org)
Ack number : 53 Subject : KM6XXX
Sending reply_________________ Body : test new shortcuts global, radio to pc
Raw : KM6LYW-9>APRS,TCPIP*::KM6LYW :Current time: 14:57:06 10/31/2017 PDT (Test31){964
To : KM6LYW Sending ack __________________ Tx(3)
Message : Current time: 14:57:06 10/31/2017 PDT (Test31) Raw : KM6XXX-9>APRS::KM6XXX :ack29
# aprsc 2.1.4-g408ed49 31 Oct 2017 21:57:54 GMT T2TEXAS 205.209.228.93:14580 To : KM6XXX
Received message______________ Ack number : 29
Raw : KM6LYW>APY01D,ALDER*,WIDE2-1,qAR,W6SRR-3::KM6LYW-9 :ack964
From : KM6LYW
Message : ack964
Ack number : none
Reply? : No, we do not reply to ack.
# aprsc 2.1.4-g408ed49 31 Oct 2017 17:43:14 GMT T2TEXAS 205.209.228.93:14580
# aprsc 2.1.4-g408ed49 31 Oct 2017 17:43:34 GMT T2TEXAS 205.209.228.93:14580
``` ```
WEATHER
```
Received message______________
Raw : KM6XXX>APY400,WIDE1-1,qAO,KM6XXX-1::KM6XXX-9 :weather{27
From : KM6XXX
Message : weather
Msg number : 27
Sending message_______________ 6(Tx3)
Raw : KM6XXX-9>APRS::KM6XXX :58F(58F/46F) Heavy Rain. Tonight, Heavy Rain.{6
To : KM6XXX
Message : 58F(58F/46F) Heavy Rain. Tonight, Heavy Rain.
Sending ack __________________ Tx(3)
Raw : KM6XXX-9>APRS::KM6XXX :ack27
To : KM6XXX
Ack number : 27
Received message______________
Raw : KM6XXX>APY400,WIDE1-1,qAO,KM6XXX-1::KM6XXX-9 :ack6
From : KM6XXX
Message : ack6
Msg number : 0
```
# LOCATION
```
Received message______________
Raw : KM6XXX>APY400,WIDE1-1,qAO,KM6XXX-1::KM6XXX-9 :location{28
From : KM6XXX
Message : location
Msg number : 28
Sending message_______________ 7(Tx3)
Raw : KM6XXX-9>APRS::KM6XXX :8 Miles E Auburn CA 1673' 38.91150,-120.93450 0.1h ago{7
To : KM6XXX
Message : 8 Miles E Auburn CA 1673' 38.91150,-120.93450 0.1h ago
Sending ack __________________ Tx(3)
Raw : KM6XXX-9>APRS::KM6XXX :ack28
To : KM6XXX
Ack number : 28
Received message______________
Raw : KM6XXX>APY400,WIDE1-1,qAO,KM6XXX-1::KM6XXX-9 :ack7
From : KM6XXX
Message : ack7
Msg number : 0
```
AND... ping, fortune, time.....