Skip to content

miodragArsic/first-app

 
 

Repository files navigation

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

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

About

[Raspberry Pi] Python client library to connect to the SmartLiving platform

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.0%
  • Shell 3.0%