diff --git a/share/definitions/entities.json b/share/definitions/entities.json deleted file mode 100644 index 91894e1..0000000 --- a/share/definitions/entities.json +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Definition of entities - - * Format is specified in EntityDefinition class - * - * @author Steffen Vogel - * @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 . - */ - -[ - { - "name" : "group", - "required" : ["title"], - "optional" : ["description", "details:", "owner:", "tolerance"], - "interpreter" : "AggregatorInterpreter", - "icon" : "" // TODO look for an icon - }, - { - "name" : "user", - "required" : ["title"], - "optional" : ["description", "details:", "owner:", "tolerance"], - "interpreter" : "AggregatorInterpreter", - "icon" : "" // TODO look for an icon - }, - { - "name" : "power", - "required" : ["title", "resolution"], - "optional" : ["description", "details:", "owner:", "address:", "tolerance"], - "interpreter" : "MeterInterpreter", - "unit" : "kW/h", - "icon" : "" // TODO look for an icon - }, - { - "name" : "gas", - "required" : ["title", "resolution"], - "optional" : ["description", "details:", "owner:", "address:", "tolerance"], - "interpreter" : "MeterInterpreter", - "unit" : "m³/h", - "icon" : "" // TODO look for an icon - }, - { - "name" : "water", - "required" : ["title", "resolution"], - "optional" : ["description", "details:", "owner:", "address:", "tolerance"], - "interpreter" : "MeterInterpreter", - "unit" : "m³/h", - "icon" : "" // TODO look for an icon - }, - { - "name" : "temperature", - "required" : ["title"], - "optional" : ["description", "details:", "owner:", "address:", "tolerance"], - "interpreter" : "SensorInterpreter", - "unit" : "°C", - "icon" : "" // TODO look for an icon - }, - { - "name" : "pressure", - "required" : ["title"], - "optional" : ["description", "details:", "owner:", "address:", "tolerance"], - "interpreter" : "SensorInterpreter", - "unit" : "hPa", - "icon" : "" // TODO look for an icon - }, - { - "name" : "humidity", - "required" : ["title"], - "optional" : ["description", "details:", "owner:", "address:", "tolerance"], - "interpreter" : "SensorInterpreter", - "unit" : "%", - "icon" : "" // TODO look for an icon - }, - { - "name" : "windspeed", - "required" : ["title"], - "optional" : ["description", "details:", "owner:", "address:", "tolerance"], - "interpreter" : "SensorInterpreter", - "unit" : "km/h", - "icon" : "" // TODO look for an icon - }, - { - "name" : "radition", - "required" : ["title"], - "optional" : ["description", "details:", "owner:", "address:", "tolerance"], - "interpreter" : "SensorInterpreter", - "icon" : "" // TODO look for an icon - }, - { - "name" : "luminosity", - "required" : ["title"], - "optional" : ["description", "details:", "owner:", "address:", "tolerance"], - "interpreter" : "SensorInterpreter", - "icon" : "" // TODO look for an icon - } -] diff --git a/share/definitions/properties.json b/share/definitions/properties.json deleted file mode 100644 index c4bdcac..0000000 --- a/share/definitions/properties.json +++ /dev/null @@ -1,302 +0,0 @@ -/** - * Definition of properties for entities - * - * Format is specified in PropertyDefinition class - * - * @author Steffen Vogel - * @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 . - */ - -[ - { - "name" : "title", - "type" : "string", - "pattern" : "/[a-z0-9 ]/", - "min": 3, - "max" : 255 - }, - { - "name" : "description", - "type" : "string", - "pattern" : "/[a-z0-9 ]/", // TODO add whitespaces as \t \n \r - "max" : 255, // TODO allowed column size in database? - "min" : 5 - }, - { - "name" : "cost", - "type" : "float", - "min" : 0 - }, - { - "name" : "resolution", - "type" : "integer", - "min" : 1 - }, - { - "name" : "tolerance", - "type" : "float", - "min" : 0, - "max" : 1 - }, - { - "name" : "address:lat", - "type" : "float", - "min" : -90, - "max" : 90 - }, - { - "name" : "address:lon", - "type" : "float", - "min" : -90, - "max" : 90 - }, - { - "name" : "address:city", - "type" : "string", - "pattern" : "" // TODO add pattern - }, - { - "name" : "address:houseno", - "type" : "string" - }, - { - "name" : "address:postal", - "type" : "string" - }, - { - "name" : "address:state", - "type" : "multiple", - "choices" : [ - "Albania", - "Algeria", - "Andorra", - "Angola", - "Anguilla", - "Antigua and Barbuda", - "Argentina", - "Armenia", - "Aruba", - "Australia", - "Austria", - "Azerbaijan Republic", - "Bahamas", - "Bahrain", - "Barbados", - "Belgium", - "Belize", - "Benin", - "Bermuda", - "Bhutan", - "Bolivia", - "Bosnia and Herzegovina", - "Botswana", - "Brazil", - "British Virgin Islands", - "Brunei", - "Bulgaria", - "Burkina Faso", - "Burundi", - "Cambodia", - "Canada", - "Cape Verde", - "Cayman Islands", - "Chad", - "Chile", - "China Worldwide", - "Colombia", - "Comoros", - "Cook Islands", - "Costa Rica", - "Croatia", - "Cyprus", - "Czech Republic", - "Democratic Republic of the Congo", - "Denmark", - "Djibouti", - "Dominica", - "Dominican Republic", - "Ecuador", - "El Salvador", - "Eritrea", - "Estonia", - "Ethiopia", - "Falkland Islands", - "Faroe Islands", - "Federated States of Micronesia", - "Fiji", - "Finland", - "France", - "French Guiana", - "French Polynesia", - "Gabon Republic", - "Gambia", - "Germany", - "Gibraltar", - "Greece", - "Greenland", - "Grenada", - "Guadeloupe", - "Guatemala", - "Guinea", - "Guinea Bissau", - "Guyana", - "Honduras", - "Hong Kong", - "Hungary", - "Iceland", - "India", - "Indonesia", - "Ireland", - "Israel", - "Italy", - "Jamaica", - "Japan", - "Jordan", - "Kazakhstan", - "Kenya", - "Kiribati", - "Kuwait", - "Kyrgyzstan", - "Laos", - "Latvia", - "Lesotho", - "Liechtenstein", - "Lithuania", - "Luxembourg", - "Madagascar", - "Malawi", - "Malaysia", - "Maldives", - "Mali", - "Malta", - "Marshall Islands", - "Martinique", - "Mauritania", - "Mauritius", - "Mayotte", - "Mexico", - "Mongolia", - "Montserrat", - "Morocco", - "Mozambique", - "Namibia", - "Nauru", - "Nepal", - "Netherlands", - "Netherlands Antilles", - "New Caledonia", - "New Zealand", - "Nicaragua", - "Niger", - "Niue", - "Norfolk Island", - "Norway", - "Oman", - "Palau", - "Panama", - "Papua New Guinea", - "Peru", - "Philippines", - "Pitcairn Islands", - "Poland", - "Portugal", - "Qatar", - "Republic of the Congo", - "Reunion", - "Romania", - "Russia", - "Rwanda", - "Saint Vincent and the Grenadines", - "Samoa", - "San Marino", - "São Tomé and Príncipe", - "Saudi Arabia", - "Senegal", - "Seychelles", - "Sierra Leone", - "Singapore", - "Slovakia", - "Slovenia", - "Solomon Islands", - "Somalia", - "South Africa", - "South Korea", - "Spain", - "Sri Lanka", - "St. Helena", - "St. Kitts and Nevis", - "St. Lucia", - "St. Pierre and Miquelon", - "Suriname", - "Svalbard and Jan Mayen Islands", - "Swaziland", - "Sweden", - "Switzerland", - "Taiwan", - "Tajikistan", - "Tanzania", - "Thailand", - "Togo", - "Tonga", - "Trinidad and Tobago", - "Tunisia", - "Turkey", - "Turkmenistan", - "Turks and Caicos Islands", - "Tuvalu", - "Uganda", - "Ukraine", - "United Arab Emirates", - "United Kingdom", - "Uruguay", - "Vanuatu", - "Vatican City State", - "Venezuela", - "Vietnam", - "Wallis and Futuna Islands", - "Yemen", - "Zambia" - ] - }, - { - "name" : "address:country", - "type" : "string" - }, - { - "name" : "photo:url", - "type" : "string", - "pattern" : "" // TODO add pattern - }, - { - "name" : "cuuid", - "type" : "string", - "max" : 37 - }, - { - "name" : "port", - "type" : "string", - "max" : 6 - }, - { - "name" : "active", - "type" : "boolean" - } -]