Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

No project description provided

Project description

This is a python library to access iot website


  • Control devices using switches
  • Plot your sensor data

Installation :


pip3 install pyiotjoke


pip install pyiotjoke

Implementing :

from iotjokepi import JokePi

ApiKey = 'Your API Key'
Link = ''

# Instance to get swtich states
getOb = JokePi('Button', ApiKey, Link + '/api/getdata/')

data1 = getOb.getSwitchState('Switch Name')
data = data1

if data == 'ON':
    print('Switch is ON')
elif data == 'OFF':
    print('Switch is OFF')
    print('Invalid Device')

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyiotjokepi, version 0.2.4
Filename, size File type Python version Upload date Hashes
Filename, size pyiotjokepi-0.2.4-py3-none-any.whl (4.0 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pyiotjokepi-0.2.4.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page