Go to file
Rodolphe Houdas 3ea25b63f9 💄 Make the page more static 2021-11-15 20:20:32 +00:00
tools 💄 Make the page more static 2021-11-15 20:20:32 +00:00
.dockerignore 🎉 First commit 2021-08-18 08:11:52 +01:00
.gitignore 🎉 First commit 2021-08-18 08:11:52 +01:00
Dockerfile Add multi file upload 2021-08-26 22:13:28 +01:00
README.md 📝 Make badge open URL 2021-08-31 22:49:27 +01:00
docker-compose.yml 🔨 Finish public deployment 2021-08-31 23:26:43 +01:00
openscad_remote.py Improve model download 2021-09-01 01:19:43 +01:00
requirements.txt Add Flask-CORS 2021-08-26 22:14:58 +01:00
uwsgi.ini 🎉 First commit 2021-08-18 08:11:52 +01:00

README.md

OpenSCAD-Remote

Send a bunch of files and get an STL out of it

🛠️ Build & Run

🐳 Docker

Using docker is the simplest way to build, start, and host this piece of software:

# Build the image
docker build -t openscad-remote:latest .
# Start the container
docker run --rm -it -p 5000:5000 openscad-remote:latest

Alternatively, you can use docker-compose which should simplify the above commands:

# Build the image
docker-compose build
# Start the container
docker-compose up

🐍 Python + uWSGI

Running this with pure Python and uWSGI has a few requirements:

  • Flask
  • Flask-Cors
  • OpenSCAD
  • uWSGI

OpenSCAD and uWSGI should be installed with your Linux distribution's package manager. Flask and Flask-Cors can be installed with pip, just use the requirements.txt file for maximum lazyness.

Once everything is installed, start the server with the following command:

uwsgi --ini uwsgi.ini

Usage

Multi-uploader status

The below tool can be currently found online at the following URL : https://cad.interstellai.re/multi-uploader.html. However, it is not guarantee to be always up. Look at the badge above to check the status, refresh the page to refresh the status.

The service is exposed on port 5000. You can send the files through a POST request and the server will answer with an STL file (given that it worked).

Documentation of the payload and entrypoint is coming soon...

Alternatively, you can serve the multi-uploader.html with Python and access it from a browser:

# Go into the tools folder if not already done
cd tools
python -m http.server 8000

You can then access a neat little interface (work in progress) from your browser at http://localhost:8000/multi-uploader.html

More is coming: a better server for the UI, maybe integrate this project into a bigger one, more documentation, Matrix bot ?...