pyobs-zwoeaf

This is a pyobs (documentation) module for the ZWO Electronic Auto Focuser (EAF).

Example configuration

This is an example configuration:

class: pyobs_zwoeaf.EAFFocuser
device_number: 0
max_steps: 60000
backlash: 0
direction: true
sound: true

# communication
comm:
  jid: test@example.com
  password: ***

Available classes

There is one single class for the ZWO EAF.

EAFFocuser

class EAFFocuser(device_number: int = 0, max_steps: int = 60000, backlash: int = 0, direction: bool = True, sound: bool = True, **kwargs: Any)

Bases: Module, MotionStatusMixin, IFocuser, ITemperatures

A pyobs module for the ZWO EAF electronic auto focuser.

Parameters:
  • name – Name of module. If None, ID from comm object is used.

  • label – Label for module. If None, name is used.

  • own_comm – If True, module owns comm and opens/closes it.

  • additional_config_variables – List of additional variable names available to remote config getter/setter.

async close() None[source]

Close module.

async init(**kwargs: Any) None[source]

Initialize device.

Raises:

InitError – If device could not be initialized.

async open() None[source]

Open module.

async park(**kwargs: Any) None[source]

Park focuser at position zero.

async set_focus(focus: float, **kwargs: Any) None[source]

Move focuser to given position.

Parameters:

focus – New focus position in mm.

Raises:

MoveError – If focuser cannot be moved.

async set_focus_offset(offset: float, **kwargs: Any) None[source]

Set focus offset and re-apply.

Parameters:

offset – New focus offset in mm.

Raises:

MoveError – If focuser cannot be moved.

async stop_motion(device: str | None = None, **kwargs: Any) None[source]

Stop focuser motion.