def register_water_level_2(self):
        print('Registering water_level_2')
        alert_spec = AlertSpec(False, abs_alert_thresholds=(7.5, 35))

        self._data_manager.register_datatype(name='water_level_2',
                                             storage_type=StorageType.NUMBER,
                                             valid_bounds=(0, 100),
                                             unit='m',
                                             alert_spec=alert_spec)
    def register_temp(self):
        print('Registering temp')
        alert_spec = AlertSpec(True,
                               avg_deviation=(0.75, 1),
                               past_avg_count=10)

        self._data_manager.register_datatype(name='temp',
                                             storage_type=StorageType.NUMBER,
                                             valid_bounds=(-273.15, None),
                                             unit='C',
                                             alert_spec=alert_spec)
    def register_water_level(self):
        print('Registering water_level')
        alert_spec = AlertSpec(False,
                               abs_alert_thresholds=(0.1, 9.9),
                               alert_intervals=[(4, 5), (7, 8)])

        self._data_manager.register_datatype(name='water_level',
                                             storage_type=StorageType.NUMBER,
                                             valid_bounds=(0, 10),
                                             unit='m',
                                             alert_spec=alert_spec)
    def register_pressure(self):
        print('Registering pressure')
        alert_spec = AlertSpec(False,
                               abs_alert_thresholds=(None, 1000),
                               array_treatment=ArrayTreatment.MAX)

        self._data_manager.register_datatype(name='pressure',
                                             storage_type=StorageType.ARRAY,
                                             array_type=StorageType.NUMBER,
                                             valid_bounds=(0, None),
                                             alert_spec=alert_spec)
    def register_volts(self):
        print('Registering volts')
        alert_spec = AlertSpec(False,
                               alert_intervals=[(-1.1, 1.1)],
                               array_treatment=ArrayTreatment.INDIVIDUALLY)

        self._data_manager.register_datatype(name='volts',
                                             storage_type=StorageType.ARRAY,
                                             array_type=StorageType.NUMBER,
                                             valid_bounds=(-24, 24),
                                             unit='V',
                                             alert_spec=alert_spec)
Example #6
0
	def register_pm10(self):
		print('Registering pm10')
		alert_spec = AlertSpec(
			False,
			abs_alert_thresholds=(None, 140),
		)
		
		self._data_manager.register_datatype(
			name='pm10',
			storage_type=StorageType.NUMBER,
			valid_bounds=(0, None),
			alert_spec=alert_spec
		)
Example #7
0
	def register_humidity(self):
		print('Registering humidity')
		alert_spec = AlertSpec(
			False,
			abs_alert_thresholds=(20, 95),
		)
		
		self._data_manager.register_datatype(
			name='humidity',
			storage_type=StorageType.NUMBER,
			valid_bounds=(0, 100),
			alert_spec=alert_spec
		)
Example #8
0
	def register_temp(self):
		print('Registering temp')
		alert_spec = AlertSpec(
			False,
			abs_alert_thresholds=(-5, 25),
			avg_deviation=(0.25, 0.25),
			past_avg_count=5
		)
		
		self._data_manager.register_datatype(
			name='temp',
			storage_type=StorageType.NUMBER,
			valid_bounds=(-273.15, None),
			alert_spec=alert_spec
		)