Code Monkey home page Code Monkey logo

toyota-data-feeder's Introduction

Toyota-data-feeder

This is a demo application which playbacks included .csv file indefinitely, and sends it as mqtt message to mqtt broker. Included csv contains raw data dump with mapped signals and units of Toyota RAV4 Hybrid car.

Do note that for the first 5 minutes there is not much happening. This is because the driver of the car was doing something else than driving. Log file takes 13 minutes to playback.

git clone https://github.com/smaddis/toyota-data-feeder.git

Dev environment

Python 3.9

If you want to test application locally, it is recommended to setup Python virtualenv first.

python3 -m venv .venv
source .venv/bin/Activate
pip install -r requirements.txt

Set env variables

export MQTT_URL=localhost MQTT_PORT=8883 CLIENT_ID=foo

MQTT Broker

This application requires an MQTT broker which is set up in a CSC Rahti cloud with correct certificates.

Application uses included ca.crt for establishing encrypted connection but doesn't check for server hostname.

Environment variables

Application takes three env variables

  • MQTT_URL Takes Mqtt broker url
  • MQTT_PORT Mqtt broker port
  • CLIENT_ID Client id

Mqtt topic

Topic format is {CLIENT_ID}/toyota/SIGNAL_NAME

Eg. topic: student069/toyota/SPEED value 34

Other

Thanks for mitchdetailed for providing tool to convert SocketCAN log with DBC file to csv file.

Link to Log-CANverter repo

You can find original log files from /assets folder in this repo

toyota-data-feeder's People

Contributors

msrn 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.