Coder Social home page Coder Social logo

navigator-web-assistant's Introduction

Navigator WebAssistant

Navigator WebAssistant is a webserver that interfaces with navigator-rs, the Rust navigator library. With this application, users can run a server locally and control navigator from web interfaces (Websocket and RestAPI).

Navigator WebAssistant running on BlueOS: Banner

Navigator WebAssistant is available at BlueOS extensions, try it:

blueos.local/tools/extensions-manager

And add Navigator WebAssistant Extension. Or manually install from source from this instructions.

You can also use the Jupyter extension to try some fast python and websocket applications.

Instructions

To use Navigator WebAssistant simply execute:

./navigator-webassistant

To disable navigator monitor:

./navigator-webassistant --monitor-rate 0

To enable datalogger service with default values:

./navigator-webassistant --datalogger-rate 1

To change datalogger service values:

./navigator-webassistant --datalogger-rate 1 --datalogger-directory ./ --datalogger-filename data.csv

To change navigator monitor's refresh rate:

./navigator-webassistant --monitor-rate 10

*The rate values use Hz.

To use a custom port:

./navigator-webassistant --server-port 8081

Webpage

To get some access to navigator from web, you can start using the web hosted interface:

localhost:8080

RestAPI

To get instructions on how to use API routes, access the docs:

localhost:8080/docs

Websocket

To get access to navigator from websocket:

localhost:8080/ws

An optional regex filter can be applied on the register process, try:

localhost:8080/ws?filter=output

Users can send commands like the restAPI routes, try:

/input/all

For POST methods define the structures after, as follows:

/output/pwm/channel/value/{ "channel": "Ch9", "value": 10 }

Multiple commands can be sent, just use the '&&', try:

/output/pwm/enable/{ "enable": false } &&
/output/pwm/frequency/{ "frequency": 60 } &&

/output/pwm/channel/value/{ "channel": "Ch9", "value": 1000 } &&
/output/pwm/channel/value/{ "channel": "Ch10", "value": 3000 } &&
/output/pwm/enable/{ "enable": true }

The requests will work even with inner trailing spaces.

navigator-web-assistant's People

Contributors

raultrombin avatar patrickelectric avatar

Watchers

 avatar Willian Galvani avatar  avatar

Forkers

raultrombin

navigator-web-assistant's Issues

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.