Skip to content

allthingstalk/raspberrypi-python-client

Repository files navigation

This library is deprecated

raspberry-python-client library is deprecated, and will not receive any further updates. Please use python-sdk instead.


raspberrypi-python-client

A library that provide access to the ATT IOT platform, for the Python language (geared for RPI development).

Installation

  • Copy the library to the RPI:
    • Run git clone https://github.com/allthingstalk/raspberrypi-python-client
    • or use an ftp client to copy the library to your RPI.
  • Run sudo bash raspberrypi-python-client/setupGrovePi.sh in case you have the grovePi shield or sudo bash raspberrypi-python-client/setupNoShield.sh if you don't have a grovePi shield

pip

A pip version is also available, but it will only install the library, not the grovePi dependencies. To install with pip:

sudo pip install att_iot_client

Note: the procedure from git, running the bash command will also install the pip package, so that the library is globally available.

Instructions

  1. Setup the raspberry pi hardware - Grove kit shield - Push button to A2 - Led light to D4
  2. Create the device in the IOT platform.
  3. Modify the template script 'Shield_Demo.py' : sudo nano raspberrypi-python-client/Shield_Demo.py fill in the missing strings: replace deviceId, clientId, clientKey. Optionally change/add the sensor & actuator names, pins, descriptions, types.
  4. Run the script: sudo python raspberrypi-python-client/Shield_Demo.py

Extra info