Command line for Wio Link
Project description
Getting Started
Wio Link Client can be installed from PyPI using pip:
pip install wio-cli
A list of global options and supported, commands is shown with --help:
wio --help
More info, that can be used to get help text for a specific command:
wio <command> --help
Command
Login with your Wiolink account:
wio login
Login state:
wio state example: $ wio state email: xxx@xxx.xx token: 4LxiwvwFAw3C7LiiUQiZh6qOj44tV6KGsXyjp3jVzxx mserver: https://iot.seeed.cc mserver_ip: 45.79.4.239
Displays a list of your devices and their APIs:
wio list example: $ wio list |-- home (online) |-- sn: e3d0dccd4587f40a5d6ffda236755aa4 |-- token: ce140e79f24717ed7d6d44bfb5d848b2 |-- resource url: http://192.168.21.115:8080/v1/node/resources?access_token=ce140e79f24717ed7d6d44bfb5d848b2 |-- well_known: |-- GET /v1/node/GroveTempHumProD0/humidity -> float humidity |-- GET /v1/node/GroveTempHumProD0/temperature -> float celsius_degree |-- GET /v1/node/GroveTempHumProD0/temperature_f -> float fahrenheit_degree
Request api, return json:
wio call <token> <method> <endpoint> example: $ wio call c74a110c2e397823f0ce53ef669d5b7f GET /v1/node/GroveMoistureA0/moisture {u'moisture': 0}
Add a new device with USB connect:
wio setup
config your main server:
wio config mserver
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wio-cli-0.0.15.tar.gz
(8.5 kB
view details)
File details
Details for the file wio-cli-0.0.15.tar.gz
.
File metadata
- Download URL: wio-cli-0.0.15.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd17a1be5e8d31af95f081521edbaea3e2d05d2e93bc1faccb8935104383e3ab |
|
MD5 | 882d47e75c81f8bc9dca8f5588445be4 |
|
BLAKE2b-256 | 3bfa12e197a4e18f8d9311a3a218d94dfef0462723c7eb738c1e6f878f7595b0 |