Send various data to Dweet.io and MySQL
#Install
The Raspberry Pi must support Python 3.4. This means it must either be updated from Wheezy to Jessie or Python3.4 must be compiled from source. If not, the MySQLdb module will fail due to incompability with Python3.2 (Wheezy standard)
- First install PIP
apt-get install python3-pip
- Install requests:
pip3 install requests
- Install support for mysql:
apt-get install libmysqlclient-dev
apt-get install python-dev
pip3 install mysqlclient
- Make suitable folder for the project, e.g.:
mkdir Documents/dweetData
- Use git to initialize folder and download repository form GitHub
cd Documents/dweetData
git init
git pull <URL>
i2c_base.py is shamelessly borrowed from https://github.com/raspberrypi/weather-station/