QKnxCloudCover Class

The QKnxCloudCover class is a datapoint type for storing the scale of the sky obscured by clouds when observed from a particular location. More...

Header: #include <QKnxCloudCover>
qmake: QT += knx
Since: Qt 5.12
Inherits: QKnx1Byte

Public Types

enum Scale { Cloudless, Sunny, Sunshiny, LightlyCloudy, ..., Invalid }

Public Functions

QKnxCloudCover()
QKnxCloudCover(QKnxCloudCover::Scale scale)
QKnxCloudCover::Scale cloudCover() const
bool setCloudCover(QKnxCloudCover::Scale scale)

Additional Inherited Members

Detailed Description

The QKnxCloudCover class is a datapoint type for storing the scale of the sky obscured by clouds when observed from a particular location.

Okta is the usual unit of measurement of the cloud cover. The cloud cover is correlated to the sunshine duration as the least cloudy locales are the sunniest ones while the cloudiest areas are the least sunny places.

This is a fixed size datapoint type with the length of 1 byte.

See also QKnxDatapointType, QKnx1Byte, and Qt KNX Datapoint Type Classes.

Member Type Documentation

enum QKnxCloudCover::Scale

This enum holds the unit of measurement (Okta) used to describe the amount of cloud cover at any given location. Sky conditions are estimated in terms of how many eighths of the sky are covered in cloud, ranging from completely clear sky through to completely overcast.

ConstantValueDescription
QKnxCloudCover::Cloudless0x00Denotes a sky that is completely clear.
QKnxCloudCover::Sunny0x01Denotes a cloud amount of 1/8 or less, but not Cloudless.
QKnxCloudCover::Sunshiny0x02Denotes a cloud amount of 2/8 or less, but not Sunny.
QKnxCloudCover::LightlyCloudy0x03Denotes a cloud amount of 3/8 or less, but not Sunshiny.
QKnxCloudCover::ScatteredClouds0x04Denotes a cloud amount of 4/8, so the sky is half cloudy.
QKnxCloudCover::Cloudy0x05Denotes a cloud amount of 5/8 or more, but not VeryCloudy.
QKnxCloudCover::VeryCloudy0x06Denotes a cloud amount of 6/8 or more, but not AlmostOvercast.
QKnxCloudCover::AlmostOvercast0x07Denotes a cloud amount of 7/8 or more, but not Overcast.
QKnxCloudCover::Overcast0x08Denotes a sky with full cloud cover and no breaks.
QKnxCloudCover::ObstructedFromView0x09Denotes a sky obscured by fog or other meteorological phenomena.
QKnxCloudCover::Invalid0xffThe value is invalid.

Member Function Documentation

QKnxCloudCover::QKnxCloudCover()

Creates a fixed size datapoint type with the cloud cover scale set to Cloudless.

QKnxCloudCover::QKnxCloudCover(QKnxCloudCover::Scale scale)

Creates a fixed size datapoint type with the cloud cover scale set to scale.

QKnxCloudCover::Scale QKnxCloudCover::cloudCover() const

Returns the cloud cover scale stored in the datapoint type.

See also setCloudCover().

bool QKnxCloudCover::setCloudCover(QKnxCloudCover::Scale scale)

Sets the cloud cover scale stored in the datapoint type to scale.

Returns true if the scale was set; otherwise returns false.

See also cloudCover().

© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.