1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-11-04 16:01:15 -05:00
Commit Graph

923 Commits

Author SHA1 Message Date
f400c6004e Fix for filtering curse words
This patch adds a fix for filtering out curse words.
This adds a flag to the regex to ignore case!
2024-03-23 18:02:01 -04:00
873fc06608 added packet counter random int
The packet counter now starts at a random number between 1 and 9999
instead of always at 1.
2024-03-23 17:56:49 -04:00
f53df24988 More packet cleanup and tests 2024-03-23 17:05:41 -04:00
f4356e4a20 Show comment in multiline packet output
This patch adds the comment for a packet if it exists
in the multiline log output
2024-03-23 13:00:51 -04:00
c581dc5020 Added new config option log_packet_format
This new DEFAULT group option specifies what format to use
when logging a packet.
2024-03-23 11:50:01 -04:00
da7b7124d7 Some packet cleanup 2024-03-23 10:54:10 -04:00
9e26df26d6 Added new webchat config option for logging
This patch adds a new config option for the webchat command
to disable url request logging.
2024-03-23 10:46:17 -04:00
b461231c00 Fix some pep8 issues 2024-03-23 10:24:02 -04:00
1e6c483002 Completely redo logging of packets!!
refactored all logging of packets.

Packet class now doesn't do logging.
the format of the packet log now lives on a single line with
colors.

Created a new packet property called human_info, which
creates a string for the payload of each packet type
in a human readable format.

TODO: need to create a config option to allow showing the
older style of multiline logs for packets.
2024-03-22 23:20:16 -04:00
127d3b3f26 Fixed some logging in webchat 2024-03-22 23:19:54 -04:00
f450238348 Added missing packet types in listen command
This patch adds some missing packet objects for the
listen command.  Also moves the keepalive startup
a little later
2024-03-22 23:18:47 -04:00
9858955d34 Don't call stats so often in webchat 2024-03-22 23:16:00 -04:00
e386e91f6e Eliminated need for from_aprslib_dict
This patch eliminates the need for a custom
static method on each Packetclass to convert an aprslib
raw decoded dictionary -> correct Packet class.

This now uses the built in dataclasses_json from_dict()
mixin with an override for both the WeatherPacket and
the ThirdPartyPacket.

This patch also adds the TelemetryPacket and adds some
missing members to a few of the classes from test runs
decoding all packets from APRS-IS -> Packet classes.

Also adds some verification for packets in test_packets
2024-03-20 21:46:43 -04:00
386d2bea62 Fix for micE packet decoding with mbits 2024-03-20 16:12:18 -04:00
eada5e9ce2 updated dev-requirements 2024-03-20 15:52:01 -04:00
00e185b4e7 Fixed some tox errors related to mypy 2024-03-20 15:41:29 -04:00
1477e61b0f Refactored packets
this patch removes the need for dacite2 package for creating
packet objects from the aprslib decoded packet dictionary.

moved the factory method from the base Packet object
to the core module.
2024-03-20 15:41:25 -04:00
6f1d6b4122 removed print 2024-03-20 15:39:18 -04:00
90f212e6dc small refactor of stats usage in version plugin 2024-03-20 15:39:18 -04:00
9c77ca26be Added type setting on pluging.py for mypy 2024-03-20 15:39:18 -04:00
d80277c9d8 Moved Threads list for mypy
This patch moves the APRSDThreadList to the bottom
of the file so that we can specify the type in the
threads_list member for mypy.
2024-03-20 15:39:18 -04:00
29b4b04eee No need to synchronize on stats
this patch updates the stats object to remove the synchronize
on calling stats.  each property on the stats object are already
synchronized.
2024-03-20 15:39:18 -04:00
12dab284cb Start to add types 2024-03-20 15:39:18 -04:00
d0f53c563f Update tox for mypy runs 2024-03-20 15:39:18 -04:00
24830ae810
Merge pull request #155 from craigerl/dependabot/pip/black-24.3.0
Bump black from 24.2.0 to 24.3.0
2024-03-20 15:38:59 -04:00
dependabot[bot]
52896a1c6f
Bump black from 24.2.0 to 24.3.0
Bumps [black](https://github.com/psf/black) from 24.2.0 to 24.3.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/24.2.0...24.3.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-20 18:14:03 +00:00
82b3761628 replaced access to conf from uwsgi 2024-03-14 12:15:23 -04:00
8797dfd072 Fixed call to setup_logging in uwsgi 2024-03-14 12:11:30 -04:00
c1acdc2510 Fixed access to conf.log in logging_setup 2024-03-14 11:41:34 -04:00
71cd7e0ab5 Changelog for 3.3.2 2024-03-13 13:49:11 -04:00
d485f484ec Remove warning during sample-config
This patch removes a warning log during sample-config
generation
2024-03-13 13:47:01 -04:00
f810c02d5d Removed print in utils
this patch removes a leftover debug print in utils.load_entry_points
that was causing sample-config output to be bogus.
2024-03-13 13:44:09 -04:00
50e24abb81 Updates for 3.3.1 2024-03-12 10:41:16 -04:00
10d023dd7b Fixed failure with fetch-stats
This patch fails nicely with the fetch-stats if it can't connect
with the rpc server on the other end.
2024-03-12 10:37:17 -04:00
cb9456b29d Fixed problem with list-plugins
This patch includes a fix to the list-plugins and
list-extensions commands.
2024-03-12 10:36:26 -04:00
c37e1d58bb Changelog for 3.3.0 2024-03-12 10:08:38 -04:00
0ca5ceee7e sample-config fix
This patch makes a change on how it's calling importlib.entry_points
to only fetch the group we want, which is 'oslo.config.opts'.
This fixes a problem with python 3.12 compatibility.
2024-03-11 11:53:28 -04:00
2e9c9d40e1 Fixed registry url post 2024-03-08 11:49:10 -05:00
66004f639f Changed processpkt message
this includes the pkt.key in the log entry
2024-03-08 11:25:46 -05:00
0b0afd39ed Fixed RegistryThread not sending requests 2024-03-08 09:18:28 -05:00
aec88d4a7e use log.setup_logging 2024-03-07 12:43:10 -05:00
24bbea1d49 Disable debug logs for aprslib
This patch adds a disable of propogating the debug logs
from the aprslib parsing.  We don't really need to see
this in our aprsd services.
2024-03-07 09:46:36 -05:00
5d3f42f411 Make registry thread sleep
This patch adds a required sleep of 1 second in each
registry thread loop to prevent runaway cpu usage
2024-03-07 08:37:09 -05:00
44a98850c9
Merge pull request #147 from craigerl/loguru
Replace slow rich logging with loguru
2024-03-06 14:18:19 -05:00
2cb9c2a31c Put threads first after date/time 2024-03-06 13:39:51 -05:00
2fefa9fcd6 Replace slow rich logging with loguru
This patch removes the rich logging with
the modern loguru logging
2024-03-06 13:00:52 -05:00
d092a43ec9 Updated requirements 2024-03-06 12:59:21 -05:00
d1a09fc6b5 Fixed pep8 2024-02-28 16:24:01 -05:00
ff051bc285 Added list-extensions and updated README.rst
This patch adds the list-extensions command to support
showing the available extensions for APRSD that live on
pypi.
2024-02-28 16:10:55 -05:00
5fd91a2172 Change defaults for beacon and registry
The beacon frequency is now every 30 minutes by default.
The registry call is now every hour.
2024-02-28 13:23:11 -05:00