{ "title": "raingauge.basic", "description": "Simple rain gauge", "lang": "en", "documentation": "http://recherche.imt-atlantique.fr/xaal/documentation/", "ref": "http://recherche.imt-atlantique.fr/xaal/documentation/raingauge.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": { "rain": { "description": "Real-time amount of rainfall", "unit": "mm", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "number", "minimum": 0 } }, "accumulated": { "description": "Accumulated precipitation", "unit": "mm", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "number", "minimum": 0 } } }, "methods": { "getAttributes": { "description": "Get rain 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": [ "rain", "accumulated" ] }, "additionalItems": false } }, "rain": { "description": "Real-time amount of rainfall", "unit": "mm", "direction": "out", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "number", "minimum": 0 } }, "accumulated": { "description": "Accumulated precipitation", "unit": "mm", "direction": "out", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "number", "minimum": 0 } } }, "relatedAttributes": [ ] } }, "notifications": { "attributesChange": { "description": "Report attributes that have changed", "parameters": { "rain": { "description": "Real-time amount of rainfall", "unit": "mm", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "number", "minimum": 0 } }, "accumulated": { "description": "Accumulated precipitation", "unit": "mm", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "number", "minimum": 0 } } } } } }