Scripts for scanning BLE sensors on Raspberry Pi and write data to different systems
Currently supported
-
mySQL DB
-
thinspeak.com
-
AT&T m2x
-
io.adafruit
-
weather underground https://www.wunderground.com/
sudo apt-get install python-pip libglib2.0-dev git apache2 mysql-server
sudo pip install bluepy
- Thingspeak
sudo pip install thingspeak
Create file /home/pi/thing.sp with following content
MAC ADDRESS
CHANNEL_ID
WRITE_API
- mySQL
sudo pip install MySQL-python
Create file /home/pi/my.cnf with following content
[client]
host = localhost
user = db_user
database = your_db
password = YourPassword
- AT&T m2x
sudo pip install m2x
Create a file /home/pi/mx.2 with the following content
mac_address
m2x_key
m2x_device_id
stream1_id
stream2_id
- Adafruit
sudo pip install adafruit-io
Create file /home/pi/ada.fr with following content
MAC_ADDRESS
AIO_KEY