pyobs-alpaca
This is a pyobs (documentation) module for ALPACA, which is a HTTP proxy for ASCOM.
Example configuration
This is an example configuration for a telescope:
class: pyobs_alpaca.AlpacaTelescope
name: ASCOM Telescope
server: 1.2.3.4
port: 11111
device_type: telescope
device: 0
wait_for_dome: dome
weather: weather
alive_parameter: Name
# communication
comm:
jid: test@example.com
password: ***
And for a focussing unit (without the comm block):
class: pyobs_alpaca.AlpacaFocuser
name: ASCOM Focuser
server: 1.2.3.4
port: 11111
device_type: focuser
device: 0
alive_parameter: Position
And finally, for a dome:
class: pyobs_alpaca.AlpacaDome
server: 1.2.3.4
port: 11111
device_type: dome
device: 0
follow: telescope
weather: weather
Available classes
These classes are meant more as a means of an example for own implementations. AlpacaTelescope is an implementation for telescopes, while AlpacaFocuser works for focusing devices and AlpacaDome can operate a dome.
AlpacaTelescope
- class AlpacaTelescope(settle_time: float = 3.0, park_position: tuple[float, float] = (180.0, 15.0), **kwargs: Any)
Bases:
BaseTelescope,FitsNamespaceMixin,IFitsHeaderBefore,IOffsetsRaDec,ISyncTargetInitializes a new ASCOM Alpaca telescope.
- Parameters:
settle_time – Time in seconds to wait after slew before finishing.
park_position – Alt/Az park position.
- async get_fits_header_before(namespaces: list[str] | None = None, **kwargs: Any) dict[str, tuple[Any, str]][source]
Returns FITS header for the current status of this module.
AlpacaFocuser
- class AlpacaFocuser(**kwargs: Any)
Bases:
MotionStatusMixin,IFocuser,IFitsHeaderBefore,ModuleInitializes the mixin.
- Parameters:
interfaces – List of interfaces to handle or None
AlpacaDome
- class AlpacaDome(tolerance: float = 3, park_az: float = 180, follow: str | None = None, **kwargs: Any)
Bases:
FollowMixin,BaseDomeInitializes a new ASCOM Alpaca dome.
- Parameters:
tolerance – Tolerance for azimuth.
park_az – Azimuth for park position.
follow – Name of other device (e.g. telescope) to follow.