Connect IoT Devices to cloud and manage from anywhere.
Project description
Airtrik python
Airtrik is an IoT Cloud platform for managing communication between IoT devices and software platforms. This is python sdk that can be used for communicating to both IoT device running python as a programming language like Raspberry Pi and software platform running python. This library can also be used for making realtime data pipeline for applying machine learning on the IoT devices.
Summary
Getting Started
Follow the below instructions to get your device and application up and running within minutes. It is very easy to integrate airtrik into your project.
Prerequisites
Before proceeding further you have the following software installed in your system or development system.
python (Version > 3.5)
pip (any recent version)
Installing
Installing airtrik python library is straight forward, just install it with pip. Although it will work pretty well with your system python. We recommend using the virtual environment for your project
pip install airtrik
Connecting to your App's Network
import airtrik.iot as iot
# create app in the panel to get the app key
iot.connect("__APP_KEY__")
Subscribe to device in App's Network
# you have to create device inside app from panel
device = "__DEVICE_ID__"
iot.subscribe(device)
Sending message to device
message = "YOUR MESSAGE TO DEVICE"
iot.send(device, message)
Receiving messages from device
# you can write your custom function handling the incoming message
def onReceive(deviceId, message):
print(deviceId, message)
iot.onReceive = onReceive
iot.waitForMessage()
Versioning
Authors
- Vishal Pandey - Written Python Library - vishal-pandey
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT Creative Commons License - see the LICENSE file for details
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
Built Distribution
File details
Details for the file airtrik-0.1.4.tar.gz
.
File metadata
- Download URL: airtrik-0.1.4.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9e303116693a551315953300ed1da6c5e4b64971bc416027b550499c0bc5d1e |
|
MD5 | e1386e62aaba985043b1eeca8b813a3a |
|
BLAKE2b-256 | 7d322f65e197734674763464eb1f928163d97d3258bae146485d91ee2a896184 |
File details
Details for the file airtrik-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: airtrik-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e9b244c6c0bf0b65101af369d3190a1a888578aaf04978f91744addbe7ccf84 |
|
MD5 | 5658f226d935c64cce9dd50f5ae3c672 |
|
BLAKE2b-256 | 2d73d8752029718c162547547918657c4184ad50e1ef55cd1d41c1fee004a33a |