pi-room

command module
v0.0.0-...-ded125d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2020 License: MIT Imports: 6 Imported by: 0

README

pi-room ⛅

Raspberry Pi setup to track a room's following conditions:

  • Temperature
  • Humidity
  • Air pressure
  • Light brightness

Inspiration based on this blog post by @inkdrop_app

Requirements

  • Go 1.13+
  • Raspberry Pi (I used Model 3)
  • ANAVI Infrared pHAT - Advanced Kit
  • Cloud Firestore (Firebase)

Installation

go get github.com/jumbosushi/pi-room

Development

git clone https://github.com/jumbosushi/pi-room.git
cd pi-room
make

Usage

1. Set up Raspberry Pi

I recommend this tutorial!

2. Set up Cloud Firestore

Follow Firebase's official doc to create a service account. Download the account's key file on your pi and update the path under TODO in main.go

3. Download anavi scripts

Clone the anavi-examples repo in your pi at the home directory (/home/pi).

Run make in the following directories:

  • sensors/HTU21D/c
  • sensors/BMP180/c
  • sensors/BH1750/c
4. Run the script

pi-room will now be able to send metrics to Firestore 🎉

I recommend running it as a cron job every couple minutes and monitoring it on CronHub

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL