Skip to content

eldir/construct_server.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

construct-server-python

A Python Construct Protocol server library.

The Construct Server

__init__ takes the following kwargs:

  • settings: A dict containing
    • sensor_poll_rate
    • sensor_names
  • server_settings: A dict of tornado application settings
  • routes: An array of tornado routes to append to the standard construct routes
  • components: A dict of any applicable printer components keyed by their type and stored as arrays of component short_names including:
    • extruders
    • beds
    • fans
    • conveyors
    • axes

The Printer Interface

Methods

A printer must have the following methods defined:

def is_online(self):

def is_printing(self):

def request_sensor_update(self):

def post_process_print_job(self, filename, filebody):

The returned object will be stored as the print job's body.

def start_print_job(self, job):

def current_print_line(self):

def total_print_lines(self, job_body):

Events

About

A Python Construct Protocol server lib

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages