Show / Hide Table of Contents

Class ObservingConditions

Client implementation of an ASCOM Alpaca Observing Conditions device.

This class is meant to be use in a client application that need to control an ASCOM Alpaca Observing Conditions

Inheritance
System.Object
DeviceBase
ObservingConditions
Implements
IObservingConditions
IDevice
IObservingConditionsAsync
IDeviceAsync
Inherited Members
DeviceBase.DeviceNumber
DeviceBase.InvokeAction(String, String)
DeviceBase.InvokeActionAsync(String, String)
DeviceBase.SendCommandBlind(String, Boolean)
DeviceBase.SendCommandBlindAsync(String, Boolean)
DeviceBase.SendCommandBool(String, Boolean)
DeviceBase.SendCommandBoolAsync(String, Boolean)
DeviceBase.SendCommandString(String, Boolean)
DeviceBase.SendCommandStringAsync(String, Boolean)
DeviceBase.IsConnected()
DeviceBase.IsConnectedAsync()
DeviceBase.SetConnected(Boolean)
DeviceBase.SetConnectedAsync(Boolean)
DeviceBase.GetDescription()
DeviceBase.GetDescriptionAsync()
DeviceBase.GetDriverInfo()
DeviceBase.GetDriverInfoAsync()
DeviceBase.GetDriverVersion()
DeviceBase.GetDriverVersionAsync()
DeviceBase.GetInterfaceVersion()
DeviceBase.GetInterfaceVersionAsync()
DeviceBase.GetName()
DeviceBase.GetNameAsync()
DeviceBase.GetSupportedActions()
DeviceBase.GetSupportedActionsAsync()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ES.Ascom.Alpaca.Client.Devices
Assembly: ES.Ascom.Alpaca.Client.dll
Syntax
public sealed class ObservingConditions : DeviceBase, IObservingConditions, IDevice, IObservingConditionsAsync, IDeviceAsync

Constructors

| Improve this Doc View Source

ObservingConditions(DeviceConfiguration)

Initializes a new instance of the ObservingConditions class.

Declaration
public ObservingConditions(DeviceConfiguration configuration)
Parameters
Type Name Description
DeviceConfiguration configuration

Device configuration

| Improve this Doc View Source

ObservingConditions(DeviceConfiguration, ILogger)

Initializes a new instance of the ObservingConditions class.

Declaration
public ObservingConditions(DeviceConfiguration configuration, ILogger logger)
Parameters
Type Name Description
DeviceConfiguration configuration

Device configuration

ILogger logger

Logger, can be useful for debugging

| Improve this Doc View Source

ObservingConditions(DeviceConfiguration, IClientTransactionIdGenerator)

Initializes a new instance of the ObservingConditions class.

Declaration
public ObservingConditions(DeviceConfiguration configuration, IClientTransactionIdGenerator clientTransactionIdGenerator)
Parameters
Type Name Description
DeviceConfiguration configuration

Device configuration

IClientTransactionIdGenerator clientTransactionIdGenerator

Client Transaction ID Generator

| Improve this Doc View Source

ObservingConditions(DeviceConfiguration, IClientTransactionIdGenerator, ILogger)

Initializes a new instance of the ObservingConditions class.

Declaration
public ObservingConditions(DeviceConfiguration configuration, IClientTransactionIdGenerator clientTransactionIdGenerator, ILogger logger)
Parameters
Type Name Description
DeviceConfiguration configuration

Device configuration

IClientTransactionIdGenerator clientTransactionIdGenerator

Client Transaction ID Generator

ILogger logger

Logger, can be useful for debugging

Properties

| Improve this Doc View Source

DeviceType

Declaration
protected override DeviceType DeviceType { get; }
Property Value
Type Description
DeviceType
Overrides
ES.Ascom.Alpaca.Client.Devices.DeviceBase.DeviceType

Methods

| Improve this Doc View Source

GetAveragePeriod()

Declaration
public double GetAveragePeriod()
Returns
Type Description
System.Double
| Improve this Doc View Source

GetAveragePeriodAsync()

Declaration
public Task<double> GetAveragePeriodAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Double>
| Improve this Doc View Source

GetCloudCover()

Declaration
public double GetCloudCover()
Returns
Type Description
System.Double
| Improve this Doc View Source

GetCloudCoverAsync()

Declaration
public Task<double> GetCloudCoverAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Double>
| Improve this Doc View Source

GetDewPoint()

Declaration
public double GetDewPoint()
Returns
Type Description
System.Double
| Improve this Doc View Source

GetDewPointAsync()

Declaration
public Task<double> GetDewPointAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Double>
| Improve this Doc View Source

GetHumidity()

Declaration
public double GetHumidity()
Returns
Type Description
System.Double
| Improve this Doc View Source

