Giter VIP home page Giter VIP logo

openbikesensor-scripts's Introduction

OpenBikeSensor Scripts Collection

This repository contains scripts and utilities for working with OpenBikeSensor data. This is mostly for processing the data for visualization, but also other tangential use cases.

Installation

The scripts in this repository are python based. You will need a up to date python installation (Python 3.8 or above). We recommend the use of a virtual environment to keep dependencies and the installation of this package self-contained. You can of course install everything into your system as well, but that is not recommended in the standard use case.

Run the following commands to set up a (development) version of this package. This means that editing the source code, or updating it using git, will automatically refer to the new version when calling the command line scripts.

pip install -e .

If you have both, Python 3 und Python 2, on your machine, then you must run:

pip3 install -e .

This installs the following scripts into ~/.local/bin:

  • obs-face
  • obs-filter-privacy
  • obs-process-track
  • obs-provision

If you update the source code and some imports to libraries do not work, simply re-running the above command should install them. For a non-development installation, omit the -e. Other pip options can be used as normal.

Usage

The following scripts are provided. Please refer to the respective documentation files for details on how to use them.

  • obs-face, a toolset for filtering, annotating, consolidating and exporting OpenBikeSensor measurements
  • obs-filter-privacy, a small utility for anonymization of a CSV file that removes measurments that are inside privacy zones

Additonally, this repository contains static websites, which can be used to visualizes the JSON-output of the obs-face script in a map overlay.

License

Copyright (C) 2020-2021 OpenBikeSensor Contributors
Contact: https://openbikesensor.org

The OpenBikeSensor Scripts Collection is free software: you can redistribute it
and/or modify it under the terms of the GNU Lesser General Public License
as published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

The OpenBikeSensor Scripts Collection is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with the OpenBikeSensor Scripts Collection. If not, see
<http://www.gnu.org/licenses/>.

See also COPYING and COPYING.LESSER.

openbikesensor-scripts's People

Contributors

opatut avatar florusciphersmith avatar mega-stoffel avatar gluap avatar chaubold avatar boldt avatar natenom avatar

openbikesensor-scripts's Issues

Normalize values

Currently the number of measurements is not taken into account.

Ideally the numbers should be normalized to number of overtakes per minute or hour.

Visualize frequency on map

Propose to vary the line width to visualize the overtake frequency.

According to guidelines bike should not share street when car frequency is more than 10000 cars per day. Hence suggest to normalize between 1 and 5 pixel width depending on overtake rate normalized to 10k cars which approximates 2 cars per minute.

Split in 100m segments instead of random OSM segments

Currently data is shown according to OSM segments. These segments typically vary depending on creator/editor of the data.

Proposal is to split into 100m segments. To avoid moving of nodes the actual segment length may vary between 75 and 150 meter.

Show statistics for segment and complete street.

Statistics splitting into segments is rather arbitrary. Propose to show total of a street by matching street name and the individual ones.

Ideally it should be possible to show statistics for a selected section.

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.