mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
19 lines
515 B
Plaintext
19 lines
515 B
Plaintext
{
|
|
"name": "sensor_data",
|
|
"type": "function",
|
|
"groups": ["Sensors"],
|
|
"description": "Returns the last captured value (or values as a map for sensors which report multiple values) from a registered sensor.",
|
|
"arguments": [{
|
|
"arg": "name",
|
|
"description": "the sensor name"
|
|
},{
|
|
"arg": "expiration",
|
|
"description": "maximum millisecond since last captured value allowed",
|
|
"optional": true
|
|
}],
|
|
"examples": [{
|
|
"expression": "sensor_data('geiger_1')",
|
|
"returns": "'2000'"
|
|
}]
|
|
}
|