Giter Site home page Giter Site logo

formantio / offlinecommands Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 19 KB

A lightweight application to send configured commands to a robot in an offline environment

License: MIT License

Dockerfile 3.90% HTML 18.51% TypeScript 35.42% CSS 6.21% JavaScript 0.62% Python 34.62% Shell 0.72%

offlinecommands's Introduction

OfflineCommands

A lightweight application to send configured commands to a robot in an offline environment

Components

This project contains two main components. The Server, which should be run on the same device as the agent, and the Frontend.

Server

The Server should be run on the same device as the agent, and needs access to both the agent's /var/lib/formant and the internet. The server serves the Frontend the list of configured commands for the agent it has access to.

Frontend

The Frontend will let you send commands, returned by the server, to an agent. The Frontend will automatically try to connect to the agent and server on localhost, however it is possible to reset it and manually input an IP address for the device to connect to.

Running the Components

Server

Environment file

The server is configured with a .env

export FORMANT_EMAIL=# email of admin service account
export FORMANT_PASSWORD=# password of admin service account
export SERVER_PORT=80

If changing the port used, change the port the frontend connects to on: /frontend/app/src/main.ts#L5

# First build the server
docker build -t command_server .
# Then run it, it needs access to /var/lib/formant and expects an .env file 
docker run --name commands_server --network host -v ${PWD}/.env:/code/app/.env -v /var/lib/formant:/var/lib/formant command_server

Frontend

# First, build the project
docker build -t local_command_ui .
# Then run it, It needs access to port 5502 to communicate to the agent and the port the server is running on 
docker run --name local_command_ui --network host local_command_ui

The UI should be running at port 9144 by default, you can check the docker logs to confirm this

offlinecommands's People

Contributors

aarongboswell avatar

Watchers

James Turnshek avatar Mark Neves avatar Nick Brachet avatar  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.