{ "title": "windgauge.basic", "description": "Simple wind gauge", "lang": "en", "documentation": "http://recherche.imt-atlantique.fr/xaal/documentation/", "ref": "http://recherche.imt-atlantique.fr/xaal/documentation/windgauge.basic", "license": "Copyright Christophe Lohr IMT Atlantique 2018 - Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.", "extends": "basic.basic", "attributes": { "windStrength": { "description": "Strength of the wind", "unit": "m/s", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "number", "minimum": 0 } }, "windAngle": { "description": "Direction of the wind", "unit": "°", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "number", "minimum": 0, "maximum": 360 } }, "gustStrength": { "description": "Strength of gusts", "unit": "m/s", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "number", "minimum": 0 } }, "gustAngle": { "description": "Direction of gusts", "unit": "°", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "number", "minimum": 0, "maximum": 360 } } }, "methods": { "getAttributes": { "description": "Get wind gauge data", "parameters": { "attributes": { "description": "List of wanted attributes", "unit": "", "direction": "in", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "array", "items": { "enum": [ "windStrength", "windAngle", "gustStrength", "gustAngle" ] }, "additionalItems": false } }, "windStrength": { "description": "Strength of the wind", "unit": "m/s", "direction": "out", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "number", "minimum": 0 } }, "windAngle": { "description": "Direction of the wind", "unit": "°", "direction": "out", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "number", "minimum": 0, "maximum": 360 } }, "gustStrength": { "description": "Strength of gusts", "unit": "m/s", "direction": "out", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "number", "minimum": 0 } }, "gustAngle": { "description": "Direction of gusts", "unit": "°", "direction": "out", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "number", "minimum": 0, "maximum": 360 } } }, "relatedAttributes": [ ] } }, "notifications": { "attributesChange": { "description": "Report attributes that have changed", "parameters": { "windStrength": { "description": "Strength of the wind", "unit": "m/s", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "number", "minimum": 0 } }, "windAngle": { "description": "Direction of the wind", "unit": "°", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "number", "minimum": 0, "maximum": 360 } }, "gustStrength": { "description": "Strength of gusts", "unit": "m/s", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "number", "minimum": 0 } }, "gustAngle": { "description": "Direction of gusts", "unit": "°", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "number", "minimum": 0, "maximum": 360 } } } } } }