1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-11-10 10:33:31 -05:00
Commit Graph

332 Commits

Author SHA1 Message Date
18acd64334 fixed sample-config double print 2021-01-14 13:43:10 -05:00
Craig Lamparter
e11a84bf05 make sample config easier to interpret 2021-01-14 10:41:40 -08:00
42b2e227e1 Fixed comments 2021-01-14 12:44:58 -05:00
cdde9c290b Added the ability to add comments to the config file
This patch adds a new add_config_comments() function in utils.py
that allows you to insert a comment string in a raw_yaml string
that's already been created from the yaml.dump() call.
2021-01-14 12:38:30 -05:00
264b7536b4 Updated docker run.sh script
This updates the run.sh script during container start time
to change the env var APRS_PLUGINS to APRSD_PLUGINS
2021-01-12 16:17:11 -05:00
54072a2103 Added --raw format for sending messages
aprsd send-message --raw "RAW APRS MESSAGE HERE"
2021-01-12 14:50:49 -05:00
f022a3e421 Fixed --quiet option
This patch fixes the --quiet option for both send-message
and server commands.   Don't write anything to STDOUT.
2021-01-12 11:26:12 -05:00
90c4c6c59d Added send-message login checking and --no-ack
This patch adds the login failure checking for the
send-message command as well as a new command line option
--no-ack.   The new option enables sending the message directly
to aprs-is servers and then exiting immediately.  It doesn't wait
for an ack to come back.
2021-01-12 11:18:17 -05:00
bdeaf6348a Added new config for aprs.fi API Key
This patch adds the new required aprs.fi api key.  This key is used
by 2 of the core plugins, locationPlugin and weatherPlugin.

You must set the apiKey in the config, or aprsd won't start.
2021-01-12 09:51:36 -05:00
3dd23fa2ad Added a fix for failed logins to APRS-IS
This patch adds a check for a failed login to ARPS due to
LoginError.  This accounts for bad accounts or username/password
failures.  aprsd server will exit immediately upon failed login now.
2021-01-12 09:31:04 -05:00
94708024da Fixed unit test for fortune plugin 2021-01-11 14:29:02 -05:00
7ab26135c2 Fixed fortune plugin failures
On alpine containers the fortune options aren't all available
and we were silently failing.  Updated the fortune plugin to capture
shell failures.
2021-01-11 14:14:16 -05:00
Craig Lamparter
76bbdfc728 getting out of git hell with client.py problems 2021-01-11 10:14:02 -08:00
ac4c3d6562 Extend APRS.IS object to change login string
This patch copies the aprslib.inet IS object's _send_login()
method so we can change the login app identification string.
2021-01-11 13:08:30 -05:00
5de1b3e305 Extend APRS.IS object to change login string
This patch copies the aprslib.inet IS object's _send_login()
method so we can change the login app identification string.
2021-01-11 12:43:51 -05:00
Craig Lamparter
e1a292d8e0 expect different reply from query plugin 2021-01-11 09:20:25 -08:00
Craig Lamparter
839256c76d Merge branch 'craiger-stable' of https://github.com/craigerl/aprsd into craiger-stable 2021-01-11 09:13:51 -08:00
Craig Lamparter
d9141dc2d0 update query plugin to resend last N messages. syntax: ?rN 2021-01-11 09:13:37 -08:00
68e6f5b986 Added unit test for QueryPlugin
This patch adds a simple test for the QueryPlugin
2021-01-11 12:09:29 -05:00
1ce2a56140 Updated MsgTrack restart_delayed
This patch updates the restart_delayed method to accept the count of
messages to restart as well as the most_recent flag that sorts the
messages based on most recent first.  If you want the oldest first,
then pass in False
2021-01-11 11:03:41 -05:00
a385d171bd refactor Plugin objects to plugins directory
This patch moves all of the plugins out of plugin.py
into their own separate plugins/<plugin>.py file.  This
makes it easier to maintain each plugin.

NOTE:  You will have to update your ~/.config/aprsd/aprsd.yml

to change the python location path for each plugin enabled.

For example:
OLD:
  enabled_plugins:
   - aprsd.plugin.EmailPlugin

TO NEW
  enabled_plugins:
   - aprsd.plugins.email.EmailPlugin
