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
- Host: GitHub
- URL: https://github.com/mtoensing/mi2sheet
- Owner: mtoensing
- Created: 2019-06-21T18:10:46.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-08T11:54:57.000Z (almost 7 years ago)
- Last Synced: 2025-02-21T13:17:14.675Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 44.9 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"