Pull data for your thermoworks smoke thermometer
Project description
python-thermoworks-smoke
Pull data for your thermoworks smoke thermometer (https://www.thermoworks.com/Smoke). This requires a smoke wifi gateway (https://www.thermoworks.com/Smoke-Gateway) with an internet connection.
You will need to have previously registered your smoke to your account via the mobile app. You will provide the email and password you used to this application to connect and pull your data.
Uses Pyrebase4 (https://github.com/nhorvath/Pyrebase4) for interacting with firebase where thermoworks puts the data.
Installation
pip install thermoworks_smoke
API
thermoworks_smoke.initialize_app(email, password, init=False, excluded_serials=[])
- email: the email registered in the thermoworks app
- password: the password registered in the thermoworks app
- init: (optional) set true to preload data for all devices
- excluded_serials: (optional) a list of device serial numbers to ignore
The Data Manager returned by initialize_app
serials() - list
- Get all device serials registered to this user.
data(serial) - dict
- Get data for the specified serial number. Updates will be performed automatically and cached.
devices() - list
- Get the list of all devices registred to this user.
device(serial) - dict
- Get the device information for the specified serial.
name(serial) - string
- Get the device name for the specified serial.
units(serial, probe=PROBE_1) - string
- Get the unit for the specified serial and probe.
- You can use
from thermoworks_smoke import TEMP_FAHRENHEIT, TEMP_CELSIUS
to compare to these. - You can use
from thermoworks_smoke import PROBE_1, PROBE_2
to get the constants for each probe name.
- You can use
update(serial) - void
- Force update from server (do not call this too frequently). Calling this is unnecessary as calls to data() will automatically update as needed.
Usage Example
import thermoworks_smoke
# init
smoke = thermoworks_smoke.initialize_app(email, password)
# get list of registered devices
serials = smoke.serials()
# print data for each serial
for serial in serials:
values = smoke.data(serial)
print(serial)
print(values)
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
Built Distribution
File details
Details for the file thermoworks_smoke-0.1.8.tar.gz
.
File metadata
- Download URL: thermoworks_smoke-0.1.8.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c9526dc7038004f70001f7b4c0eb3f74d7621ca9b10b4b6d916a0cb8a437e0a |
|
MD5 | 10c687a119e5d77540a48aa5c7a27034 |
|
BLAKE2b-256 | 7d60e2f3b71020eada429acbd7a0de779a916e9eb5ec43f3f319f53cb3c14545 |
File details
Details for the file thermoworks_smoke-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: thermoworks_smoke-0.1.8-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0beeb2dd9b3703b46890e9c94bd3f42a2fdcc450dfe42dfadef40e81f1402c86 |
|
MD5 | af07e725321ee0c1d5576968a557bc92 |
|
BLAKE2b-256 | 7c05e8739be5976a6ae6374ec35442e8ecdb1c15c37f0ff9199c2b15368f7710 |