1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-09-17 18:56:35 -04:00
Commit Graph

95 Commits

Author SHA1 Message Date
craigerl
b597228719 main loop went into tight loop, added debug print before every continue 2020-12-05 18:59:58 -08:00
craigerl
3ae7a056b6 George Carlin profanity filter 2020-12-05 12:50:08 -08:00
craigerl
cf73add2db added decaying email check timer which resets with activity 2020-12-05 11:30:31 -08:00
Craig Lamparter
901b17a94c
Merge pull request #11 from hemna/py3
Fixed all pep8 errors and some py3 errors
2020-12-05 08:13:27 -08:00
a3813eaf3a
Merge branch 'master' into py3 2020-12-04 16:48:28 -05:00
4084ddfe31 Fixed all pep8 errors and some py3 errors
This introduced the six lib which can translate common
py2 vs py3 incompatibilities.
https://six.readthedocs.io/
2020-12-04 16:46:34 -05:00
06a63f541e Fixed all pep8 errors and some py3 errors
This introduced the six lib which can translate common
py2 vs py3 incompatibilities.
https://six.readthedocs.io/
2020-12-04 16:43:30 -05:00
craigerl
ecd0e8f95e Reconnect on socket timeout 2020-12-04 16:43:12 -05:00
craigerl
5e96706f7a socket reconnect on timeout testing 2020-12-04 16:42:45 -05:00
craigerl
32e146d105 socket timeout of 300 instead of 60 2020-12-04 13:37:29 -08:00
craigerl
766acbb777 Reconnect on socket timeout 2020-12-04 09:43:11 -08:00
craigerl
712d66c389 socket reconnect on timeout testing 2020-12-04 07:21:37 -08:00
0c40689743 Fixed all pep8 errors and some py3 errors
This introduced the six lib which can translate common
py2 vs py3 incompatibilities.
https://six.readthedocs.io/
2020-12-04 09:07:32 -05:00
craigerl
e171e16854 fix check_email_thread to do proper threading, take delay as arg 2020-12-03 14:48:27 -08:00
craigerl
f175f7e6e3 INSTALL.txt for the average person 2020-12-02 12:30:58 -08:00
craigerl
abc63791f1 fix bugs after beautification and yaml config additions. Convert to sockets. case insensitive commands 2020-12-02 12:25:39 -08:00
craigerl
78add91f3c fix INBOX 2020-12-02 09:42:23 -08:00
Craig Lamparter
3e555746ca
Merge pull request #10 from hemna/master
Added tox support
2020-01-20 10:25:54 -08:00
Craig Lamparter
1f31ba0fc7
Update README.md 2019-12-17 06:28:16 -08:00
d1a50c6559 Added tox support
This patch adds support for tox.  Tox is used to run various
python compliance tests.  This enables pep8 tests, as well as python2
and python3 compatibility as well as coverage and documentation
building.
2019-05-15 20:12:59 +00:00
Craig Lamparter
28e062bd44
Merge pull request #9 from hemna/master
Fixed SMTP settings
2018-11-29 11:22:33 -08:00
da153b64f6 Fixed SMTP settings
This patch reads the SMTP settings from the config.yml now.
Also added a logfile entry to the aprs: section of the config.yml
so the logfile can be placed anywhere.
2018-11-29 14:19:52 -05:00
Craig Lamparter
e552084342
Merge pull request #8 from hemna/master
removed ASS
2018-11-29 10:23:00 -08:00
bd47a2bdea Created fake_aprs.py
Moved the config parsing to utils, so it's shared with
main.py (aprs) and fake_aprs.py
2018-11-29 13:20:53 -05:00
7abc47098b select inbox if gmail server 2018-11-29 10:01:30 -05:00
a9eb1714c2 removed ASS 2018-11-29 09:33:24 -05:00
Craig Lamparter
3a9fd024aa
Merge pull request #7 from hemna/master
Added port and fixed telnet user
2018-11-29 06:32:06 -08:00
89d038e93d Added a try block around imap login 2018-11-29 09:30:51 -05:00
81d01c3bc6 Added port and fixed telnet user
This patch adds the port to the aprs: section of the config.yml
as well as fixes a possible issue with the user telnet auth command
where the user is a string and the port is an int.  python can't
concatonate a string with an int.
2018-11-29 09:20:15 -05:00
Craig Lamparter
5e383dbee8
Merge pull request #6 from hemna/master
Require ~/.aprsd/config.yml
2018-11-29 06:01:09 -08:00
ce7a30aa78 Require ~/.aprsd/config.yml
This patch completes the migration to using a config.yml file.
~/.aprsd/config.yml is now required and all options for callsign,
imap, aprs user, passwords are in the config.  If there is no existing
~/.aprsd/config.yml file, then the app will output a sample config
and exit.

