Skip to main content

Query Sensoterra probes using the Customer API

Project description

Sensoterra

Package with a module to load Sensoterra probe data by polling the Sensoterra Customer API.

Example code

import time
from sensoterra.customerapi import CustomerApi

email = "me@example.com"
password = "secret"

api = CustomerApi(email, password)
api.set_language("en")

while True:
    api.poll()

    for probe in api.probes():
        print(probe)
        for sensor in probe.sensors():
            print(sensor)
        print()

    time.sleep(900)
    print('-' * 70)

Changelog

CHANGELOG

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

sensoterra-0.1.1.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

sensoterra-0.1.1-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

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