Skip to main content

A simple way to connect and interact with your 3D printer.

Project description

FlashForge 3D Printer Protocol

Async python protocol for flashforge printers. A simple way to connect and interact with your 3D printer.

Tested on FlashForge Adventure 4, most likly to be working with other FlashForge printers.

How to use

from ffpp.Printer import Printer
myPrinter = Printer('192.168.0.1', 8899) # Change to the ip of your printer.
await myPrinter.connect()

print(f"{myPrinter.machine_type} is {myPrinter.machine_status}")

Check out example to learn more.

Important note

You need to call the update() to get the current status, temperature and print percent from printer.

await myPrinter.update()
print(myPrinter.print_percent)
await myPrinter.update()
print(myPrinter.print_percent)

Information from 3D printer

This is the information collected from the printer.

  • myPrinter.machine_type
  • myPrinter.machine_name
  • myPrinter.firmware
  • myPrinter.machine_SN
  • myPrinter.maxX
  • myPrinter.maxY
  • myPrinter.maxZ
  • myPrinter.extruder_count
  • myPrinter.mac_address
  • myPrinter.machine_status
  • myPrinter.move_mode
  • myPrinter.status
  • myPrinter.led
  • myPrinter.current_file
  • myPrinter.print_percent

To get some temperature you need to get right tool.

Run this line to return the extruder tool:

extruder = myPrinter.extruder_tools.get()
# or by index
extruder2 = myPrinter.extruder_tools.get(1)

You can do the same for your bed in myPrinter.bed_tools

Then you can do:

extruder.now # Current temperature.
extruder.target # Target temperature.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ffpp-0.0.12.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

ffpp-0.0.12-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file ffpp-0.0.12.tar.gz.

File metadata

  • Download URL: ffpp-0.0.12.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for ffpp-0.0.12.tar.gz
Algorithm Hash digest
SHA256 a955bea302fc778a1ee9ac6ffb7e1fae1607265c3b981beaeee0c507e0f1d293
MD5 25ed5078c4397fe7012f03ac311ce67c
BLAKE2b-256 dbc706710e94f9e554b6a0b2591e249ccec9b65ac0448a034afbfd432389e181

See more details on using hashes here.

File details

Details for the file ffpp-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: ffpp-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for ffpp-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 4a30d62c9f1ff77ea080819e0f53df5f215d9b20a0a559f35cf03fd482fcd87e
MD5 87456be2b5fcd789c7f9fb952276b566
BLAKE2b-256 b6ea6750f42469369a454e78a80443cfa1eda3bf79dc1d5705d563564ee9588c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page