We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I get the following error for every command? Anyone else having the same problem?
{"statusCode":190,"body":{},"message":"Requests reached the daily limit"}
Being able to invoke API1.1 via Python
Invoke API1.1 via Python or curl command
`{"statusCode":190,"body":{},"message":"Requests reached the daily limit"}`
Switch Bot
API1.1 error
The text was updated successfully, but these errors were encountered:
SwitchBotAPI/README.md
Line 640 in 60356ac
Sorry, something went wrong.
@hsakoh Thanks but I'm using this authentication method with Python3, using tocken and secret.. It always worked but yesterday it stopped working
import json import time import hashlib import hmac import base64 import uuid # Declare empty header dictionary apiHeader = {} # open token token = '' # copy and paste from the SwitchBot app V6.14 or later # secret key secret = '' # copy and paste from the SwitchBot app V6.14 or later nonce = uuid.uuid4() t = int(round(time.time() * 1000)) string_to_sign = '{}{}{}'.format(token, t, nonce) string_to_sign = bytes(string_to_sign, 'utf-8') secret = bytes(secret, 'utf-8') sign = base64.b64encode(hmac.new(secret, msg=string_to_sign, digestmod=hashlib.sha256).digest()) print ('Authorization: {}'.format(token)) print ('t: {}'.format(t)) print ('sign: {}'.format(str(sign, 'utf-8'))) print ('nonce: {}'.format(nonce)) #Build api header JSON apiHeader['Authorization']=token apiHeader['Content-Type']='application/json' apiHeader['charset']='utf8' apiHeader['t']=str(t) apiHeader['sign']=str(sign, 'utf-8') apiHeader['nonce']=str(nonce)
I waited until 00.00.00 hoping that the counter would restart from zero, but instead it is 06 in the morning and it still does not work. Thanks again
Update Since this morning API1.0 and API1.1 are working correctly Thanks
Minsheng
donavanbecker
chenliuyun
SwitchBot
SwitchBot-Wonderlabs
No branches or pull requests
Analysis
I get the following error for every command?
Anyone else having the same problem?
{"statusCode":190,"body":{},"message":"Requests reached the daily limit"}
Expected Behavior
Being able to invoke API1.1 via Python
Steps To Reproduce
Invoke API1.1 via Python or curl command
Logs
Configuration
Switch Bot
Environment
Additional Context
API1.1 error
The text was updated successfully, but these errors were encountered: