No project description provided
Project description
- This is a python library to access iot website
IOT-JOKE(https://iot-joker.firebaseapp.com)
Functions:
Control devices using switches
Plot your sensor data
Installation :
Python3
pip3 install pyiotjoke
or
pip install pyiotjoke
Implementing :
from iotjokepi import JokePi ApiKey = 'Your API Key' Link = 'http://iot-joke-pi.herokuapp.com' # 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') else: print('Invalid Device')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyiotjokepi-0.2.4.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for pyiotjokepi-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66c778f08aea9cb1d236b05f2a515b1c4f9f75d255c87c1e5e33d3b23c916b8a |
|
MD5 | 7872e17261f73f51a61cae04f310f85c |
|
BLAKE2b-256 | e50a9b61abbe2e9540871a83868907a7338443d7235123b3f767ba7c2758fa76 |