An open API service indexing awesome lists of open source software.

https://github.com/mtoensing/mi2sheet

Poll Xiaomi Mijia temperature and humidity data via bluetooth to a Google Spreadsheet
https://github.com/mtoensing/mi2sheet

Last synced: about 1 year ago
JSON representation

Poll Xiaomi Mijia temperature and humidity data via bluetooth to a Google Spreadsheet

Awesome Lists containing this project

README

          

# mi2sheet

Tutorial in german language: https://marc.tv/raspberry-pi-temperatur-bluetooth-google-spreadsheet/

## Find mac address

`sudo blescan`

## Poll for data

Edit poll.sh and add mac address.

`./poll.sh `

## Poll and write to spreadsheet

Edit pollandwrite.sh and add spreadsheet name. Don't forget to add a client_secret.json

`./pollandwrite.sh `

# Credits
Xiaomi MI Temperature and Humidity Sensor with BLE and LCD
https://github.com/ratcashdev/mitemp

Bluetooth LowEnergy wrapper for different python backends.
https://github.com/ChristianKuehnel/btlewrap

# BONUS: mysql

## mysql-config.json

```json
{
"mysql":{
"server":"ADR",
"user":"USER",
"password":"SECRET!!",
"db":"DB"
}
}
```

# BONUS: PiTemp

python3 $DIR/mi2sheet.py writePiTmp "pi4"