Comments (2)
The course and speed is in mph as well. confirmed this from the WX.TXT document comment.
http://www.aprs.org/APRS-docs/WX.TXT
The on-air APRS WX protocols, however,
still will be in MPH and F. Also, the ALARMS are compared to MPH
and F values.
Rain units in reports over the air are supposed to be in hundredths of an inch.
RAIN VALUES: Rain is counted in increments of 0.1 or 0.01 inch or 1mm.
but reports all values in 0.01 inches over the air.
from aprs-python.
I understand the intent of the proposed PR however it doesn’t completely solve the issue..
It is possible for a weather report to have a speed of 0, meaning no wind. This should still be captured as it's relevant for a weather report. Course can also be 0, since some weather stations will report 0 for direction when speed is also 0.
What is happening is that parse_data_extentions() ignores course and speed as for position reports those values are considered to be not valid, thus it trims the course/speed data from the body string. However parse_weather_data() still looks to parse course/speed (000/000), but cannot as that portion of the message was been removed by parse_data_extentions().
My proposed change duplicates the contents of "body" so both parse_data_extentions() and parse_weather_data(body) have the appropriate message string to parse. This causes parse_weather_data() to return proper wind_speed & wind_direction values 100% of the time, even if they’re zero, which is valid data for WX reports.
from aprs-python.
Related Issues (20)
- for i in range(channels): - TypeError: 'float' object cannot be interpreted as an integer HOT 1
- Blocking=False in consumer causes errors HOT 1
- line number ack format not being parsed HOT 1
- unit test for PHG accepts protocol decode error HOT 2
- Drop aprsc server status messages HOT 1
- Comment field jibberish in compressed Mic-E packets HOT 6
- so many format errors HOT 1
- print statement
- "00" Humidity
- parse_weather_data may corrupt comment
- Missing wind speed / direction weather parse failure HOT 2
- PHG and comment parsing error HOT 2
- Comment parsing HOT 2
- Which APRS password? HOT 1
- mox3 is no longer maintained
- Unable to find response from sendall()
- Error while parsing PHGR HOT 1
- Message packets are not what i sent. HOT 1
- Trapping socket.recv(): returned empty exception
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aprs-python.