Skip to content

InfluxDB and Grafana Configuration

aaronsathya edited this page Jul 14, 2024 · 22 revisions

Important

Start the InfluxDB and Grafana Configuration only after all the I2C Sensor Configuration steps have been completed.

  1. Clone the MyVivarium RPi-IoT repository:

    git clone https://github.com/myvivarium/RPi-IoT.git
    
  2. cd into the multisensors directory:

    cd RPi-IoT/multisensors
    
  3. Run influxdb-multisensor.py:

    python influxdb-multisensor.py
    

    You should begin to start seeing readings from the sensors like this:

    Let the script continue running.

  4. In a new terminal window we will check if the infludb database "multisensors" has readings being sent to it:

    docker exec -it influxdb influx
    > USE multisensors
    > show measurements
    > select * from illuminance
    > quit
    

    You should begin seeing something like this: