GithubHelp home page GithubHelp logo

deepracer-telemetry's Introduction

AWS DeepRacer Live Telemetry Graphics

This project reads the telemetry data from a physical AWS DeepRacer car and displays the current throttle as a live Gauge chart.

The background is set as a bright green colour, designed to be used as an overlay graphic in OBS for use in the DeepRacer Underground series of streamed races.

There are two moving parts:

  1. A small web server which publishes the gauge chart as a simple HTML page.
  2. A client app which SSH's to the DeepRacer car and streams the telemetry data, and then pushes to the web server via a websocket connection.

Prerequisites

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

Server

The server can be installed anywhere, locally or elsewhere (I use a micro EC2 instance when it needs to be public)

Unless you are running the server on the same machine as your web browser you must edit server/html/index.html and set websocket_url to the IP of the machine running the server.

source venv/bin/activate (if not already active)
cd server
uvicorn main:app --reload

Note that by default it will only listen on http://127.0.0.1:8000

If you want the server to be exposed publically then use the following command instead:

uvicorn main:app --host 0.0.0.0 --port 8000

Client

Do this in another terminal window.

Edit telemetry_client.py and set the car IP and password. You also need to set the hostname/IP of the server URL. If you're running the server locally then you can leave this at it's default.

source venv/bin/activate
python ./telemetry_client.py

Now browse to the URL of the server (defaults to http://127.0.0.1:8000) to view the gauge. When you change the throttle via the standard DeepRacer web interface the gauge should update.

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.