No project description provided
Project description
Tami 4 Edge / Edge+ API in Python
Tami4EdgeAPI can be used to control Strauss'es Tami4 Edge / Edge+ devices.
You can boil the water, prepare drinks, get information about the filter or UV light and other information about the device.
Installing
pip install Tami4EdgeAPI
Authenticating
You first need to obtain a refresh_token
by requesting an sms code to the phone you registered to the app with.
from Tami4EdgeAPI import Tami4EdgeAPI
# You must add the country code!
phone_number = "+972xxxxxxxxx"
Tami4EdgeAPI.request_otp(phone_number)
otp_code = input("Enter OTP: ")
refresh_token = Tami4EdgeAPI.submit_otp(otp_code)
Store the refresh_token
somewhere safe, you will use it to authenticate with the API.
Usage
edge = Tami4EdgeAPI(refresh_token)
print(f"Bar Name: {edge.device.name}, Firmware Version: {edge.device.device_firmware}")
Boil Water
edge.boil_water()
Get User Drinks
drinks = edge.get_drinks()
for drink in drinks:
print(drink.name)
Prepare A Drink
edge.prepare_drink(drink)
Get Filter / UV Information
water_quality = edge.get_water_quality()
water_quality.uv.last_replacement
water_quality.uv.upcoming_replacement
water_quality.uv.status
water_quality.filter.milli_litters_passed
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
Tami4EdgeAPI-1.1.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for Tami4EdgeAPI-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb51d7ae95a6e3ae7a2183c7c99df2e711a10bb1fe9dddc4a4f52e5337460a09 |
|
MD5 | 9e867a7b1d48555f2f6d62241070d8d1 |
|
BLAKE2b-256 | 0d5cd5f8feb49413d3b91a320290dbbfae39e68832d3896ae88c73182b391bf7 |