Coder Social home page Coder Social logo

airtrik / python Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 23 KB

Airtrik is an IoT Cloud platform for managing communication between IoT devices and software platforms.

Home Page: https://airtrik.com

License: Other

Python 95.43% Shell 4.57%
iot cloud machine-learning data iot-data-stream iot-data-visualisation

python's Introduction

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

python's People

Contributors

vishal-pandey avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.