Internet Of Things 101 Intel® Edison
  • Cover
  • Summary
  • About This Traning
    • Objectives
    • Skills
    • Prerequisites
    • Requirements
  • Once Upon A Time ...
  • Internet Of Things
    • Examples
    • Consortiums
    • Resources
      • Architecture
      • Associations
      • Awards
      • Contests
      • Events
      • Investors
      • Job Roles
      • People
      • Programming Languages
      • Projects
      • Standards
      • Tendencies
      • Training
        • Coursera
      • Licensing
      • Sites
    • Key Players
      • Amazon
      • Apple
      • ARM
      • AT&T
      • Atari
      • Axeda
      • Bosch
      • Cisco
      • Dell
      • Eclipse
      • Facebook
      • General Electric
      • Google
      • Hewlett Packard
      • Huawei
      • IBM
      • Intel
        • Tools
      • IoT Ticket
      • Libelium
      • Oracle
      • Others
      • Mediatek
      • Micrium
      • Microchip
      • Microsoft
      • Mozilla
      • NXP
      • NVIDIA
      • Nokia
      • Predixion
      • PTC
      • Qualcomm
      • RedHat
      • Renesas
      • Salesforce
      • Samsung
      • SAP
      • Schneider Electric
      • Telefonica
      • Texas Instruments
      • ThingWorx
      • Verizon
      • Vodafone
      • C2M
  • Architecture
    • Thing
      • Boards
        • Arduino
        • Beagleboard
        • C.H.I.P.
        • Raspberry Pi
        • ESP8266
        • Intel Architecture
          • Development Workstation
      • Boot Loaders
        • Labs
      • Operating Systems
      • Embedded Linux
        • Board Support Package
          • Labs
        • Boot Up
          • Labs
        • Command Line Interface
          • Labs
        • File Systems
          • Labs
        • Text Editors
          • Labs
        • Package Management System
          • Labs
        • Version Control Systems
          • Labs
        • Programming Languages
          • Python
          • PiP Package Management System
          • Labs
        • Libraries
          • Labs
      • Integrated Development Environments
    • Data
      • Sensors
        • Labs
        • Project
      • Actuators
        • Labs
        • Project
      • Local Operations
      • Frameworks
    • Gateways
      • Intel® IoT Gateways
    • Communications
      • Connectivity
        • Labs
      • Protocols
        • RESTful
          • Labs
        • MQTT
          • Labs
          • Project
    • Cloud Computing
      • Application Programming Interface
        • Labs
        • Project
      • Services
        • Labs
      • Platforms
        • Labs
  • Wrap-Up
    • Online Training
    • Challenge
  • SandBox
    • Sandbox-NonIT
    • IoTPy
    • Analytics
    • Security
    • Cloud
Powered by GitBook
On this page
  1. SandBox

IoTPy

Internet of Things with Python

IoTPy Framework

Clone the IoTPy Workshop Git Repository

root@platform:~# git clone https://github.com/TheIoTLearningInitiative/InternetOfThings101.git

Enable IoTPy Workshop credentials

root@platform:~# cd InternetOfThings101/code/iotpy
root@platform:~/InternetOfThings101/code/iotpy# mkdir configuration
root@platform:~/InternetOfThings101/code/iotpy# nano configuration/credentials

# IoTPy File Configuration

# Go to https://plot.ly and sign up
# Get your Username and API Key under Settings -> API Settings -> API
# Get 3 Stream Tokens under Settings -> API Settings -> Streaming API -> Generate Token
[plotly]
username = 
apikey = 
streamtoken = 
streamtokentx = 
streamtokenrx = 

# Go to dev.twitter.com and sign up
# Go to Tools -> Manage Your Apps (Application Management)
# Create a New Application and go to "Keys and Access Tokens" tab
# Generate and get under Application Settings section
# Consumer Key (API Key), Consumer Secret (API Secret)
# Generate and get under Your Access Token section
# Access Token and Access Token Secret
# Give Access Level "Read and Write"
[twitter]
consumer_key = 
consumer_secret = 
access_token = 
access_token_secret = 

# Go to www.voicerss.org and sign up
# Go to API -> Get API Key
# 
[voicerss]
apikey = 

# Go to market.mashape.com and sign up
# Search for VoiceRss API and click on it
# Copy your VoiceRss API Key and paste under "URL PARAMETERS key QUERY AUTH" field
# Fill out Form Encoded Parameters and Test EndPoint using Curl method
# Copy the generated Mashape Key
[mashape]
mashapekey = 

# End of File

root@platform:~/InternetOfThings101/code/iotpy# echo voicerssmashapekey > configuration/voicerss.ak
root@platform:~/InternetOfThings101/code/iotpy# echo voicerssapikey > configuration/voicerss.mk    

Run IoTPy Modules

root@platform:~/InternetOfThings101/code/iotpy# python main.py -m aio
root@platform:~/InternetOfThings101/code/iotpy# python main.py -m bpta
root@platform:~/InternetOfThings101/code/iotpy# python main.py -m gpio    
root@platform:~/InternetOfThings101/code/iotpy# python main.py -m mqttpub # IoTPy/Temperature
root@platform:~/InternetOfThings101/code/iotpy# python main.py -m mqttsub
root@platform:~/InternetOfThings101/code/iotpy# python main.py -m mraa
root@platform:~/InternetOfThings101/code/iotpy# time python main.py -m opencv

Run IoTPy Projects

root@platform:~/InternetOfThings101/code/iotpy# python main.py -p alive # Audio, Twitter
root@platform:~/InternetOfThings101/code/iotpy# python main.py -p climate # BMP180, PlotLy, https://plot.ly/~TheIoTLearningInitiative
root@platform:~/InternetOfThings101/code/iotpy# python main.py -p selfie # Camera, Twitter
root@platform:~/InternetOfThings101/code/iotpy# python main.py -p system # Network, Plotly, https://plot.ly/~TheIoTLearningInitiative
root@platform:~/InternetOfThings101/code/iotpy# python main.py -p weather # Audio, Pywapi

IoTPy Online Resources

PreviousSandbox-NonITNextAnalytics

Last updated 7 years ago

UPM Python Examples