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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for wio-cli-0.0.13.tar.gz
Algorithm Hash digest
SHA256 1448f468491346050adf0f3f5ace6f511560f5c4002a89f785ffbbda8fcfa57a
MD5 ac4a6a2eb7102ad94e8b797c44cbc278
BLAKE2b-256 0ed841af890e7c81dde473a0767b7328805d734ad552cdebc617cedd5a898f1b

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