Giter Club home page Giter Club logo

nmea0183-utilities's Introduction

Signal K

signal-k-logo-tagline

Signal K is a modern and open data format for marine use. Built on standard web technologies including JSON, WebSockets and HTTP, Signal K provides a method for sharing information in a way that is friendly to WiFi, cellphones, tablets and the Internet. A format available to everyone, where anyone can contribute, Signal K is the first truly open data format for the marine industry and is set to revolutionize how we consume and interact with data on boats.

https://signalk.org

nmea0183-utilities's People

Contributors

e-sailing avatar fabdrol avatar fabianfisahn avatar iholck avatar joabakk avatar marcelrv avatar sbender9 avatar tkurki avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nmea0183-utilities's Issues

Conversion to Fahrenheit

Hello,
is planned to integrate a conversion from Kelvin to Fahrenheit?
Would be great!

Thank you
Fabian

Converts empty RMC values for variation into invalid 0.0 result

If RMC is missing fields I would think those values should not be set to 0.0 and either set to null or not set.

eg. navigation.variation should not be set to 0.0 if RMC sentence is missing either of the two required values.
I'm having the issue w/ downstream apps/plugins displaying magnetic / true north incorrectly.

I could do a PR if that would help

bug in timestamp conversion

timestamp expects the time to have exactly 6 digits e.g. 112233 which makes
11 hours
22 minutes
33 seconds.

But gps receivers like u-blox send the time in the format containing milliseconds: 112233.44 which would be translated to
11 hours
22 minutes
44 seconds instead of 33 seconds
The functions should not take the last two digits as seconds asuming that the string is 6 digits long!

Please include milliseconds in your algorithm and check for both formats: 6 digits and 9 digits!

Month is off by one in timestamp()

If timestamp() is called with no parameters the returned date is now minus one month:

   } else {
      var dt = new Date();
      year = dt.getUTCFullYear();
      month = dt.getUTCMonth();
      day = dt.getUTCDate();
    }

    /* construct */
    var d = new Date(Date.UTC(year, (month - 1), day, hours, minutes, seconds));

Probably the fix can be:

   } else {
      var dt = new Date();
      year = dt.getUTCFullYear();
      month = dt.getUTCMonth() + 1;  // [1;12] as in NMEA
      day = dt.getUTCDate();
    }

    /* construct */
    var d = new Date(Date.UTC(year, (month - 1), day, hours, minutes, seconds));

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.