Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!

Raspberry Pi Weather Station

Raspberry Pi is a perfect tool to get Internet of Things (IoT) up and running - a Linux computer with access to I2C.

BeginnerFull instructions provided30 minutes11,717

Things used in this project

Hardware components

Raspberry Pi 3 Model B
Raspberry Pi 3 Model B
With micro-USB power supply, micro-SD card and Ethernet cable to router
×1
BR01
XinaBox BR01
β˜’CHIP Interface to Raspberry Pi
×1
SW01
XinaBox SW01
β˜’CHIP based on the BME280 Weather Sensor
×1
XC10
XinaBox XC10
β˜’BUS connector between β˜’CHIPs
×1

Software apps and online services

Raspberry Pi Raspbian Lite
Etcher

Story

Read more

Code

Weather Station Demo

Python
A small Python demo reading the weather information from the SW01. Code kept short for simplicity.
import smbus2
import bme280
bus = smbus2.SMBus(1)
bme280.load_calibration_params(bus, 0x76)
print(bme280.sample(bus, 0x76))

Credits

Thanks to Richard Hull.

Comments