- Github ebay watcher python how to#
- Github ebay watcher python install#
- Github ebay watcher python code#
(So the highest value will be 0x2710, written as "0x10 0x27" in LE). You can also write to the level characteristic (as a 16-bit little-endian number, for some reason) which ranges from 0-10,000. So, you can write 0x00 or 0x01 to the state characteristic to turn a switch on or off.
Github ebay watcher python install#
I also have CLP5011's which I've yet to install (but are just switches, and do not have a level)-these seem more suitable for controlled loads or lights that cannot dim. Set switch on/off and brightness the naïve wayįor clarification, I have some CLP5010's which have on/off as well as brightness. They have a couple of interesting UUIDs (these are here for y'all searching for them):Ĭontrol service, 720a9080-9c7d-11e5-a7e3-0002a5d5c51b (They also come with a ZigBee certification document, but it seems like it was never enabled.) Java is a registered trademark of Oracle and/or its affiliates.This is notes for anyone who is interacting with (in Australia at least) Clipsal-branded smart switches that operate over BLE. For details, see the Google Developers Site Policies.
Github ebay watcher python code#
Google APIs Client for Python documentationĮxcept as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License.Then move the file to your working directory with the rest of theįor further information on the APIs used in this quickstart, refer to the Once you create the credentials, make sure the downloaded JSON file is saved asĬredentials.json.
Github ebay watcher python how to#
To learn how to create credentialsįor a desktop application, go to Create credentials. This error occurs when you have not authorized the desktop application credentialsĪs detailed in the Prerequisites section above. When running the sample, you might receive a file not found or no such file error regarding credentials.json.
File not found error for credentials.json PageSize=10, fields="nextPageToken, files(id, name)").execute() Service = build('drive', 'v3', credentials=creds) If creds and creds.expired and creds.refresh_token:įlow = om_client_secrets_file( # If there are no (valid) credentials available, let the user log in. # created automatically when the authorization flow completes for the firstĬreds = om_authorized_user_file('token.json', SCOPES) # The file token.json stores the user's access and refresh tokens, and is Prints the names and ids of the first 10 files the user has access to. """Shows basic usage of the Drive v3 API. # If modifying these scopes, delete the file token.json. Include the following code in quickstart.py:įrom import Requestįrom import Credentialsįrom google_auth_oauthlib.flow import InstalledAppFlowįrom googleapiclient.discovery import buildįrom googleapiclient.errors import HttpError
Note: For this quickstart, you are enabling the "Drive API".
A Google Cloud Platform project with the API enabled.To run this quickstart, you need the following prerequisites: Complete the steps described in the rest of this page to create a simple PythonĬommand-line application that makes requests to the Drive API.