Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
/ devicepilot-py Public archive

Python Quickstart SDK for DevicePilot IoT Analytics

License

Notifications You must be signed in to change notification settings

DevicePilot/devicepilot-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevicePilot SDK for Python

image image image

www.devicepilot.com

DevicePilot is a universal cloud-based software service allowing you to easily locate, monitor and manage your connected devices at scale, with proactive management of the entire device lifecycle.

This library helps you quickly get started posting your device telemetry so you can begin exploring your IoT data in DevicePilot.

Getting Started

  • Sign up for a DevicePilot account if you haven't already!

You can book at demo at devicepilot.com

  • Get your API key

Find your API Key in Settings > My User

  • Add the DevicePilot library to your python project:
pip install devicepilot
  • Start posting your device telemetry:
    import devicepilot

    # api key should be explicitly provided, or stored in the environmental variable DP_API_KEY
    apikey = "your-devicepilot-api-key"

    record = {
        "$id": "unique-device-id", # this is used to identify your device
        # any valid json body will be converted into key:value telemetry:
        "ledColour": 'blue',
        "switchedOn": True,
        "temperature": 20,
    }
    # an array of record objects can also be provided

    devicepilot.post(record, apikey)

Documentation

For more information about using DevicePilot, check out: https://help.devicepilot.com/

Releases

No releases published

Packages

No packages published

Languages