Delete Usage
This commit is contained in:
parent
688a555c7d
commit
fa7e69ecd8
43
Usage
43
Usage
|
@ -1,43 +0,0 @@
|
|||
Run the 'discover' script.
|
||||
This will output JSON formatted data.
|
||||
You will need the MAC address of the blinds, the device types, and the token.
|
||||
The MAC address of the blinds is simply the MAC address of the controller with the blind number appended.
|
||||
|
||||
Now install the 'connector' app on your mobile.
|
||||
Run this, and login with your details.
|
||||
(BlocBlinds have their own app, as, I'm sure, do other companies, but it doesn't have the 'key' feature.)
|
||||
You can saftely install the 'connector' app, retrieve the key, and uninstall it, it won't delete any data.
|
||||
Go to the HELP and ABOUT page.
|
||||
Now tap this page 5 times and a popup window appears.
|
||||
Make a note of this, it's your 'key'.
|
||||
Close the app and exit.
|
||||
This 'key' may be available directly from the bridge, but the API doesn't document it, so for now we need to use their app.
|
||||
|
||||
Helpfully, we are shown an encryption program at the end of the API.
|
||||
Unhelpfully, it's around 200 lines of code.
|
||||
The supplied 'keygen' program is 10 lines of Perl and does exactly what we need.
|
||||
Edit the 'keygen' script.
|
||||
Add your 'token' from discover, into $data
|
||||
Add the 'key' from the controller app into $key
|
||||
Run this, and you will be given an "AccessToken"
|
||||
Add this to the 'blind' script.
|
||||
Name your blinds according to your household names.
|
||||
Blinds are numbered 0001...0005 in my case as I have 5 blinds.
|
||||
|
||||
Its usage is:-
|
||||
|
||||
blind [name] [up/down/open/close/query/status/percentage]
|
||||
|
||||
To open the study blind 50%
|
||||
blind study 50
|
||||
|
||||
To query the patio blind
|
||||
blind patio query
|
||||
|
||||
To open the patio blind
|
||||
blind patio open
|
||||
|
||||
This command returns 'lots' of JSON data by default.
|
||||
This will be interperated shortly and displayed neatly.
|
||||
|
||||
The aim was to get it working in the hope it was a good starting point.
|
Loading…
Reference in New Issue