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=openioe_apis()
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=openioe_apis()
oi.APIKey='pnHEmHgjFl0PT247Eae9'
oi.DeviceName='Test000'
oi.CryptoName='None'
oi.DataFormat='Value' # 'XML' or 'JSON'
ResponseTest,ResponseCode=oi.CreateDevice()
print(ResponseTest)
print(ResponseCode)
11Get API KeyTo get API key from user email and password.
from openioe.openioe_apis import *
oi.UserEmail='v@v.com'
oi.UserPassword='v'
ResponseText,ResponseCode=oi.ReadAPIKey()
print(ResponseText)
print(ResponseCode)
12Get Data SetTo get Dataset stored for device.
from openioe.openioe_apis import *
oi.DeviceID='xxx'
ResponseTest,ResponseCode=oi.DownloadDeviceData()
print(ResponseTest)
print(ResponseCode)
13DeveloperTo 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.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

openioe-1.1.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file openioe-1.1.1.tar.gz.

File metadata

  • Download URL: openioe-1.1.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for openioe-1.1.1.tar.gz
Algorithm Hash digest
SHA256 a2acaa9c42cc000e959b25b3e0393e92b35c4fc9d26c06437c2314f70d0ead2b
MD5 22ef4881b7d32ff7f587d5c38c8d965e
BLAKE2b-256 80640d96c3ed32e9cbfecda44e2071e7b21118ad0d7b7add66efff0d568e9bed

See more details on using hashes here.

File details

Details for the file openioe-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: openioe-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for openioe-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0494c75bd467a21453fcb4d37526940fe70bbdf0b55245204366f7ff3df3aa36
MD5 d4362dfe429d7398c620014c6ffbf13b
BLAKE2b-256 cad4515e95fb4a55784da7a2a9c38e29596248e72c64a8c98cc5554209825795

See more details on using hashes here.

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