MRP.MRPHalKlipper

exception MRPHalKlipper.MMRPHalKlipperException(message='MMRPHalKlipperException thrown')
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

class MRPHalKlipper.MRPHalKlipper(_selected_port: <module 'MRP.MRPHalSerialPortInformation' from '/home/docs/checkouts/readthedocs.org/user_builds/magneticreadoutprocessing/checkouts/latest/src/MagneticReadoutProcessing/MRP/MRPHalSerialPortInformation.py'>, _type: ~MRP.MRPHalSerialPortInformation.MRPRemoteSensorType = MRPRemoteSensorType.Unknown)

Baseclass for sending commands to a klipper/moonraker instance It contains functions to send rec commands from/to a klipper/moonraker interface

get(url: str)

response.get wrapper. url concatenated to printer base address Returns .json response dict.

get_gcode(count: int = 1, simplify: bool = True, msg_type: str = 'response')

Query the gcode store.

Args

countint, default=1

Numbers of cached items to retrieve from the gcode store

simplifybool, default=True

Return only the message portion of each item, as a list

msg_typestr, default=’response’

One of ‘response’, ‘command’, or ‘both’ to return

Returns

list - cached gcode strings if simplified, dict of each item if not

get_sensor_names() [<class 'str'>]

returns the sensor names defined in the sensor firmware as string list

Returns:

sensor chip names e.g. static, axis_x,..

Return type:

[str]

post(url: str, *args, **kwargs)

response.set wrapper. url is concatenated to printer base address. Returns .json response dict.

query_status(object: str = '')

Query a single printer object.

Args

objectstr

Printer status object

Returns

dict, printer object status