Skip to main content

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

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

airtrik-0.1.6.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

airtrik-0.1.6-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file airtrik-0.1.6.tar.gz.

File metadata

  • Download URL: airtrik-0.1.6.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

Hashes for airtrik-0.1.6.tar.gz
Algorithm Hash digest
SHA256 906abc979612d2d866b9d5b43f16549e408552c7007b074e08a3bbfe22c93d19
MD5 5da560860d71b2f63e53198ead516fbb
BLAKE2b-256 2105c624d23393aa905eebd1f6ebb62f3f2510cd69f0ebb6ae6f6e4662aa7f62

See more details on using hashes here.

File details

Details for the file airtrik-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: airtrik-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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

Hashes for airtrik-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1feb0f3aa59350f4315bde8c6e4d913b4535d026f976f6c3e706b8e703a6d340
MD5 4c9f59636725cda705cfa75b32f342f4
BLAKE2b-256 d92e1b4c7e08641a988401cfd8ec52b6948d15ed5a5a34ffa24716ad65775b42

See more details on using hashes here.

Supported by

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