Skip to content

Configurations

Yatharth Ranjan edited this page Jul 7, 2020 · 4 revisions

Grove Pi Sensors

Air Quality sensor

python module

sensors:
  - name: "grovepi_air_quality"
    module: "sensors.grovepi"
    class: "AirQualitySensor"
    publishing_topic: "data-stream/sensors/grovepi-air-quality"
    poll_frequency_ms: 5000
    flush_size: 10
    flush_after_s: 1000

data uploader module

sensorConfigs:
  - sensorName: "grovepi-air-quality"
    inputTopic: "data-stream/sensors/grovepi-air-quality"
    outputTopic: "radar_iot_grove_pi_air_quality"
    converterClasses:
      - consumerName: "rest_proxy"
        converterClass: "org.radarbase.iot.converter.avro.grovepi.AirQualityAvroConverter"
      - consumerName: "influx_db"
        converterClass: "org.radarbase.iot.converter.influxdb.grovepi.AirQualitySensorInfluxDbConverter"

Temperature sensor

python module

sensors:
  - name: "grovepi_temperature_and_humidity"
    module: "sensors.grovepi"
    class: "TemperatureAndHumiditySensor"
    publishing_topic: "data-stream/sensors/grovepi-temperature-and-humidity"
    poll_frequency_ms: 10000
    flush_size: 10
    flush_after_s: 1000

data uploader module

sensorConfigs:
  - sensorName: "grovepi-temperature-and-humidity"
    inputTopic: "data-stream/sensors/grovepi-temperature-and-humidity"
    outputTopic: "radar_iot_grove_pi_temperature_and_humidity"
    converterClasses:
      - consumerName: "rest_proxy"
        converterClass: "org.radarbase.iot.converter.avro.grovepi.TempAndHumiditySensorAvroConverter"
      - consumerName: "influx_db"
        converterClass: "org.radarbase.iot.converter.influxdb.grovepi.TempAndHumiditySensorInfluxDbConverter"

PIR Motion Sensor

python module

sensors:
  - name: "grovepi_pir_motion"
    module: "sensors.grovepi"
    class: "PIRMotionSensor"
    publishing_topic: "data-stream/sensors/grovepi-pir-motion"
    poll_frequency_ms: 1000
    flush_size: 10
    flush_after_s: 1000

data uploader module

sensorConfigs:
  - sensorName: "grovepi-pir-motion"
    inputTopic: "data-stream/sensors/grovepi-pir-motion"
    outputTopic: "radar_iot_grove_pi_pir_motion"
    converterClasses:
      - consumerName: "rest_proxy"
        converterClass: "org.radarbase.iot.converter.avro.grovepi.PIRMotionSensorAvroConverter"
      - consumerName: "influx_db"
        converterClass: "org.radarbase.iot.converter.influxdb.grovepi.PIRMotionSensorInfluxDbConverter"

Light sensor

python module

sensors:
  - name: "grovepi_light"
    module: "sensors.grovepi"
    class: "LightSensor"
    publishing_topic: "data-stream/sensors/grovepi-light"
    poll_frequency_ms: 30000
    flush_size: 10
    flush_after_s: 1000

data uploader module

sensorConfigs:
  - sensorName: "grovepi-light"
    inputTopic: "data-stream/sensors/grovepi-light"
    outputTopic: "radar_iot_grove_pi_light"
    converterClasses:
      - consumerName: "rest_proxy"
        converterClass: "org.radarbase.iot.converter.avro.grovepi.LightSensorAvroConverter"
      - consumerName: "influx_db"
        converterClass: "org.radarbase.iot.converter.influxdb.grovepi.LightSensorInfluxDbConverter"