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:
    35
    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:
    24,832
    Likes Received:
    7,544
    Location:
    Harrisburg, PA (US)
    Awesome! Thanks for sharing this :)
     
  3. msinger

    Approved Vendor

    Joined:
    Oct 30, 2014
    Messages:
    24,832
    Likes Received:
    7,544
    Location:
    Harrisburg, PA (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:
    332
    Likes Received:
    146
    Location:
    Slovakia/Kosice
    This is amazing, thanks a lot!
     
  6. flyNfrank

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

    Joined:
    Feb 3, 2016
    Messages:
    332
    Likes Received:
    146
    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,301
    Likes Received:
    942
    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:
    332
    Likes Received:
    146
    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:
    154
    Likes Received:
    69
    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,301
    Likes Received:
    942
    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:
    6,259
    Likes Received:
    2,080
    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.
  13. Thirk

    Joined:
    Mar 16, 2017
    Messages:
    2
    Likes Received:
    0
    Has this been updated for the new P4/Mavic logs?
     
  14. msinger

    Approved Vendor

    Joined:
    Oct 30, 2014
    Messages:
    24,832
    Likes Received:
    7,544
    Location:
    Harrisburg, PA (US)
    No. It no longer works as-is.
     
Loading...
Similar Threads - node log parser Forum Date
NODE - Canada letter to MP's writing site Rules and Regulations Jun 5, 2017
DJI Introducing NODE – A Drone Pilots Advocacy Group General Discussion Apr 4, 2017
NODE - Network of Drone Enthusiasts campaign General Discussion Mar 3, 2017
Phantom 4 technology Phantom 4 Pro Help Today at 12:27 AM
Get logs after Battery Overcurrent, Flyaway+Crash General Discussion Yesterday at 2:48 PM