att_iot_client

This package provides device & asset management + data feed features for the AllThingsTalk platform to your application.


Keywords
ATT, iot, internet, of, things, AllThingsTalk, deprecated
License
Apache-2.0
Install
pip install att_iot_client==3.0.3

Documentation

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

When installing with pip, imports have to be declared like so:

import att_iot_client.ATT_IOT as IOT

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