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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s