Skip to main content

IOT JOKE PI

This is a python library to access iot website

IOT-JOKE(https://iot-joker.firebaseapp.com)

https://img.shields.io/pypi/status/pyiotjokepi.svg https://img.shields.io/pypi/dw/pyiotjokepi.svg?style=plastic https://img.shields.io/pypi/v/pyiotjokepi.svg https://img.shields.io/pypi/format/pyiotjokepi.svg https://img.shields.io/badge/author-Dhanush-orange.svg

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')

Release files for pyiotjokepi 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyiotjokepi 0.2.4
File Size Uploaded
pyiotjokepi-0.2.4.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyiotjokepi 0.2.4
File Interpreter ABI Platform
pyiotjokepi-0.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / pyiotjokepi-0.2.4.tar.gz

Download URL pyiotjokepi-0.2.4.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c4f294b4f808d2c5b59375a4b9f546b51c843f8ca3e201fd6d86fc6cdfbaec2c
BLAKE2b-256 checksum
How to use checksums
56308a2d77c8c09a9bc993747edc4b188f00c4463dc3e8a5bd2adf16e024b1b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release files / pyiotjokepi-0.2.4-py3-none-any.whl

Download URL pyiotjokepi-0.2.4-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66c778f08aea9cb1d236b05f2a515b1c4f9f75d255c87c1e5e33d3b23c916b8a
BLAKE2b-256 checksum
How to use checksums
e50a9b61abbe2e9540871a83868907a7338443d7235123b3f767ba7c2758fa76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page