- Download the main.py file to your robot. If you are using the VSCode extension, click the download button on the blue bar at the bottom.
- Install dependency's on your local machine
- If you don't already have python you need to install it.
- Windows: Go to Python's website. Any version should work.
- MacOS/Linux: You should already have Python installed.
- Install redis python package
- Open command prompt or terminal and run the following:
- You also need to have Redis with the Time Series module installed. Check out this guide
python -m pip install redis
- If you don't already have python you need to install it.
- Start the program on the robot
- Run decode.py
- If you have it open in VSCode click on the run arrow in the top right.
- You might be able to double click on it, or start it from the command line/terminal:
python decode.py
- Select the serial port.
- Windows: Check device manager then select the correct COM port
- MacOS: It is normally
cu.usbmodem-113
(Note: I need to double check)
You should now be logging data in Redis. You might also want to install Grafana