Skip to content
Proyectos

Acerca de

Detección de fallos mediante IA y monitorización remota de código abierto para impresoras 3D que ejecutan OctoPrint o Klipper. Puedes alojarlo en tu propio ordenador.

IA y aprendizaje automático

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
+1
in 7 days
+5
in 15 days
+7
in 1 month
+17

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

Obico

Open-source AI failure detection and remote monitoring for 3D printers.
Runs on your own computer. Works with OctoPrint and Klipper.

Stars License: AGPL-3.0 Discord

Obico (formerly The Spaghetti Detective) watches your prints through the printer's webcam. When the AI sees a print failing, such as spaghetti or a part knocked off the bed, it alerts you and can pause the print. This repo is the whole server, so you can run it at home on your own hardware.

Obico's phone app and web app showing a failing print, with the AI's detections boxed and the print paused

What you get

  • AI failure detection. A deep-learning model checks webcam snapshots during the print, and pauses it or alerts you when it sees a failure. See it on real prints.
  • Remote monitoring and control. Watch the webcam and control the printer from a browser or the Obico app for iOS and Android.
  • Notifications. Email, Telegram, Discord, Slack, Pushover, Pushbullet, SMS (Twilio), webhooks and more through Apprise.
  • Works with your printer's software. Connect printers through the OctoPrint plugin or the Klipper plugin (Mainsail, Fluidd, Creality K1 and Sonic Pad).
  • Runs on modest hardware. Any PC from the last 10 years will do. NVIDIA and Intel GPUs, and the RK3588 NPU, speed up detection.

Don't want to run a server? Obico Cloud runs this same code for you.

Looking for the JusPrin server? See README_jusprin_server.md.

Install and run the server

Note: For more detailed instructions, head to the Obico Server guide.

Prerequisites

The Obico Server only requires a computer to run. Even old PCs (within the previous 10 years) will do just fine. GPU acceleration is optional but can vastly improve the number of printers the server can handle. NVIDIA CUDA and Intel OpenVINO acceleration are supported on Linux hosts; see the hardware and GPU guides.

Software requirements

The following software is required before you start installing the server:

  • Docker and Docker-compose. But you don't have to understand how Docker or Docker-compose works.
    • Install Docker (Windows, Ubuntu, Fedora, CentOS, Mac). Important: If your server has an old Docker version, please follow the instructions in these links to upgrade to the latest version, otherwise you may run into all kinds of weird problems.
    • Install Docker-compose. You need Docker-compose V2.0 or higher.
  • git (how to install).

Email delivery

You will also need an email account that has SMTP access enabled (gmail will not work. As of May 30, 2022 Google has removed the option for allowing SMTP access). Other web mail such as Yahoo should work but we haven't tried them.

Get the code and start the server

  1. Get the code:
git clone -b release https://github.com/TheSpaghettiDetective/obico-server.git
  1. Run it! Do either one of these based on what OS you are using:
    • If you are on Linux: cd obico-server && sudo docker compose up -d
    • If you are on Mac: cd obico-server && docker-compose up -d
    • If you are on Windows: cd obico-server; docker-compose up -d

To use the NPU acceleration for RK3588 boards, first build the base image it starts from — that one is not published on Docker Hub, and the build expects exactly this name. The --build on the last line matters if you already ran step 2: both commands produce the same image name, so without it Compose keeps the image you have and the NPU goes unused:

cd obico-server
sudo docker build --platform linux/arm64 -f ml_api/Dockerfile.base_rk3588 \
  -t thespaghettidetective/ml_api_base:1.4-rk3588 ml_api
sudo docker compose -f docker-compose.yml -f docker-compose-rk3588.yml up -d --build
  1. Go grab a coffee. Step 2 will take 15-30 minutes.

  2. If the Obico Server is running on localhost, there will be no step 4. If it is running on a different host, such as a VM in the cloud, go ahead to configure the Django site.

Open "http://localhost:3334" on the same computer. Voila - your self-hosted Obico Server is now up and running!

Login page

Server Configuration

Upon fresh installation, the Obico Server can only work on the localhost. You will need to configure its IP address. Here is how:

Obtain server's IP address

Recommended Read: Connecting to your server with a .local address

This refers to the LAN IP address that has been given to the computer that the Obico server is running on.

  • If you are on Linux: Open the wifi settings and select "settings" for the network your device is currently connected to. Look for the IPv4 value.
  • If you are on Windows: Select "Properties" for the network your device is connected to, then look for the IPv4 value.
  • If you are on Mac: Go to Settings > Network. You will find your IPv4 value below the wifi status.

The Obico Server needs to have an IP address that is accessible by OctoPrint or Klipper. It can be a private IP address (192.168.x.y, etc) but there needs to be a route between OctoPrint and the Obico Server.

It is also recommended that a static IP is set to avoid issues with changing IP's. Please look up your WiFi routers guide on how to do this.

Login as Django admin

  1. Open Django admin page at http://your_server_ip:3334/admin/.

Note: If the browser complains "Can't connect to the server", wait for a couple more minutes. The web server container may still be starting up.*

  1. Login with username [email protected], password supersecret. Once logged in, you can optionally (but are highly encouraged to) change the admin password using this link: http://your_server_ip:3334/admin/app/user/1/password/.

Configure Django site

  1. In the same browser window, go to the address http://your_server_ip:3334/admin/sites/site/1/change/. Change "Domain name" to your_server_ip:3334. No "http://", "https://" prefix or trailing "/", otherwise it will NOT work. Note: Deleting the original site and adding a new one won't work, thanks to the quirkiness of Django site.

  2. Click "Save". Yes it's correct that Django is not as smart as most people think. ;)

Site configuration

Note: If you are using reverse proxy, "Domain name" needs to be set to reverse_proxy_ip:reverse_proxy_port. See using a reverse proxy for details.*

That's it! You now have a fully-functional Obico Server that your OctoPrint can talk to. We hope setting up the server has not been overwhelming.

Configure clients to use self-hosted Obico Server

Contribute to Obico

Feeling excited? Want to contribute? Check out how.

Difficulties in getting the Obico server up and running?

Browse and search in the Obico Server guide website. If you can't find the answer there, consult the Discord or open an issue.

Thanks

BrowserStack BrowserStack generously sponsors a free license so that I can test Obico webcam streaming on different browsers/versions. Moonraker for the source code to extract g-code metadata.

Explorar proyectos relacionados

Cargando…