This patch also adds a global logging facility that allows logging all
commands to aprsd.log as well as stdout.  You can disable logging to
stdout by adding --quiet on the command line.  You can specify the log
level with --loglevel INFO.  By default the log level is DEBUG.

This patch also updates some formatting issues and small refactoring
to ensure that the logging facility and config is read prior to starting
any network connections and/or services.
2018-11-29 08:22:41 -05:00
Craig Lamparter
4c8d9c3b2c
Merge pull request #5 from hemna/master
Added reading of a config file
2018-11-28 10:09:37 -08:00
4eff52f245 updated README for install and usage instructions 2018-11-21 15:27:35 -08:00
8d1d2933e8 added test to ensure shortcuts in config.yml
This patch adds a simple test to ensure that 'shortcuts' is part of
the config.yml
2018-11-21 15:25:31 -08:00
e3964c5426 added exit if missing config file 2018-11-21 15:23:06 -08:00
5717504f11 Added reading of a config file
This patch adds support to read a ~/.aprsd/config.yml file.
If one doesn't exist, it puts out an example yaml string to stdout
that can be copied into a file and edited.

Since this patch adds a new external requirement (pyyaml) you need
to re-install the app for dev with
pip install -e .
2018-11-21 15:20:11 -08:00
craigerl
b3435c0053 update readme 2018-11-21 14:39:32 -08:00
craigerl
c36b14b4de update readme 2018-11-21 14:38:33 -08:00
craigerl
8390419292 sanitize readme 2018-11-21 14:14:57 -08:00
craigerl
d98af66dba readme again again 2018-11-21 14:13:03 -08:00
craigerl
20c43b4e85 readme again again 2018-11-21 14:11:43 -08:00
craigerl
5ac718dfab readme again 2018-11-21 14:05:45 -08:00
craigerl
d3e5d35d1c readme 2018-11-21 14:04:34 -08:00
craigerl
d61c90e2b7 Merge branch 'master' of https://github.com/craigerl/aprsd 2018-11-21 14:02:03 -08:00
craigerl
4a8181ce30 readme update 2018-11-21 14:01:14 -08:00
Craig Lamparter
74db4098ac
Merge pull request #4 from hemna/pypi
First stab at migrating this to a pypi repo structure
2018-11-21 13:57:02 -08:00
9299da6bde Merge branch 'pypi' of https://github.com/hemna/aprsd into pypi 2018-11-21 13:56:46 -08:00
ecd797d91e First stab at migrating this to a pytpi repo
This patch does some refactoring of the code and the directory
structure to conform to the needs of a pypi project.
The python code now lives in the aprsd directory so it acts like a real
python package that can be installed/included/used.
The aprsd.py is now aprds/main.py

This patch also adds support for using pbr, which enables a consistent
bin install that you can then call as 'aprsd' from the command line.

To use this as a developer you should create a virtualenv
virtualenv .venv
source .venv/bin/activate
pip install -e .

now you can edit the aprds/main.py and then test it by immediately
running aprsd from the command line.

The -e option for pip allows you to install the package as an editable
package in the .venv, so you can hack on it and not need to re-install
every time you make a change.
2018-11-21 13:56:29 -08:00
a2b5908b16 First stab at migrating this to a pytpi repo
This patch does some refactoring of the code and the directory
structure to conform to the needs of a pypi project.
The python code now lives in the aprsd directory so it acts like a real
python package that can be installed/included/used.
The aprsd.py is now aprds/main.py

This patch also adds support for using pbr, which enables a consistent
bin install that you can then call as 'aprsd' from the command line.

To use this as a developer you should create a virtualenv
virtualenv .venv
source .venv/bin/activate
pip install -e .

now you can edit the aprds/main.py and then test it by immediately
running aprsd from the command line.

The -e option for pip allows you to install the package as an editable
package in the .venv, so you can hack on it and not need to re-install
every time you make a change.
2018-11-21 13:38:45 -08:00
Craig Lamparter
126a718318
Merge pull request #3 from hemna/master
Added password, callsign and host
2018-11-21 13:04:58 -08:00