Git Product home page Git Product logo

dronetimeline's Introduction

DroneTimeline

DroneTimeline is a forensic timeline analysis tool for drone.

Requirements

  • Python 3.8
  • PyQt5
  • pluggy 1.0.0

How to run

  • Clone the repository

    git clone https://github.com/studiawan/dronetimeline.git
  • Setup virtual environment

    python -m venv venv
  • Activate the virtual environment

    source venv/bin/activate
  • Install the requirements

    pip install -r requirements.txt
  • Run setup.py

    python setup.py install
  • Run the DroneTimeLine application

    dronetimeline
  • The order of the run: select case directory, import timeline, merge the timelines, and show merged timeline.

  • To select case directory, choose FileSelect Case Directory

  • To import timeline, click FileImport Timeline

  • We then can merge the imported timelines by clicking TimelineMerge Timelines

  • Finally, we can check the merged timeline by choosing TimelineShow Merged Timeline

How to create and install your own plugin

For example, we want to create a plugin to add a new menu to the menu bar. The plugin name is DtGUI-myplugin and the plugin is implementing DtGUI hookspecs.

  • Create a new directory DtGUI-myplugin in src/plugins.
  • Create a new file for example add_new_menu.py in the DtGUI-myplugin directory. This file will contain the implementation of the DtGUI hookspecs. For example we want to add a new menu into menu bar, we can implement the init_menu hookspecs. The implementation is as follows:
    import DtGUI
    from PyQt5.QtWidgets import (
        QAction,
    )
    
    @DtGUI.hookimpl
    def init_menu(DtGUIObj):
        # application menu
        menubar = DtGUIObj.menuBar()
    
        # File menu
        new_menu = menubar.addMenu('&New Customized Menu')
        
        # File menu action
        newmenu_act = QAction('&Select something', DtGUIObj)
        newmenu_act.setShortcut('Ctrl+P')
        newmenu_act.setStatusTip('Select something')
    
        def newmenu_trigger():
            DtGUIObj.show_info_messagebox('You have selected the new menu')
    
        newmenu_act.triggered.connect(newmenu_trigger)
        new_menu.addAction(newmenu_act)
  • Create a new file setup.py in the DtGUI-myplugin directory to package and distribute the plugin. The content of the setup.py is as follows:
    from setuptools import setup
    
    setup(
        name="DtGUI-myplugin",
        version="1.0.0",
        description="DtGUI-myplugin",
        author="Your Name",
        author_email="[email protected]",
        url="",
        entry_points={
            "DtGUI": ["myplugin = add_new_menu"],
        },
        install_requires=[
            "DtGUI",
        ]
    )
  • Install the plugin
    pip install --editable src/plugins/DtGUI-myplugin

License

MIT License.

dronetimeline's People

Contributors

ariestahrt avatar mhdfadlyhasan avatar studiawan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.