Install Xively on Ubuntu — Python

//Install git to clone Xively Python repository
sudo apt-get install git
mkdir xively
cd xively
git clone git://github.com/xively/xively-python.git

To test xively tutorial we need to install some dependencies:

sudo apt-get install python-setuptools
// if you have a version error, try:
sudo apt-get install python-pip
sudo pip install setuptools --no-use-wheel --upgrade ...
// if you have a version error, download latest setuptools:
wget https://bitbucket.org/pypa/setuptools/get/default.tar.gz#egg=setuptools-dev
tar -xvf default.tar.gz
cd pypa-setuptools-6ed8f0298e64/
sudo python setup.py install
sudo pip install requests

Than test the xively tutorial with the python example:
https://xively.com/dev/tutorials/pi/#code

//Dont forget to put the script inside the xively folder

Advertisements