~talfus-laddus/weather-sensor

Sense weather elements (temperature, humidity and pressure) using Raspberry Pi and BME280
round measurement to one place after comma
fix line protocol converter

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~talfus-laddus/weather-sensor
read/write
git@git.sr.ht:~talfus-laddus/weather-sensor

You can also use your local clone with git send-email.

#Weather Sensor

Using the Raspberry Pi and BME280 to measure weather elements (temperature, humidity and pressure).

Data is written as stream using RxPY to an InfluxDB instance.

#Raspberry Pi I2C Setup

Source: https://github.com/pimoroni/bme280-python

sudo raspi-config nonint do_i2c 0

#Wiring up the BME280 sensor

Wiring up the sensor (projects.raspberrypi.org)

Pi GPIO BME280
3.3V or 5V VCC
GND GND
SDA SDA (SDI)
SCL SCL (SCK)

Source: https://projects.raspberrypi.org/en/projects/build-your-own-weather-station/2

More Information on GPIO: The Raspberry Pi GPIO pinout guide.

#Debugging

sudo apt-get install -y i2c-tools
i2cdetect -y 1

#Installation

pipx install git+https://git.sr.ht/~talfus-laddus/weather-sensor

#Influx Client Configuration

Configuration paths:

  1. XDG_CONFIG_HOME/weather-sensor/config.ini
  2. $HOME/.config/weather-sensor/config.ini

Example configuration:

[influx2]
url=http://localhost:8086
org=my-org
token=my-token

#Usage

Usage: ws [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  run
  sync

#References