Open wehimwich opened 4 years ago
Actually:
- if len(fields) < 2 {
+ if len(fields) < 3 {
needs to be:
- if len(fields) < 2 {
+ if len(fields) < 4 {
D'oh. Need to learn go.
Some wind sensors are configured to have the speed and direction data in different positions in the device response. There is not an urgent need to do this, but would it be easy to add (optionally?) specifying in gromet.yml which parameters are which?
For example, for the NMEA (0183 V2.20 :):) ) wind data format, the code had to be modified thusly:
Of course in general the direction could be in a different field too. As the example shows, the number of required fields is also dependent.
This has not been an issue for the MET4 data so far.