71 void initProperties(
const char *statusGroup,
const char *paramsGroup);
80 bool processNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n);
122 void addParameter(std::string name, std::string label,
double numMinOk,
double numMaxOk,
double percWarning);
180 void createParameterRange(std::string name, std::string label);
182 std::string m_ParametersGroup;
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
The Timer class provides repetitive and single-shot timers.
Provides interface to implement weather reporting functionality.
virtual ~WeatherInterface()
bool processSwitch(const char *dev, const char *name, ISState *states, char *names[], int n)
Process weather switch properties.
bool syncCriticalParameters()
updateWeatherState Send update weather state to client
virtual IPState updateWeather()
updateWeather Update weather conditions from device or service. The function should not change the st...
void setParameterValue(std::string name, double value)
setParameterValue Update weather parameter value
bool setCriticalParameter(std::string param)
setCriticalParameter Set parameter that is considered critical to the operation of the observatory....
bool processNumber(const char *dev, const char *name, double values[], char *names[], int n)
Process weather number properties.
ILight * critialParametersL
WeatherInterface(DefaultDevice *defaultDevice)
virtual bool saveConfigItems(FILE *fp)
saveConfigItems Save parameters ranges in the config file.
ILightVectorProperty critialParametersLP
INDI::PropertySwitch OverrideSP
INumberVectorProperty ParametersNP
IPState checkParameterState(const std::string ¶m) const
checkParameterState Checks the given parameter against the defined bounds
void addParameter(std::string name, std::string label, double numMinOk, double numMaxOk, double percWarning)
addParameter Add a physical weather measurable parameter to the weather driver. The weather value has...
void checkWeatherUpdate()
checkWeatherUpdate Calls updateWeather and update critical parameters accordingly.
void initProperties(const char *statusGroup, const char *paramsGroup)
Initilize focuser properties. It is recommended to call this function within initProperties() of your...
INDI::PropertySwitch RefreshSP
bool updateProperties()
updateProperties Define or Delete Rotator properties based on the connection status of the base devic...
INDI::PropertyNumber UpdatePeriodNP
INumberVectorProperty * ParametersRangeNP
Namespace to encapsulate INDI client, drivers, and mediator classes.
Light vector property descriptor.
Number vector property descriptor.