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.15.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ffpp-0.0.15-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ffpp-0.0.15.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for ffpp-0.0.15.tar.gz
Algorithm Hash digest
SHA256 8947f79931da7a4251b7a38c96be35049d21e3a8bc561f37c373d4d5baf30cb3
MD5 314adc00a7eed5b56ecf92e078e94a4f
BLAKE2b-256 2ecd8887198f8d2866575e0441d52aab915e1c208f0db0be8150d0c6a4d47a11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ffpp-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for ffpp-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 e12e6d19daf3965624da1a47c5beccb5ef399e282993a812253f9e43200366b4
MD5 14fb0410f878e4d9782b3e24ef689f3a
BLAKE2b-256 94cdba0d28133a738aed2f9e44795449ec09a256d628d12376cd8930a0a5acf3

See more details on using hashes here.

Supported by

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