anavi-phat-sensors-recorder-firestore

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

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

Go to latest
Published: May 9, 2021 License: MIT Imports: 9 Imported by: 0

README

ANAVI pHAT Sensors Recorder for Firestore

Store air quality data captured with ANAVI pHAT sensors and MH-Z19 to Firestore. Written in C and Go.

Supported sensors:

  • BH1750
  • BMP180
  • HTU21D
  • MH_Z19

Prerequisites

Read the instructions of ANAVI pHAT and MH-Z19 Python module.

Install dependencies:

apt install build-essential wiringpi
sudo apt install python-pip
sudo pip install mh-z19

Put your service-account-key.json for the Firebase in the project root directory. See the documentation for more detail.

How to build

HTU21D:

cd ./sensors/HTU21D
make

BMP180:

cd ./sensors/BMP180
make

BH1750:

cd ./sensors/BH1750
make

How to use

Check sensor data
go run ./test-sensors.go
Record sensor data
go run ./write.go
Check Firestore data
go run ./read.go

License

C programs for retrieving pHAT sensor data are provided under MIT License by Anavi Technology.

The rest of the scripts are under MIT License by Takuya Matsuyama.

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