guy293 / tami4edgeapi Goto Github PK
View Code? Open in Web Editor NEWTami 4 Edge / Edge+ API In Python
Home Page: https://pypi.org/project/Tami4EdgeAPI/
License: MIT License
Tami 4 Edge / Edge+ API In Python
Home Page: https://pypi.org/project/Tami4EdgeAPI/
License: MIT License
Since the PR to merge to HASS core failed to merge and it was automatically closed. Perhaps it would be an easier start to first have it as a HACS installable integration and see that there is enough usage?
Hi Guy,
there must be something I'm doing wrong, or a missing resource on my environment, I'de love for some guidance,
here is my code: (taken from your example)
#!/usr/bin/env python3
import Tami4EdgeAPI
# You must add the country code!
phone_number = "+97250xxxxxxx"
Tami4EdgeAPI.request_otp()
otp_code = input("Enter OTP: ")
refresh_token = Tami4EdgeAPI.submit_otp(otp_code)
output(refresh_token)
installed the library using pip3 and running with python3
➜ tami4-auto-boil pip3 --version
pip 20.3.3 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
➜ tami4-auto-boil python3 --version
Python 3.9.1
Thanks
The readme code example contains the line refresh_token = Tami4EdgeAPI.submit_otp(otp_code)
whereas it should be refresh_token = Tami4EdgeAPI.submit_otp(phone_number, otp_code)
, according to that function's signature. I'd create a pull request myself, but I don't have write access.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.