GithubHelp home page GithubHelp logo

3d-printer-api's Introduction

3dPrinterFlaskAPI

Description

Flask server that exposes information from multiple endpoints in mock 3D printer flask servers: one server called "Gutenberg" and one called "Xerox". Collector communicates with "Gutenberg" and "Xerox" to get their current print job and the nozzle temperatures, and stores this information in a redis database. Current endpoints on the Flask server are '/current_job' and '/nozzle_temps'.

Setup

  • Copy repository link and clone in terminal
    • git clone https://github.com/jonahb13/3dPrinterFlaskAPI.git
  • Create virtual environment in project folder
    • cd 3DPrinterFlaskAPI
    • python3 -m venv .venv
    • source .venv/bin/activate
  • Download required packages for the flask server
    • pip3 install -r requirements.txt

Running the Servers

  • Open 5 separate terminal windows (all in the 3DPrinterFlaskAPI directory)
    • In the first terminal, start the redis server
      • redis-server
    • In the second terminal, run the flask server for Gutenberg
      • python3 printer_server/gutenberg_app.py
    • In the third terminal, run the flask server for Xerox
      • python3 printer_server/xerox_app.py
    • In the fourth terminal, start the main flask app
      • python3 main_app/app.py
  • Once the 3D Printer servers and main app server are running, run the client in the fifth terminal
    • python3 app_client/printer_stats.py

Future Work

Currently, this project just mocks an interaction with 3D printer APIs/flask servers. In the future, our current code would need to be modified so that the proper printer IPs/endpoints are being used, as well as changing how information is being received/handled from the actual printers. In addition, we want to make a client webpage to display data and temperature graphs.

3d-printer-api's People

Contributors

jonahb13 avatar mmorykan avatar

Watchers

James Cloos 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.