- Python 2.X
- Python 3.X
- python-can (python3 install)
- websocket-client (python-pip3)
- psutil (python-pip3)
* flask
* redis
1. RVI setup on both the client side and the server side and can communicate with each other.
-Please refer to https://github.com/PDXostc/rvi_core for more information
2. RVI backend is installed to push agents to client.
-Please refer to https://github.com/PDXostc/rvi_backend for more information to find the backend w/ dynamic_agent code
3. All dependencies are met
1. Make sure RVI is running
2. Clone the repo
3. cd into repo i.e. "cd rvi_dynamic_agents"
#### Optional Redis Server and Flask Counter Demo Setup ####
1. Install flask and redis
2. Make sure redis server is setup
3. Change flaskserver/demoagentsite.py to make sure your redis client will work if not using default setup
4. python flaskserver/demoagentsite.py
5. Access and see reported agent counts at localhost:5000
4. python3 agentserver/agentserver.py
1. Make sure RVI is running
2. Clone the repo
3. cd into repo i.e. "cd rvi_dynamic_agents"
4. Make sure if you are tracking can signals that you have enabled your can link "sudo ip link set can0 up type can bitrate <XXXXX>"
5. python3 agenthandler.py
1. Make sure RVI is running
2. Clone the rvi_backend repo
3. Follow setup instructions for the rvi_backend repo
4. Add a vehicle and make sure the vin is what you set up for RVI
5. Add an Agent where launch command is how you would launch your script
* For example python3 script ABC.py would be launched with "python3 ABC.py"
6. Add an update choosing which agent you wish to send to which vehicle and its expiration date
7. Click checkbox and select start agent from dropdown list and hit go.
8. Agent should not be running, you are also able to remotely terminate from this page.