2021-01-11 08:28:08 -05:00
f534646288 Updated README with more workflow details 2021-01-11 08:26:30 -05:00
Craig Lamparter
fdf59b31e1 Merge branch 'craiger-stable' of https://github.com/craigerl/aprsd into craiger-stable 2021-01-10 14:50:41 -08:00
Craig Lamparter
0aa7fe7a14 change query character syntax, don't reply that we're resending stuff 2021-01-10 14:44:40 -08:00
cc0d0fd523 Added APRSD system diagram to docs
This patch adds the aprsd overview diagram to the
main README as well as the generated docs.
2021-01-10 16:11:53 -05:00
e6dee3a5b0 Disable MX record validation
This patch disables the MX record checking for
email address shortcuts.  verizon is a shit
smtp host that won't let you check emails as
existing/valid.  Email validation still is checked
against RFC based regex for email address as
well as blacklist checking.

TODO(hemna): make this optionally enabled
by config file.
2021-01-10 13:22:23 -05:00
Craig Lamparter
5db3c8c9b9
Merge pull request #31 from craigerl/update_readme
Updated README with more workflow details
2021-01-10 08:23:53 -08:00
7423df6b25 Added some more badges to readme files
Added badges for both docs/readme.rst and main README.rst
2021-01-09 20:12:23 -05:00
bd35a610ff Updated build for docs tox -edocs
Can now run tox -edocs
2021-01-09 19:36:55 -05:00
Craig Lamparter
e7f2ebf17e switch command characters for query plugin 2021-01-09 15:50:04 -08:00
1763e94f93 Fix broken test 2021-01-09 18:44:36 -05:00
Craig Lamparter
45dd3f0205 undo git disaster 2021-01-09 15:39:37 -08:00
Craig Lamparter
a33462327a swap Query command characters a bit 2021-01-09 14:02:16 -08:00
ee2aeb5157 Added Sphinx based documentation
This patch adds the docuemntation source tree in docs.

You can build the documentation with

tox -edocs

View the documentation by opening a browser and viewing
aprsd/docs/_build/index.html
2021-01-09 14:12:13 -05:00
d5a34b4d11 refactor Plugin objects to plugins directory
This patch moves all of the plugins out of plugin.py
into their own separate plugins/<plugin>.py file.  This
makes it easier to maintain each plugin.

NOTE:  You will have to update your ~/.config/aprsd/aprsd.yml

to change the python location path for each plugin enabled.

For example:
OLD:
  enabled_plugins:
   - aprsd.plugin.EmailPlugin

TO NEW
  enabled_plugins:
   - aprsd.plugins.email.EmailPlugin
2021-01-09 10:00:37 -05:00
df7a4b1fd7
Merge branch 'master' into craiger-stable 2021-01-08 21:09:41 -05:00
c51a9452d9 Updated Makefile
This patch updates the Makefile to only run deps if certain files
don't exist already.   Also added the build and upload tasks to
make it easier to test, build and upload a release to pypi
2021-01-08 20:58:21 -05:00
a7c20430fe removed double-quote-string-fixer 2021-01-08 20:58:21 -05:00
231c15b1af Lots of fixes 2021-01-08 20:58:18 -05:00
4c0150dd97 Added more pre-commit hook tests
also added pre-commit job for tox.
2021-01-08 20:57:58 -05:00
9f4cc27a11 Fixed email shortcut lookup
This patch fixes the email.get_email_from_shortcut.  It ensures that
if the lookup isn't found in the shortcut list, it simply returns
the original value.  This patch also adds a unit test to specifically
test this function to always return the correct value.
2021-01-08 19:35:16 -05:00
f976a1c320 Added Makefile for easy dev setup
This patch adds a Makefile for helping setup a dev environment
as well as running tox tests for those that aren't used to python
development.
2021-01-08 17:46:28 -05:00
0a741cedd5
Merge pull request #34 from craigerl/makefile
Added Makefile for easy dev setup
2021-01-08 17:30:19 -05:00
d084360599 Added Makefile for easy dev setup
This patch adds a Makefile for helping setup a dev environment
as well as running tox tests for those that aren't used to python
development.
2021-01-08 17:23:35 -05:00
dbc891f738 Cleaned out old ack_dict
This patch removes remnants of ack_dict from the code.
The new mechanism is the MsgTrack object queue.
2021-01-08 15:11:27 -05:00
Craig Lamparter
1697395e84 add null reply for send_email 2021-01-08 11:02:57 -08:00
Craig Lamparter
7b51c36f65
Merge pull request #32 from craigerl/craiger-test
backout my patch that broke tox, trying to push to craiger-test branch
2021-01-08 09:35:39 -08:00
441ac15a0a Updated README with more workflow details 2021-01-08 12:28:17 -05:00
Craig Lamparter
96c8422990 backout my patch that broke tox, trying to push to craiger-test branch 2021-01-08 09:24:51 -08:00
e83ee31310 Fixed failures caused by last commit
This patch fixes test failures caused by last commit.
2021-01-08 10:57:34 -05:00