Index: README.md =================================================================== diff -u --- README.md (revision 0) +++ README.md (revision e13100c52672848bf5adf82f364f2be97ee5c78d) @@ -0,0 +1,29 @@ +# Dial-In + +### Linux Setup + +After cloning the repository, run the following commands: + +``` +$ ./setup_environment.sh +$ source venv/bin/activate +(venv) $ python3 YourDialinScript.py +``` + +### Windows Setup + +After cloning the repository and installing Python3, open a cmd prompt in the Dial-In directory: + +``` +C:\path\to\dialin> setup_environment_windows.bat +... +(venv) C:\path\to\dialin> py -3 YourDialinScript.py + +``` +If the environment has been previously set up + +``` +> activate_environment_windows.bat +(venv) > py -3 YourDialinScript.py +``` + Index: activate_environment_windows.bat =================================================================== diff -u --- activate_environment_windows.bat (revision 0) +++ activate_environment_windows.bat (revision e13100c52672848bf5adf82f364f2be97ee5c78d) @@ -0,0 +1 @@ +venv\Scripts\activate.bat \ No newline at end of file Index: setup_canbus.sh =================================================================== diff -u --- setup_canbus.sh (revision 0) +++ setup_canbus.sh (revision e13100c52672848bf5adf82f364f2be97ee5c78d) @@ -0,0 +1,5 @@ +#!/bin/bash + + +sudo ip link set can0 up type can bitrate 250000 restart-ms 100 + Index: setup_environment.sh =================================================================== diff -u --- setup_environment.sh (revision 0) +++ setup_environment.sh (revision e13100c52672848bf5adf82f364f2be97ee5c78d) @@ -0,0 +1,7 @@ +#!/bin/bash + +pip3 install virtualenv +virtualenv --python=python3 venv +source venv/bin/activate +pip3 install -r requirements.txt +echo "Please run 'source venv/bin/activate' to use the newly created environment." Index: setup_environment_windows.bat =================================================================== diff -u --- setup_environment_windows.bat (revision 0) +++ setup_environment_windows.bat (revision e13100c52672848bf5adf82f364f2be97ee5c78d) @@ -0,0 +1,5 @@ +pip3 install virtualenv +virtualenv --python=python3 venv +source venv/Scripts/activate +pip3 install -r requirements.txt +venv\Scripts\activate.bat Fisheye: Tag e13100c52672848bf5adf82f364f2be97ee5c78d refers to a dead (removed) revision in file `setupcanbus.sh'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag e13100c52672848bf5adf82f364f2be97ee5c78d refers to a dead (removed) revision in file `setupenvironment.sh'. Fisheye: No comparison available. Pass `N' to diff?