Skip to main content

Open IoE

Project description

Open IoE

Open IoE is a simple IoT platform to operate IoT devices.

There are two options available,

  1. Python Library (Client)
  2. Web services (REST APIs)

1. Python Library

Users are expected to take these steps,

  1. Install Python Library

    pip install openioe

  2. Write the client code using the following methods

Method List:

NoMethodDescriptionExample
1ReadValueTo read the sensor data from single nodes. Type of data is "Numeric/String"
from  openioe.openioe_apis  import *
oi=openioe_apis()
oi.APIKey='xxxxxxxxxxxxxxxxxxxx';
oi.DeviceID=xx
oi.DevicePin=xxx
SensorData,ResposeCode=oi.ReadValue()
print(SensorData)
print(ResposeCode)
2WriteValueTo modify the control signal at single nodes. Type of data is "Numeric/String".
from  openioe.openioe_apis  import *
oi=openioe_apis()
oi.APIKey='xxxxxxxxxxxxxxxxxxxx';
oi.DeviceID=xx
oi.DevicePin=xx
oi.Data=10
SensorData,ResposeCode=oi.WriteValue()
print(SensorData)
print(ResposeCode)
3ReadJSONTo read the sensor data from single nodes. Type of data is "JSON".
from  openioe.openioe_apis  import *
oi=openioe_apis()
oi.APIKey='xxxxxxxxxxxxxxxxxxxx';
oi.DeviceID=xx
oi.DevicePin=xxx
SensorData,ResposeCode=oi.ReadJSON()
print(SensorData)
print(ResposeCode)
4WriteJSONTo modify the control signal at single nodes. Type of data is "JSON".
from  openioe.openioe_apis  import *
oi=openioe_apis()
oi.APIKey='xxxxxxxxxxxxxxxxxxxx';
oi.DeviceID=xx
oi.DevicePin=xxx
oi.DataJSON={'Value': '10'}
SensorData,ResposeCode=oi.WriteJSON()
print(SensorData)
print(ResposeCode)
5ReadXMLTo read the sensor data from single nodes. Type of data is "XML".
from  openioe.openioe_apis  import *
oi=openioe_apis()
oi.APIKey='xxxxxxxxxxxxxxxxxxxx';
oi.DeviceID=xx
oi.DevicePin=xxx
SensorData,ResposeCode=oi.ReadXML()
print(SensorData)
print(ResposeCode)
6WriteXMLTo modify the control signal at single nodes. Type of data is "XML".
from  openioe.openioe_apis  import *
oi=openioe_apis()
oi.APIKey='xxxxxxxxxxxxxxxxxxxx';
oi.DeviceID=xx
oi.DevicePin=xxx
oi.DataXML='OpenIoE'
SensorData,ResposeCode=oi.WriteXML()
print(SensorData)
print(ResposeCode)
7ReadTo read the sensor data from multiple nodes. Type of data is "Numeric/String".
from  openioe.openioe_apis  import *
oi=openioe_apis()
oi.APIKey='xxxxxxxxxxxxxxxxxxxx';
oi.UserIDPinAPIKeys=[[xx, xxx], [x, xxx]]
SensorData,ResposeCode=oi.Read()
print(SensorData)
print(ResposeCode)
8WriteTo modify the control signal at multiple nodes. Type of data is "Numeric/String".
from openioe.openioe_apis import *
oi=openioe_apis()
oi.APIKey='xxxxxxxxxxxxxxxxxxxx';
oi.UserIDPinAPIKeys=[[xx, xxx], [xx, xxx]]
oi.Data=[xx,xx]
Confirmation,ResposeCode=oi.ReadAPI()
print(Confirmation)
print(ResposeCode)
3DeveloperTo display the developer information
from openioe.openioe_apis import *
oi=openioe_apis()
oi.Developer()

2. Web Services

Users are expected to take these steps,

  1. Register and login to OpenIoE- Register/Login

  2. Create API Key/ Get API Key from OpenIoE.

  3. Embed the API Key, Device ID and Pin into the client code.

Visit the OpenIoE 3.0 web portal at https://openioe.gnanodaya.org

Visit the OpenIoE 3.0 Help Portal at https://openioedoc.gnanodaya.org

API List:

NoAPIDescriptionTypeExample
1showdevicevalueTo get hardware value from web service.http get
<endpoint>/showdevicevalue/<apikey>/2/433
2updatedevicevalueUpdate the hardware value passed as a parameterhttp get
<endpoint>/updatedevievalue/<apikey>/2/433/2
3showdevicejsonTo get hardware JSON from web service.http get
<endpoint>/showdevicejson/<apikey>/2/433
4updatedevicejsonUpdate the hardware JSON passed as parameterhttp post
<endpoint>/updatedevicejson/<apikey>/2/433 <Data>
5showdevicexmlTo get hardware XML file from web service.http get
<endpoint>/showdevicexml/<apikey>/2/433
6updatedevicexmlUpdate the hardware XML passed as parameterhttp post
<endpoint>/updatedevicexml/<apikey>/2/433 <Data>

Developers

Dr. Venkataswamy R

Thanks and Regards,
Venkataswamy R
Assistant Professor,
Department of Electrical and Electronics Engineering,
School of Engineering and Technology,
Christ (Deemed to be University),
Bengaluru-560074, India

Image result for phone icon 080-4012-9961 (O)   Image result for mobile icon+91-7829222446  Related image venkatswamy.in


Project details


Download files

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

Source Distribution

openioe-1.0.0.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

openioe-1.0.0-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page