Skip to content
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

WeatherInfo parses out comment text #137

Merged
merged 1 commit into from
Dec 20, 2022

Conversation

martelro
Copy link
Contributor

Description

Trims the encoded weather measurements from the WeatherInfo info field object. Places the remaining "user" comment into the Comment property of the WeatherInfo object.

#105

Changes

*Add Comment property to WeatherInfo class. PositionInfo base class will still hold the untrimmed comment.
*Add logic in WeatherInfo to determine the consecutive portion of the comment which contains weather measurement data and strips that out of the comment. Weather measurements inside the comment will remain in the user comment and be evaluated as measurements.
*Update PrintPacket to display weather user comment
*Modify and create unit tests

Validation

*Build passes
*Passed unit tests for encode/decode
*Ran with live data and confirmed user comment captured as desired

@CBielstein
Copy link
Owner

Day job and "real life" have been busy. I see and appreciate this PR and will make an effort to review soon. Thank you!

Copy link
Owner

@CBielstein CBielstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR! Love this functionality and can't wait to integrate it in to a little web app I'm working with around this (going public soon, hopefully! 🤞). Thanks for your patience on the review as well, real life was calling...

Just a few questions about approach! Not trying to dictate changes, just curious for thoughts and dialog, so feel free to let me know if what I'm saying isn't the best approach. 😊

src/AprsParser/InfoField/WeatherInfo.cs Show resolved Hide resolved
src/AprsParser/InfoField/WeatherInfo.cs Show resolved Hide resolved
@martelro
Copy link
Contributor Author

martelro commented Oct 11, 2022 via email

Copy link
Owner

@CBielstein CBielstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the 6 month delay. Turns out moving and a new role at work get pretty busy.

Thanks for great new functionality on this library!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants