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 = FlumeAuth(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
Release history Release notifications | RSS feed
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.1.5.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file PyFlume-0.1.5.tar.gz
.
File metadata
- Download URL: PyFlume-0.1.5.tar.gz
- Upload date:
- Size: 3.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42edfebe8b7bcf025546e79b2d506a618993d86574740d2fb8014272e720ee02 |
|
MD5 | e4b2ffddf359f8e71040a58fe443f02e |
|
BLAKE2b-256 | 90e7669e13099dcee465562ff82317ca539ad588aaff661abfc5f249000a7ddd |
File details
Details for the file PyFlume-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: PyFlume-0.1.5-py3-none-any.whl
- Upload date:
- Size: 4.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 508521d2dfb408e892e82c40a7823bd8a34c7db433ffa6a875a920492aad4ff0 |
|
MD5 | 196b428d3023417e3f87c4c69daf3d24 |
|
BLAKE2b-256 | ee6b919e0d4b28ccd972f00cd53ca7299b42647173c4ec2084ca731d45378034 |