Skip to content

Webthing

Runkunkun edited this page May 14, 2019 · 2 revisions

Setting up the Webthing

Clone the Project

This is pretty straight forward just type git clone git@github.com:Runkunkun/webthing-bme680-weatherstation.gitinto the console if you have not installed git yet do this by typing sudo apt install git into the console.

Install dependencies

Things you will need to install with apt install

  1. i2c-tools
  2. python3

Things you will need to install with pip3 install

  1. requierements.txt or
  2. webthing
  3. bme680

Setting everything up

You should run i2cdetect -y 1 now there should appear a number in the matrix likely 76 or 77. If there are only "--" your sensor is not connected correctly. When you have 77 you are good to go, but when you have something different you have to change the line sensor = bme680.BME680(0x77) in sensorBME680.py to sensor = bme680.BME680(0x76) or to whatever your number was.

Run it!

Now you can run it by typing in python3 app.py or you run the screen script ./screen if you want the program to run in a screen. Now you should be able to add it in your Mozilla Webthing Gateway either as an temperature sensor or multilevel sensor whether you want the temperature displayed or air quality to be displayed in big.

Clone this wiki locally