-
-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APRS (Automated Packet Reporting System) Ham Radio plugin #1005
Conversation
Note: this plugin uses unidecode as external dependency (and has been added to |
I'll need to review this, hopefully this weekend. Offhand, i would like:
Overall though, you did a nice job with the actual plugin. I can help with the test cases this weekend (hopefully). |
I am with you on the additional plugin requirements issue - wasn't happy about this either. I have amended the code - which now detects if the additional package is installed or not (meaning that I reverted Apprise's requirements.txt file to its original setting). Last option would be a complete removal option of this text pre-processing and have it done outside of Apprise. Let me know whatever option you prefer. I will also remove the images folder accordingly. No rush with reviewing this PR. |
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #1005 +/- ##
========================================
Coverage 99.51% 99.52%
========================================
Files 126 128 +2
Lines 16868 17126 +258
Branches 3457 3502 +45
========================================
+ Hits 16787 17044 +257
Misses 70 70
- Partials 11 12 +1 ☔ View full report in Codecov by Sentry. |
- Changes to logging
- increased wait value for receive-after-send-to-socket routines
The only test cases i haven't added are your added requirements for I would presume you could just perform all your unidecode calls before using the Aside from that, i got rid of your |
I pushed 1 more commit that is easily rolled back to show your addition completed and ready for Apprise. Perhaps we could go with this, and do another release later one to improve your edge case character handling? |
Sorry for my delayed response - I have been completely snowed-under at work. Please feel free to remove the 'unidecode' references from the code, if necessary. The reason why I initially wanted to include that module in the plugin is the following: Imagine that you use a single Apprise config file which contains two target messengers:
Now let's assume that you send a cyrillic UTF-8 message to both targets by using that config file. Messenger A is capable of digesting the message as is - but messenger B might choke on that message and/or its contents will trigger unknown side effects if it gets 'translated' to a control character. Currently, the only workaround is to use two Apprise config files: one for regular messengers and one for plain-text messengers where the outgoing text can get preprocessed by the program that calls Apprise. I don't see any other option - unless the pre-processing of the text can be done inside of the plugin. tl;dr: for now, feel free to get rid of the 'unidecode' package. For a future Apprise version, running an internal UTF-to-plain-ASCII-conversion for those messengers not capable of sending UTF-8 content might be a nice-to-have. Maybe Assuming that each plugin 'knows' what text format it can process, that pre-processor can easily be handled by Apprise. Again: thanks and kind regards from Germany! 😄 |
Description: APRS (Automated Packet Reporting System) Ham Radio plugin
Related issue (if applicable): not available; new plugin
test_plugin_aprs_urls
part to work (maybe I'm just plain stupid). All other tests seem to work fine.New Service Completion Status
%global common_description
Checklist
applies to the actual plugin
)flake8
)Description
)Testing
Anyone can help test this source code as follows: