🚀 Launch Week Day 5:Introducing Immutable Scans.Learn More →
Socket
Book a DemoInstallSign in
Socket

www.github.com/viam-modules/bosch.git

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

www.github.com/viam-modules/bosch.git

Go Modules
Version
v0.0.0-20250211214215-88e860794fd0
Version published
Created
Source

bosch module

This bosch module implements a bosch BME280 environmental sensor, used for sensing temperature, humidity, and barometric pressure using the rdk:component:sensor API.

[!NOTE] Before configuring your sensor, you must create a machine.

Navigate to the CONFIGURE tab of your machine in the Viam app. Add sensor / viam:bosch:bme280 to your machine.

Configure your bme280 sensor

On the new component panel, copy and paste the following attribute template into your sensors’s attributes field:

{
  "i2c_bus": "<your-i2c-bus-index-on-board>",
  "i2c_address": "<your-i2c-address>"
}

Attributes

The following attributes are available for viam:bosch:bme280 sensors:

AttributeTypeRequired?Description
i2c_busstringRequiredThe index of the I2C bus on the board that the sensor is wired to.
i2c_addressstringOptionalDefault: 0x77. The I2C device address of the sensor.

Example Configuration

  {
    "i2c_bus": "<your-i2c-bus-index-on-board>",
    "i2c_address": "<your-i2c-address>"
  }

Next Steps

  • To test your sensor, expand the TEST section of its configuration pane or go to the CONTROL tab.
  • To write code against your sensor, use one of the available SDKs.
  • To view examples using a sensor component, explore these tutorials.

FAQs

Package last updated on 11 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts