![Lufft I-BOX Скачать руководство пользователя страница 38](http://html1.mh-extra.com/html/lufft/i-box/i-box_operating-manual_1947040038.webp)
38
G. Lufft Mess- und Regeltechnik GmbH, Fellbach, Germany
11.5
Configuration
To configure the JSON API
device, go to the “Configuration” tab. The configuration
parameters are:
name (short)
Name of the device for display in the device list.
name (long)
A longer name for the device.
description
Notes about the device usage / configuration
device active
Switches on or off the API feature
If the device is switched off, a success = false is returned.
11.6
Logging / errors
While the JSON device is active, there can be log entries:
log type
Description (e.g.)
action required
Request
Error in URL request
-
check URL parameters
These log entries are not critical.
11.7
Beispiele von JSON-Abfragen
The command getchannels returns with thie JSON string (example konfiguration):
http://<lufft-i-box>/websites/ab/index.php/json/1/api/getchannels
{
"success":true,
"channels":[
{
"channelmetaid":"478",
"valueid":"110-40105",
"app":"opus20",
"deviceid":"110",
"devicecaption":"Opus (.96)",
"channelno":"40105",
"interval":"1",
"type":"16",
"caption":"",
"measurementname":"Temperatur",
"unitname":"\u00b0F",
"valuemin":"-40",
"valuemax":"80"
},
{
"channelmetaid":"479",
"valueid":"110-40115",
"app":"opus20",