feux07 / bme280ctl

BME280ctl is a self-hosted Telegram bot on Raspberry Pi that is used to retrieve temperature, humidity, and pressure data from the BME280 sensor.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contributors Forks Stargazers Issues MIT License

BME280ctl

BME280ctl is a self-hosted Telegram bot on Raspberry Pi that is used to retrieve temperature, humidity, and pressure data from the BME280 sensor.
Report Bug · Request Feature

Table of Contents

Getting Started

Prerequisites

Wiring with I2C

bme280

rpi-bme280-wiring

  • RPI 3V3 to sensor VIN
  • RPI 3V3 to sensor CS
  • RPI GND to sensor GND
  • RPI SCL to sensor SCK
  • RPI SDA to sensor SDI

Installation

  1. Clone the repo
git clone https://github.com/feux07/bme280ctl.git
  1. Go to project directory
cd bme280ctl
  1. Install NPM packages
npm install

Usage

  1. Create .env file with following environment variables
TELEGRAM_BOT_TOKEN = YOUR_TELEGRAM_BOT_TOKEN
TELEGRAM_TARGET_CHAT_ID = YOUR_TELEGRAM_TARGET_CHAT_ID
TELEGRAM_ADMIN_USER=YOUR_TELEGRAM_ADMIN_USERNAME
READ_SENSOR_CRON_EXP="* * * * *"
SCHEDULED_NOTIFICATION_CRON_EXP="0 7 * * *"
  1. Start application with following command
node start.js
  • Or start with Docker Compose
docker-compose up -d

Resources

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Website

About

BME280ctl is a self-hosted Telegram bot on Raspberry Pi that is used to retrieve temperature, humidity, and pressure data from the BME280 sensor.


Languages

Language:JavaScript 94.9%Language:Dockerfile 5.1%