Giter VIP home page Giter VIP logo

rvi_dynamic_agents's Introduction

Important Dependencies (Currently only tested on Ubuntu)

  • Python 2.X
  • Python 3.X
  • python-can (python3 install)
  • websocket-client (python-pip3)
  • psutil (python-pip3)

Optional for backend

* flask 
* redis 

Requiements

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

Server Side Deployment

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

Client Side Deployment

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

Deploying Agents

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.

rvi_dynamic_agents's People

Contributors

afan1 avatar magnusfeuer avatar mfeuer avatar

Watchers

James Cloos avatar Shawn Jamison 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.