solarpowerlog trunk
/home/tobi/workspace/solarpowerlog/src/Inverters/Capabilites.h
Go to the documentation of this file.
00001 /* ----------------------------------------------------------------------------
00002    solarpowerlog
00003    Copyright (C) 2009  Tobias Frost
00004 
00005    This file is part of solarpowerlog.
00006 
00007    Solarpowerlog is free software; However, it is dual-licenced
00008    as described in the file "COPYING".
00009 
00010    For this file (Capabilites.h), the license terms are:
00011 
00012    You can redistribute it and/or  modify it under the terms of the GNU Lesser
00013    General Public License (LGPL) as published by the Free Software Foundation;
00014    either version 3 of the License, or (at your option) any later version.
00015 
00016    This program is distributed in the hope that it will be useful, but
00017    WITHOUT ANY WARRANTY; without even the implied warranty of
00018    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019    Lesser General Public License for more details.
00020 
00021    You should have received a copy of the GNU Library General Public
00022    License along with this proramm; if not, see
00023    <http://www.gnu.org/licenses/>.
00024    ----------------------------------------------------------------------------
00025 */
00026 
00041 #ifndef CAPABILITES_H_
00042 #define CAPABILITES_H_
00043 
00044 #ifdef HAVE_CONFIG_H
00045 #include "config.h"
00046 #endif
00047 
00064 #define CAPA_CAPAS_UPDATED     "CapabilityList Updated"
00065 #define CAPA_CAPAS_UPDATED_TYPE  IValue::bool_type
00066 
00067 
00089 #define CAPA_CAPAS_REMOVEALL       "CapabilityList Please Unsubscribe"
00090 #define CAPA_CAPAS_REMOVEALL_TYPE  IValue::bool_type
00091 
00092 
00099 #define CAPA_INVERTER_DATASTATE  "Data Validity"
00100 #define CAPA_INVERTER_DATASTATE_TYPE  IValue::bool_type
00101 
00110 #define CAPA_INVERTER_QUERYINTERVAL  "Data Query Interval"
00111 #define CAPA_INVERTER_QUERYINTERVAL_TYPE  IValue::float_type
00112 
00113 
00114 
00122 #define CAPA_INVERTER_MANUFACTOR_NAME "Inverter Manufactor"
00123 #define CAPA_INVERTER_MANUFACTOR_TYPE IValue::string_type
00124 
00125 
00133 #define CAPA_INVERTER_MODEL "Inverter Model"
00134 #define CAPA_INVERTER_MODEL_TYPE IValue::string_type
00135 
00136 
00139 #define CAPA_INVERTER_CONFIGNAME "Inverter Name"
00140 #define CAPA_INVERTER_CONFIGNAME_TYPE IValue::string_type
00141 
00142 
00143 
00155 #define CAPA_INVERTER_FIRMWARE "Firmware Version"
00156 #define CAPA_INVERTER_FIRMWARE_TYPE IValue::string_type
00157 
00158 
00168 #define CAPA_INVERTER_ACPOWER_TOTAL "Current Grid Feeding Power"
00169 #define CAPA_INVERTER_ACPOWER_TOTAL_TYPE IValue::float_type
00170 
00179 #define CAPA_INVERTER_PON_HOURS "Inverter Power On Hours"
00180 #define CAPA_INVERTER_PON_HOURS_TYPE IValue::float_type
00181 
00182 
00183 
00192 #define CAPA_INVERTER_KWH_Y2D "Energy produced this year (kWh)"
00193 #define CAPA_INVERTER_KWH_Y2D_TYPE IValue::float_type
00194 
00195 
00204 #define CAPA_INVERTER_KWH_M2D "Energy produced this month (kWh)"
00205 #define CAPA_INVERTER_KWH_M2D_TYPE IValue::float_type
00206 
00215 #define CAPA_INVERTER_KWH_2D "Energy produced today (kWh)"
00216 #define CAPA_INVERTER_KWH_2D_TYPE IValue::float_type
00217 
00226 #define CAPA_INVERTER_KWH_TOTAL_NAME "Energy produced accumulated all time (kWh)"
00227 #define CAPA_INVERTER_KWH_TOTAL_TYPE IValue::float_type
00228 
00242 #define CAPA_INVERTER_INSTALLEDPOWER_NAME "Installed solar power (Wp)"
00243 #define CAPA_INVERTER_INSTALLEDPOWER_TYPE IValue::float_type
00244 
00253 #define CAPA_INVERTER_NET_FREQUENCY_NAME "Net frequency (Hz)"
00254 #define CAPA_INVERTER_NET_FREQUENCY_TYPE IValue::float_type
00255 
00269 #define CAPA_INVERTER_RELPOWER_NAME "relative Power (%)"
00270 #define CAPA_INVERTER_RELPOWER_TYPE IValue::float_type
00271 
00281 #define CAPA_INVERTER_INPUT_DC_VOLTAGE_NAME "DC voltage in (V)"
00282 #define CAPA_INVERTER_INPUT_DC_VOLTAGE_TYPE IValue::float_type
00283 
00293 #define CAPA_INVERTER_INPUT_DC_CURRENT_NAME "DC current in (A)"
00294 #define CAPA_INVERTER_INPUT_DC_CURRENT_TYPE IValue::float_type
00295 
00296 
00306 #define CAPA_INVERTER_GRID_AC_VOLTAGE_NAME "AC grid voltage (V)"
00307 #define CAPA_INVERTER_GRID_AC_VOLTAGE_TYPE IValue::float_type
00308 
00318 #define CAPA_INVERTER_GRID_AC_CURRENT_NAME "AC grid feeding current (A)"
00319 #define CAPA_INVERTER_GRID_AC_CURRENT_TYPE IValue::float_type
00320 
00334 #define CAPA_INVERTER_TEMPERATURE_NAME "Inverter Temperature (C)"
00335 #define CAPA_INVERTER_TEMPERATURE_TYPE IValue::float_type
00336 
00341 enum InverterStatusCodes
00342 {
00348      OFFLINE,
00349 
00353      STATUS_UNAVAILABLE,
00354 
00356      NOT_FEEDING_OK,
00357 
00360      NOT_FEEDING_EXTEVENT,
00361 
00363      NOT_FEEDING_ERROR,
00364 
00368      FEEDING_WARNING,
00369 
00371      FEEDING,
00372 
00374      FEEDING_MPP,
00375 
00378      FEEDING_MAXPOWER,
00379 };
00380 
00386 #define CAPA_INVERTER_STATUS_NAME "Inverter Overall Status (int)"
00387 #define CAPA_INVERTER_STATUS_TYPE IValue::int_type
00388 
00407 #define CAPA_INVERTER_STATUS_READABLE_NAME "Inverter Overall Status"
00408 #define CAPA_INVERTER_STATUS_READABLE_TYPE IValue::string_type
00409 
00410 // Filter "CSVDumper" provides the current logging filename in this value.
00411 // Present only if CSV Dumper is in the chain.
00412 // Empty, if the file could not be opened.
00413 #define CAPA_CSVDUMPER_FILENAME "CSVDumper::Filename"
00414 #define CAPA_CSVDUMPER_FILENAME_TYPE IValue::string_type
00415 
00416 // Filer "CSVDumper" logges these capabilites.
00417 // Note: This lis might change over runtime, as only in "log everything" mode
00418 // the CSV is expanded dynamically. Be prepared that might be not enough data
00419 // in your CSV!
00420 // The Capabilites are "Comma seperated", with no blank in between.
00421 #define CAPA_CSVDUMPER_LOGGEDCAPABILITES "CSVDumper::LoggedCaps"
00422 #define CAPA_CSVDUMPER_LOGGEDCAPABILITES_TYPE IValue::string_type
00423 
00424 
00425 #endif /* CAPABILITES_H_ */