Giter Site home page Giter Site logo

easywaze's Introduction

easywaze

Project to get metrics from Waze CCP platform and genarate a set of metrics and alerts.

Exporting data

Its super easy to export captured data. You can do it by command line and tweak the date range and table to be exported.


Make sure that

  • you did the steps above
  • you are in the root cd / tabl

Format Command Notes
Json PYTHONPATH=. python app/exporters/export.py to_json set the output path with --output_path <path>
Postgis PYTHONPATH=. python app/exporters/export.py to_postgis It loads a tables on the waze schema based on the WazeCCPProcessor

modifiers

Name Modifier Arguments Description
Tables --tables list of tables ['alerts', 'jams'] Default is all tables ['alerts', 'jams', 'irregularities]`
Time Range --time_range int It is the number of days backwards given a final date. If the final date is not given, the final date is today. Default is 30
Final Date --final_date string as date 2018-07-30 The last day to be computed. Default is None.
Initial Date --initial_date string as date 2018-07-30 The first day to be computed. Default is None
Chunksize --chunksize int Number of files to be processed at time
Output Path --output_path str path app/dumps Where to store loggingthe raw data
Logging --logging Bollean True or False Activate INFO logging
Force Export --force-export Bollean True or False Reload database and export

Acesse localhost:5000 com root e root e confira se os dados foram capturados

Developer mode

This mode allow the development of EasyWaze.

# Build Docker images
make build

# Start all containers and prepare directories
make prepare

# Enter into shell mode inside the EasyWaze container
make shell

# Install dependencies
pip install -r requirements.txt

# Run main file
python main.py

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.