Welcome to PhantomPilots.com

Sign up for a weekly email of the latest drone news & information

node.js log parser

Discussion in 'Pro/Adv Discussion' started by AwfulPilot, Jan 2, 2016.

  1. AwfulPilot

    Joined:
    Dec 28, 2015
    Messages:
    33
    Likes Received:
    9
    Location:
    West Yorkshire, UK
    Hi all,

    A post for the coding types, so sorry if this is greek to you!
    I couldn't find any code out there for parsing DJI log files, so I wrote a small npm library for doing it.

    dji-log-parser

    No docs yet (I only started on this today), but I'll write up some docs soon.
    I've also added a very basic example script, which'll log out time/latitude/longitude - it can be found here: dji-log-parser/example.js at master · mikeemoo/dji-log-parser · GitHub

    Hopefully I'll wrap it up into something a bit smoother to work with eventually, but I wanted to get some initial code out there early in case anyone wanted to tinker.

    Thanks
     
  2. msinger

    Approved Vendor

    Joined:
    Oct 30, 2014
    Messages:
    18,871
    Likes Received:
    5,559
    Location:
    US
    Awesome! Thanks for sharing this :)
     
  3. msinger

    Approved Vendor

    Joined:
    Oct 30, 2014
    Messages:
    18,871
    Likes Received:
    5,559
    Location:
    US
    Are you still working on this?
     
  4. mcotton

    Joined:
    Apr 3, 2015
    Messages:
    4
    Likes Received:
    1
    I just found you project and will be submitting pull requests instead of forking. Thanks for getting this started
     
  5. ferraript

    Joined:
    Feb 3, 2016
    Messages:
    228
    Likes Received:
    74
    Location:
    Slovakia/Kosice
    This is amazing, thanks a lot!
     
  6. flyNfrank

    Joined:
    Feb 1, 2014
    Messages:
    4,214
    Likes Received:
    910
    Location:
    Indy, USA
    How is this used?
     
  7. ferraript

    Joined:
    Feb 3, 2016
    Messages:
    228
    Likes Received:
    74
    Location:
    Slovakia/Kosice
    I don't want to rely on online converters and because nobody has created offline tool, maybe I'll make it by myself.
     
  8. flyNfrank

    Joined:
    Feb 1, 2014
    Messages:
    4,214
    Likes Received:
    910
    Location:
    Indy, USA
    Does this mean the above info can not be used in some way to view log files? When you said it was "amazing" I thought you were looking over your flight logs with the info. If I could see some of my flight details while waiting for the new viewer to be completed it would be great!
     
  9. ferraript

    Joined:
    Feb 3, 2016
    Messages:
    228
    Likes Received:
    74
    Location:
    Slovakia/Kosice
    I meant that I can use information stored in that source code. But I'm no JS programmer so I don't know how to use those sources for creating webpage.

    You still can, at the HealthyDrones website (but CSV contains only few columns). Or you can pay $1 to get very detailed CSV from djilogs.com :)
     
  10. phuocsandiego

    Joined:
    May 3, 2015
    Messages:
    151
    Likes Received:
    65
    Location:
    San Diego, CA
    I'm creating an offline tool that I'll release to forum members. Still a work in progress and right now works only with Litchi logs as they're in straight CSV format. My long term goal is to try and figure out how to parse the DJI Go app logs. Here's what I have so far for my offline tool:

     
  11. flyNfrank

    Joined:
    Feb 1, 2014
    Messages:
    4,214
    Likes Received:
    910
    Location:
    Indy, USA
    Not bad so far. I hope it all goes as smooth as possible for you. My preference would be to have the dji .txt files similar to the comprehensive converted files. That setup has the most flight logged data.
     
    phuocsandiego likes this.
  12. alokbhargava

    Joined:
    Sep 28, 2015
    Messages:
    5,114
    Likes Received:
    1,648
    Location:
    San Francisco, CA
    Great effort. I'm seeing few more working on similar projects. Why all don't join and make a combined excellent program.
     
    Erroll likes this.