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)
9Generate API KeyTo generate new API key for a given email and password.
from openioe.openioe_apis import *
oi.UserEmail='xxxxxxxxxx'
oi.UserPassword='xxxxxxxxxxx'
ResponseJson,ResponseCode=oi.GenerateAPIKey()
print(ResponseJson['User ID'])
print(ResponseJson['API Key'])
print(ResponseJson['Message'])
print(ResponseCode)
10Create New DeviceTo add new IoT device for a given API key, name, cryptotype and data format.
from openioe.openioe_apis import *
oi.APIKey='pnHEmHgjFl0PT247Eae9'
oi.DeviceName='Test000'
oi.CryptoName='None'
oi.DataFormat='Value' # 'XML' or 'JSON'
ResponseTest,ResponseCode=oi.CreateDevice()
print(ResponseTest)
print(ResponseCode)
11DeveloperTo 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>
7generateapikeyGenerate new API Key by providing user credshttp get
<endpoint>/generateapikey/<emailid>/<password>
8createuserdeviceAdd new IoT device to your accounthttp get
<endpoint>/createuserdevice/<APIKey>/<DeviceName>/<CryptoName>/<DataFormat>

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

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.1.0.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

openioe-1.1.0-py3-none-any.whl (6.4 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