Skip to main content

Package to integrate with Flume Sensor

Project description

PyFlume

Authenticates to Flume API, returns a list of devices and allows you to pull the latest sensor results over a period of time.

Configuration

You can find your Client ID and Client Secret under "API Access" on the settings page.

Configuration Variables

username:
  description: Your flume user id.
  required: true
  type: string
password:
  description: Your flume password.
  required: true
  type: string
client_id:
  description: Your flume Client ID.
  required: true
  type: string
client_secret:
  description: Your flume Client Secret.
  required: true
  type: string

Retrieve a list of devices:

flume_devices = FlumeDeviceList(username, password, client_id, client_secret)`

Return Data for all Flume Devices of Type 2

SCAN_INTERVAL = timedelta(minutes=1) # Using datetime
TIME_ZONE='America/Los_Angeles' # Using pytz

for device in flume_devices.device_list:
    if device["type"] == 2:
        flume = FlumeData(
            username,
            password,
            client_id,
            client_secret,
            device["id"],
            TIME_ZONE,
            SCAN_INTERVAL,
        )

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

PyFlume-0.2.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

PyFlume-0.2.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file PyFlume-0.2.1.tar.gz.

File metadata

  • Download URL: PyFlume-0.2.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for PyFlume-0.2.1.tar.gz
Algorithm Hash digest
SHA256 60b5b0366dc4511106ef0298af3eccdd488cf472b2843eb0d46cacf32c06137a
MD5 690ababc798cf530a07c6b86a307d8ac
BLAKE2b-256 6afb3b52f426bafc38302976bc35c738fb726d2e3a8d53bc669d7cfa71aedf83

See more details on using hashes here.

File details

Details for the file PyFlume-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: PyFlume-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for PyFlume-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9cb0fa527de39ae4880bb032308eef431f2f4b8c6a19f0887deb94c0a3b1ba05
MD5 ea6599b4ee9e9dbf052225a8a2368d1d
BLAKE2b-256 2a5ce22de6ddffab7a2d0cc2d1b468e41bb06f2204016e3de6dc5ced34bbe494

See more details on using hashes here.

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