Models¶
- class Configuration(*args, **kwargs)[source]¶
Configuration(id, key, value, value_type, unit, internal)
- BOOL = 4¶
- DATE = 3¶
- exception DoesNotExist¶
- Configuration.FLOAT = 2¶
- Configuration.INT = 1¶
- exception Configuration.MultipleObjectsReturned¶
- Configuration.STR = 0¶
- Configuration.TYPES = ((0, 'str'), (1, 'int'), (2, 'float'), (3, 'date'), (4, 'bool'))¶
- Configuration.get_value_type_display(*moreargs, **morekwargs)¶
- Configuration.objects = <django.db.models.manager.Manager object at 0x7f45bc823610>¶
- class Device(*args, **kwargs)[source]¶
Device(id, name, device_type)
- CU = 2¶
- DEVICE_TYPES = ((0, 'HeatStorage'), (1, 'PowerMeter'), (2, 'CogenerationUnit'), (3, 'PeakLoadBoiler'), (4, 'ThermalConsumer'), (5, 'ElectricalConsumer'))¶
- exception DoesNotExist¶
- Device.EC = 5¶
- Device.HS = 0¶
- exception Device.MultipleObjectsReturned¶
- Device.PLB = 3¶
- Device.PM = 1¶
- Device.TC = 4¶
- Device.deviceconfiguration_set¶
- Device.get_device_type_display(*moreargs, **morekwargs)¶
- Device.objects = <django.db.models.manager.Manager object at 0x7f45bc823190>¶
- Device.sensor_set¶
- class DeviceConfiguration(*args, **kwargs)[source]¶
Does not inherit from Configuration because of bulk creation
- BOOL = 4¶
- DATE = 3¶
- exception DoesNotExist¶
- DeviceConfiguration.FLOAT = 2¶
- DeviceConfiguration.INT = 1¶
- exception DeviceConfiguration.MultipleObjectsReturned¶
- DeviceConfiguration.STR = 0¶
- DeviceConfiguration.TYPES = ((0, 'str'), (1, 'int'), (2, 'float'), (3, 'date'), (4, 'bool'))¶
- DeviceConfiguration.device¶
- DeviceConfiguration.get_value_type_display(*moreargs, **morekwargs)¶
- DeviceConfiguration.objects = <django.db.models.manager.Manager object at 0x7f45bc823bd0>¶
- class Notification(*args, **kwargs)[source]¶
Notification(id, threshold_id, sensor_value_id, target, read)
- exception DoesNotExist¶
- exception Notification.MultipleObjectsReturned¶
- Notification.objects = <django.db.models.manager.Manager object at 0x7f45bc7cfa50>¶
- Notification.sensor_value¶
- Notification.threshold¶
- class RealWeatherValue(*args, **kwargs)[source]¶
RealWeatherValue(id, temperature, timestamp)
- exception DoesNotExist¶
- exception RealWeatherValue.MultipleObjectsReturned¶
- RealWeatherValue.get_next_by_timestamp(*moreargs, **morekwargs)¶
- RealWeatherValue.get_previous_by_timestamp(*moreargs, **morekwargs)¶
- RealWeatherValue.objects = <django.db.models.manager.Manager object at 0x7f45bc7b4d90>¶
- class Sensor(*args, **kwargs)[source]¶
Sensor(id, device_id, name, key, setter, unit, in_diagram, aggregate_sum, aggregate_avg)
- exception DoesNotExist¶
- exception Sensor.MultipleObjectsReturned¶
- Sensor.device¶
- Sensor.objects = <django.db.models.manager.Manager object at 0x7f45bc7b4250>¶
- Sensor.sensorvalue_set¶
- Sensor.sensorvaluedaily_set¶
- Sensor.sensorvaluehourly_set¶
- Sensor.sensorvaluemonthlyavg_set¶
- Sensor.sensorvaluemonthlysum_set¶
- Sensor.threshold_set¶
- class SensorValue(*args, **kwargs)[source]¶
SensorValue(id, sensor_id, value, timestamp)
- exception DoesNotExist¶
- exception SensorValue.MultipleObjectsReturned¶
- SensorValue.get_next_by_timestamp(*moreargs, **morekwargs)¶
- SensorValue.get_previous_by_timestamp(*moreargs, **morekwargs)¶
- SensorValue.notification_set¶
- SensorValue.objects = <django.db.models.manager.Manager object at 0x7f45bc7b46d0>¶
- SensorValue.sensor¶
- class SensorValueDaily(*args, **kwargs)[source]¶
SensorValueDaily(id, sensor_id, timestamp, value)
- exception DoesNotExist¶
- exception SensorValueDaily.MultipleObjectsReturned¶
- SensorValueDaily.get_next_by_timestamp(*moreargs, **morekwargs)¶
- SensorValueDaily.get_previous_by_timestamp(*moreargs, **morekwargs)¶
- SensorValueDaily.objects = <django.db.models.manager.Manager object at 0x7f45bc7c1690>¶
- SensorValueDaily.sensor¶
- class SensorValueHourly(*args, **kwargs)[source]¶
SensorValueHourly(id, sensor_id, timestamp, value)
- exception DoesNotExist¶
- exception SensorValueHourly.MultipleObjectsReturned¶
- SensorValueHourly.get_next_by_timestamp(*moreargs, **morekwargs)¶
- SensorValueHourly.get_previous_by_timestamp(*moreargs, **morekwargs)¶
- SensorValueHourly.objects = <django.db.models.manager.Manager object at 0x7f45bc7c1250>¶
- SensorValueHourly.sensor¶
- class SensorValueMonthlyAvg(*args, **kwargs)[source]¶
SensorValueMonthlyAvg(id, sensor_id, timestamp, avg)
- exception DoesNotExist¶
- exception SensorValueMonthlyAvg.MultipleObjectsReturned¶
- SensorValueMonthlyAvg.get_next_by_timestamp(*moreargs, **morekwargs)¶
- SensorValueMonthlyAvg.get_previous_by_timestamp(*moreargs, **morekwargs)¶
- SensorValueMonthlyAvg.objects = <django.db.models.manager.Manager object at 0x7f45bc7c1f90>¶
- SensorValueMonthlyAvg.sensor¶
- class SensorValueMonthlySum(*args, **kwargs)[source]¶
SensorValueMonthlySum(id, sensor_id, timestamp, sum)
- exception DoesNotExist¶
- exception SensorValueMonthlySum.MultipleObjectsReturned¶
- SensorValueMonthlySum.get_next_by_timestamp(*moreargs, **morekwargs)¶
- SensorValueMonthlySum.get_previous_by_timestamp(*moreargs, **morekwargs)¶
- SensorValueMonthlySum.objects = <django.db.models.manager.Manager object at 0x7f45bc7c1b10>¶
- SensorValueMonthlySum.sensor¶
- class Threshold(*args, **kwargs)[source]¶
Threshold(id, sensor_id, name, category, show_manager, min_value, max_value)
- Danger = 5¶
- Default = 0¶
- exception DoesNotExist¶
- Threshold.Info = 3¶
- exception Threshold.MultipleObjectsReturned¶
- Threshold.Primary = 1¶
- Threshold.Success = 2¶
- Threshold.TYPES = ((0, 'Default'), (1, 'Primary'), (2, 'Success'), (3, 'Info'), (4, 'Warning'), (5, 'Danger'))¶
- Threshold.Warning = 4¶
- Threshold.get_category_display(*moreargs, **morekwargs)¶
- Threshold.notification_set¶
- Threshold.objects = <django.db.models.manager.Manager object at 0x7f45bc7cf510>¶
- Threshold.sensor¶
- class WeatherValue(*args, **kwargs)[source]¶
WeatherValue(id, temperature, timestamp, target_time)
- exception DoesNotExist¶
- exception WeatherValue.MultipleObjectsReturned¶
- WeatherValue.get_next_by_target_time(*moreargs, **morekwargs)¶
- WeatherValue.get_next_by_timestamp(*moreargs, **morekwargs)¶
- WeatherValue.get_previous_by_target_time(*moreargs, **morekwargs)¶
- WeatherValue.get_previous_by_timestamp(*moreargs, **morekwargs)¶
- WeatherValue.objects = <django.db.models.manager.Manager object at 0x7f45bc7b4a90>¶