1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-11-06 00:41:22 -05:00
aprsd/README.md

138 lines
5.3 KiB
Markdown
Raw Normal View History

2017-10-31 12:47:27 -04:00
# aprsd
2017-10-31 13:08:23 -04:00
2018-06-13 12:03:45 -04:00
Listen on amateur radio aprs-is network for messages and respond to them.
You must have an amateur radio callsign to use this software. Put your
callsign in the "USER" variable and update your aprs-is password in "PASS".
You must also have an imap email account available for polling.
Current messages this will respond to:
2018-06-13 12:05:57 -04:00
```
2018-06-13 12:04:05 -04:00
APRS messages:
2019-12-17 09:28:16 -05:00
l(ocation) [callsign] = descriptive current location of your radio
8 Miles E Auburn CA 1673' 39.92150,-120.93950 0.1h ago
2018-11-21 17:38:33 -05:00
w(eather) = weather forecast for your radio's current position
2018-11-21 14:37:48 -05:00
58F(58F/46F) Partly Cloudy. Tonight, Heavy Rain.
2018-06-13 12:04:05 -04:00
t(ime) = respond with the current time
2018-11-21 14:31:54 -05:00
f(ortune) = respond with a short fortune
2018-11-21 14:48:39 -05:00
-email_addr email text = send an email, say "mapme" to send a current position/map
2018-11-21 17:11:43 -05:00
-2 = resend the last 2 emails from your imap inbox to this radio
2018-11-21 14:31:54 -05:00
p(ing) = respond with Pong!/time
2018-06-13 12:04:05 -04:00
anything else = respond with usage
2018-11-21 14:31:54 -05:00
2018-06-13 12:05:57 -04:00
```
2018-11-21 17:11:43 -05:00
Meanwhile this code will monitor a single imap mailbox and forward email
2018-11-21 17:13:03 -05:00
to your BASECALLSIGN over the air. Only radios using the BASECALLSIGN are allowed
to send email, so consider this security risk before using this (or Amatuer radio in
general). Email is single user at this time.
2018-06-13 12:03:45 -04:00
There are additional parameters in the code (sorry), so be sure to set your
2018-11-21 14:31:54 -05:00
email server, and associated logins, passwords. search for "yourdomain",
2018-06-13 12:03:45 -04:00
"password". Search for "shortcuts" to setup email aliases as well.
2017-10-31 13:08:23 -04:00
Installation:
```
pip install aprsd
```
2017-10-31 13:08:23 -04:00
Example usage:
2018-11-21 14:31:54 -05:00
```
aprsd -h
2018-11-21 14:31:54 -05:00
```
Example output:
2018-11-21 17:01:14 -05:00
SEND EMAIL (radio to smtp server)
2017-10-31 13:08:23 -04:00
2017-10-31 13:13:11 -04:00
```
2017-10-31 13:13:50 -04:00
Received message______________
2018-11-21 14:31:54 -05:00
Raw : KM6XXX>APY400,WIDE1-1,qAO,KM6XXX-1::KM6XXX-9 :-user@host.com test new shortcuts global, radio to pc{29
From : KM6XXX
Message : -user@host.com test new shortcuts global, radio to pc
Msg number : 29
Sending Email_________________
2018-11-21 17:04:34 -05:00
To : user@host.com
2018-11-21 14:31:54 -05:00
Subject : KM6XXX
Body : test new shortcuts global, radio to pc
Sending ack __________________ Tx(3)
Raw : KM6XXX-9>APRS::KM6XXX :ack29
To : KM6XXX
Ack number : 29
```
2018-11-21 17:01:14 -05:00
RECEIVE EMAIL (imap server to radio)
```
Sending message_______________ 6(Tx3)
2018-11-21 17:14:57 -05:00
Raw : KM6XXX-9>APRS::KM6XXX :-somebody@gmail.com email from internet to radio{6
To : KM6XXX
2018-11-21 17:05:45 -05:00
Message : -somebody@gmail.com email from internet to radio
2018-11-21 17:01:14 -05:00
Received message______________
2018-11-21 17:14:57 -05:00
Raw : KM6XXX>APY400,WIDE1-1,qAO,KM6XXX-1::KM6XXX-9 :ack6
From : KM6XXX
2018-11-21 17:01:14 -05:00
Message : ack6
Msg number : 0
```
2018-11-21 14:31:54 -05:00
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)
2018-11-21 14:37:48 -05:00
Raw : KM6XXX-9>APRS::KM6XXX :58F(58F/46F) Partly cloudy. Tonight, Heavy Rain.{6
2018-11-21 14:31:54 -05:00
To : KM6XXX
2018-11-21 14:37:48 -05:00
Message : 58F(58F/46F) Party Cloudy. Tonight, Heavy Rain.
2018-11-21 14:31:54 -05:00
Sending ack __________________ Tx(3)
Raw : KM6XXX-9>APRS::KM6XXX :ack27
To : KM6XXX
Ack number : 27
2017-10-31 18:00:31 -04:00
Received message______________
2018-11-21 14:31:54 -05:00
Raw : KM6XXX>APY400,WIDE1-1,qAO,KM6XXX-1::KM6XXX-9 :ack6
From : KM6XXX
Message : ack6
Msg number : 0
```
2018-11-21 14:32:55 -05:00
LOCATION
2017-10-31 13:10:37 -04:00
2017-10-31 13:13:11 -04:00
```
2018-11-21 14:31:54 -05:00
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)
2018-11-21 14:37:48 -05:00
Raw : KM6XXX-9>APRS::KM6XXX :8 Miles NE Auburn CA 1673' 39.91150,-120.93450 0.1h ago{7
2018-11-21 14:31:54 -05:00
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.....