GetHumidityAsync()

Declaration
public Task<double> GetHumidityAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Double>
| Improve this Doc View Source

GetPressure()

Declaration
public double GetPressure()
Returns
Type Description
System.Double
| Improve this Doc View Source

GetPressureAsync()

Declaration
public Task<double> GetPressureAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Double>
| Improve this Doc View Source

GetRainRate()

Declaration
public double GetRainRate()
Returns
Type Description
System.Double
| Improve this Doc View Source

GetRainRateAsync()

Declaration
public Task<double> GetRainRateAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Double>
| Improve this Doc View Source

GetSensorDescription(ObservingConditionSensorName)

Declaration
public string GetSensorDescription(ObservingConditionSensorName sensorName)
Parameters
Type Name Description
ObservingConditionSensorName sensorName
Returns
Type Description
System.String
| Improve this Doc View Source

GetSensorDescriptionAsync(ObservingConditionSensorName)

Declaration
public Task<string> GetSensorDescriptionAsync(ObservingConditionSensorName sensorName)
Parameters
Type Name Description
ObservingConditionSensorName sensorName
Returns
Type Description
System.Threading.Tasks.Task<System.String>
| Improve this Doc View Source

GetSkyBrightness()

Declaration
public double GetSkyBrightness()
Returns
Type Description
System.Double
| Improve this Doc View Source

GetSkyBrightnessAsync()

Declaration
public Task<double> GetSkyBrightnessAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Double>
| Improve this Doc View Source

GetSkyQuality()

Declaration
public double GetSkyQuality()
Returns
Type Description
System.Double
| Improve this Doc View Source

GetSkyQualityAsync()

Declaration
public Task<double> GetSkyQualityAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Double>
| Improve this Doc View Source

GetSkyTemperature()

Declaration
public double GetSkyTemperature()
Returns
Type Description
System.Double
| Improve this Doc View Source

GetSkyTemperatureAsync()

Declaration
public Task<double> GetSkyTemperatureAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Double>
| Improve this Doc View Source

GetStarFwhm()

Declaration
public double GetStarFwhm()
Returns
Type Description
System.Double
| Improve this Doc View Source

GetStarFwhmAsync()

Declaration
public Task<double> GetStarFwhmAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Double>
| Improve this Doc View Source

GetTemperature()

Declaration
public double GetTemperature()
Returns
Type Description
System.Double
| Improve this Doc View Source

GetTemperatureAsync()

Declaration
public Task<double> GetTemperatureAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Double>
| Improve this Doc View Source

GetTimeSinceLastUpdate(ObservingConditionSensorName)

Declaration
public TimeSpan GetTimeSinceLastUpdate(ObservingConditionSensorName sensorName)
Parameters
Type Name Description
ObservingConditionSensorName sensorName
Returns
Type Description
System.TimeSpan
| Improve this Doc View Source

GetTimeSinceLastUpdateAsync(ObservingConditionSensorName)

Declaration
public Task<TimeSpan> GetTimeSinceLastUpdateAsync(ObservingConditionSensorName sensorName)
Parameters
Type Name Description
ObservingConditionSensorName sensorName
Returns
Type Description
System.Threading.Tasks.Task<System.TimeSpan>
| Improve this Doc View Source

GetWindDirection()

Declaration
public double GetWindDirection()
Returns
Type Description
System.Double
| Improve this Doc View Source

GetWindDirectionAsync()

Declaration
public Task<double> GetWindDirectionAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Double>
| Improve this Doc View Source

GetWindGust()

Declaration
public double GetWindGust()
Returns
Type Description
System.Double
| Improve this Doc View Source

GetWindGustAsync()

Declaration
public Task<double> GetWindGustAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Double>
| Improve this Doc View Source

GetWindSpeed()

Declaration
public double GetWindSpeed()
Returns
Type Description
System.Double
| Improve this Doc View Source

GetWindSpeedAsync()

Declaration
public Task<double> GetWindSpeedAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Double>
| Improve this Doc View Source

Refresh()

Declaration
public void Refresh()
| Improve this Doc View Source

RefreshAsync()

Declaration
public Task RefreshAsync()
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

SetAveragePeriod(Double)

Declaration
public void SetAveragePeriod(double period)
Parameters
Type Name Description
System.Double period
| Improve this Doc View Source

SetAveragePeriodAsync(Double)

Declaration
public Task SetAveragePeriodAsync(double period)
Parameters
Type Name Description
System.Double period
Returns
Type Description
System.Threading.Tasks.Task

Implements

IObservingConditions
IDevice
IObservingConditionsAsync
IDeviceAsync
  • Improve this Doc
  • View Source
Back to top Generated by DocFX