Metadata-Version: 2.1
Name: pyiotjokepi
Version: 0.2.4
Summary: UNKNOWN
Home-page: https://github.com/dazzHere/IOT-JOKE-PI
Author: Dhanush HL
Author-email: dhanushdazz@gmail.com
License: MIT
Keywords: iot,iot-joke-pi,iot-joke,iot-joker
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Programming Language :: Python :: 3
Requires-Dist: requests

IOT JOKE PI
===============
This is a python library to access iot website
 IOT-JOKE(https://iot-joker.firebaseapp.com)

.. image:: https://img.shields.io/pypi/status/pyiotjokepi.svg

.. image:: https://img.shields.io/pypi/dw/pyiotjokepi.svg?style=plastic

.. image:: https://img.shields.io/pypi/v/pyiotjokepi.svg

.. image:: https://img.shields.io/pypi/format/pyiotjokepi.svg

.. image:: 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')



