137 lines
4.9 KiB
JSON
137 lines
4.9 KiB
JSON
/**
|
|
* Definition of entities
|
|
|
|
* Format is specified in EntityDefinition model
|
|
*
|
|
* @author Steffen Vogel <info@steffenvogel.de>
|
|
* @copyright Copyright (c) 2010, The volkszaehler.org project
|
|
* @package default
|
|
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
|
*/
|
|
/*
|
|
* This file is part of volkzaehler.org
|
|
*
|
|
* volkzaehler.org is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* any later version.
|
|
*
|
|
* volkzaehler.org is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with volkszaehler.org. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
[
|
|
{
|
|
"name" : "group",
|
|
"required" : ["title"],
|
|
"optional" : ["description", "details:", "owner:", "tolerance"],
|
|
"icon" : "", // TODO look for an icon
|
|
"interpreter" : "Volkszaehler\\Interpreter\\AggregatorInterpreter",
|
|
"model" : "Volkszaehler\\Model\\Aggregator",
|
|
"translation" : { "de" : "Gruppe" }
|
|
},
|
|
{
|
|
"name" : "user",
|
|
"required" : ["title"],
|
|
"optional" : ["description", "details:", "owner:", "tolerance"],
|
|
"icon" : "", // TODO look for an icon
|
|
"interpreter" : "Volkszaehler\\Interpreter\\AggregatorInterpreter",
|
|
"model" : "Volkszaehler\\Model\\Aggregator",
|
|
"translation" : { "de" : "Nutzer" }
|
|
},
|
|
{
|
|
"name" : "power",
|
|
"required" : ["title", "resolution"],
|
|
"optional" : ["description", "details:", "owner:", "address:", "tolerance", "port", "cuuid"],
|
|
"icon" : "", // TODO look for an icon
|
|
"unit" : "kW/h",
|
|
"interpreter" : "Volkszaehler\\Interpreter\\MeterInterpreter",
|
|
"model" : "Volkszaehler\\Model\\Channel",
|
|
"translation" : { "de" : "Strom" }
|
|
},
|
|
{
|
|
"name" : "gas",
|
|
"required" : ["title", "resolution"],
|
|
"optional" : ["description", "details:", "owner:", "address:", "tolerance", "port", "cuuid"],
|
|
"icon" : "", // TODO look for an icon
|
|
"unit" : "m³/h",
|
|
"interpreter" : "Volkszaehler\\Interpreter\\MeterInterpreter",
|
|
"model" : "Volkszaehler\\Model\\Channel",
|
|
"translation" : { "de" : "Gas" }
|
|
},
|
|
{
|
|
"name" : "water",
|
|
"required" : ["title", "resolution"],
|
|
"optional" : ["description", "details:", "owner:", "address:", "tolerance", "port", "cuuid"],
|
|
"icon" : "", // TODO look for an icon
|
|
"unit" : "m³/h",
|
|
"interpreter" : "Volkszaehler\\Interpreter\\MeterInterpreter",
|
|
"model" : "Volkszaehler\\Model\\Channel",
|
|
"translation" : { "de" : "Wasser" }
|
|
},
|
|
{
|
|
"name" : "temperature",
|
|
"required" : ["title"],
|
|
"optional" : ["description", "details:", "owner:", "address:", "tolerance"],
|
|
"icon" : "", // TODO look for an icon
|
|
"unit" : "°C",
|
|
"interpreter" : "Volkszaehler\\Interpreter\\SensorInterpreter",
|
|
"model" : "Volkszaehler\\Model\\Channel",
|
|
"translation" : { "de" : "Temperatur" }
|
|
},
|
|
{
|
|
"name" : "pressure",
|
|
"required" : ["title"],
|
|
"optional" : ["description", "details:", "owner:", "address:", "tolerance"],
|
|
"icon" : "", // TODO look for an icon
|
|
"unit" : "hPa",
|
|
"interpreter" : "Volkszaehler\\Interpreter\\SensorInterpreter",
|
|
"model" : "Volkszaehler\\Model\\Channel",
|
|
"translation" : { "de" : "Luftdruck" }
|
|
},
|
|
{
|
|
"name" : "humidity",
|
|
"required" : ["title"],
|
|
"optional" : ["description", "details:", "owner:", "address:", "tolerance"],
|
|
"icon" : "", // TODO look for an icon
|
|
"unit" : "%",
|
|
"interpreter" : "Volkszaehler\\Interpreter\\SensorInterpreter",
|
|
"model" : "Volkszaehler\\Model\\Channel",
|
|
"translation" : { "de" : "Luftfeuchtigkeit" }
|
|
},
|
|
{
|
|
"name" : "windspeed",
|
|
"required" : ["title"],
|
|
"optional" : ["description", "details:", "owner:", "address:", "tolerance"],
|
|
"icon" : "", // TODO look for an icon
|
|
"unit" : "km/h",
|
|
"interpreter" : "Volkszaehler\\Interpreter\\SensorInterpreter",
|
|
"model" : "Volkszaehler\\Model\\Channel",
|
|
"translation" : { "de" : "Windgeschwindigkeit" }
|
|
},
|
|
{
|
|
"name" : "radition",
|
|
"required" : ["title"],
|
|
"optional" : ["description", "details:", "owner:", "address:", "tolerance"],
|
|
"icon" : "", // TODO look for an icon
|
|
"unit" : "", // TODO add unit
|
|
"interpreter" : "Volkszaehler\\Interpreter\\SensorInterpreter",
|
|
"model" : "Volkszaehler\\Model\\Channel",
|
|
"translation" : { "de" : "Strahlung" }
|
|
},
|
|
{
|
|
"name" : "luminosity",
|
|
"required" : ["title"],
|
|
"optional" : ["description", "details:", "owner:", "address:", "tolerance"],
|
|
"icon" : "", // TODO look for an icon
|
|
"unit" : "", // TODO add unit
|
|
"interpreter" : "Volkszaehler\\Interpreter\\SensorInterpreter",
|
|
"model" : "Volkszaehler\\Model\\Channel",
|
|
"translation" : { "de" : "Lichtstärke" }
|
|
}
|
|
]
|