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

This class was introduced in Qt 5.12.

Public Types

enum class Scale { Cloudless, Sunny, Sunshiny, LightlyCloudy, ScatteredClouds, …, Invalid }

Public Functions

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

Detailed Description

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 class 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.

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

Member Function Documentation

QKnxCloudCover::QKnxCloudCover(QKnxCloudCover::Scale scale)

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


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

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().

© 2024 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.