Skip to main content

CLI for Wio Link

Project description

Latest Version

Getting Started

Wio Link Client can be installed from PyPI using pip:

pip install wio-cli

There are a few variants on getting help. A list of global options and supported commands is shown with --help:

wio --help

Command

login in:

wio login

get login state:

wio state

example:
$ wio state
email: xxx@xxx.xx
token: 4LxiwvwFAw3C7LiiUQiZh6qOj44tV6KGsXyjp3jVzxx
mserver: https://iot.seeed.cc
mserver_ip: 45.79.4.239

list wio & apis:

wio list

example:
$ wio list
<wio-cli> sn[7bb5f63b86de785a7fb8243bc7160dca],token[26cda37ff879cd9df93107ed1983aa89] is offline
<sw> sn[95c5c5d2bb1e82f6ccdef080c6a1275d],token[ddb4d188352bac33d294f04cc9f02355] is offline
<windows-test> sn[88acb36fada20050c3ce086188a53577],token[c74a110c2e397823f0ce53ef669d5b7f] is online
  GET /v1/node/GroveMoistureA0/moisture -> uint16_t moisture
  GET /v1/node/GroveEncoderUART0/position -> int32_t position
  POST /v1/node/GroveEncoderUART0/reset_position/{int32_t position}
  POST /v1/node/GroveEncoderUART0/enable_acceleration/{uint8_t enable}
  Event GroveEncoderUART0 encoder_position

call api:

wio call <token> <method> <endpoint>

example:
$ wio call c74a110c2e397823f0ce53ef669d5b7f  GET /v1/node/GroveMoistureA0/moisture
{u'moisture': 0}

configure with usb connect:

wio setup

config main server:

wio config mserver

Project details


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.10.tar.gz (8.5 kB view details)

Uploaded Source

File details

Details for the file wio-cli-0.0.10.tar.gz.

File metadata

  • Download URL: wio-cli-0.0.10.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wio-cli-0.0.10.tar.gz
Algorithm Hash digest
SHA256 c8fee6731a4d44ba31c632f6de5d12ef73696a77acdff0dc20fa3f6dba652aef
MD5 713a5b18cb372a7d938fc76dab226745
BLAKE2b-256 22f723618670a3d5bb1cff08b97a36510ac1fef34c5fc850103feebc2a78551f

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page