Giter Site home page Giter Site logo

4198-programmers / meanscout-api Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 0.0 1.25 MB

The meanscout api in rust for maybe better safety and speed. An actual executable is also kinda nice.

Home Page: https://www.team4198.org

License: MIT License

Rust 100.00%
rust frc-scouting frc

meanscout-api's Introduction

Meanscout Api (RUST EDITION)

An attempt at making the meanscout api in rust for maybe better safety. Can't be too easy to make.
(and honestly I trust this version a lot more)

This network API backend is made for the companion webapp we forked from Aidan Linerud of FRC Team 2471, Meanscout. The exact version of Meanscout we use is under the main branch located here. The API is made to intake and process the data coming from Meanscout. It will then put it into the file data.csv.

How to use

In the future I plan on putting it on crates.io so you can just run cargo install meanscout or something along those lines

Running

You can just use it by running cargo run --release in the directory the project is located

Building as a standalone executable

To build it from source you first need to have rust installed, and use the command cargo build --release while in the project directory
When it is done building, the binary will be located in /target/release/ as the executable meanapi

How to set configurations

All of the configuration that you should need is located in Config.toml.

IP Address and Ports

To change the ip or ports to run on just change the variable in Config.toml as shown

ip_address = [0,0,0,0] # Each digit is each octet in the ip address
port = 8000

Passwords

Changing the passwords requires changing the password variable in settings.toml. You add or remove strings to the list to add or remove possible passwords.

passwords = ["ChangeMe!", "AnotherPassword!"]

Logging

The current logging system is set of macros that are called when something happens. This writes whether it was successful, or if something wrong happened into the file logs/meanscout.log, or a different location configured in Config.toml.

Contributing

If you would like to contribute to the project you can do any of the following.

  • Make a fork and commit and merge your changes
  • Add anything like bugs or things you'd like added to the issues page

Credits

Special thanks to Joseph Melancon for kicking off our teams digital scouting efforts, advising us, and much more

meanscout-api's People

Contributors

snaapsh0t12 avatar tooneyturkey avatar

Stargazers

 avatar  avatar

meanscout-api's Issues

Rust?

I believe you accidentally used the wrong language to make this..

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.