Giter Club home page Giter Club logo

ws-cli-tools's Introduction

Websocket CLI Tools

PyPI package status Travis build status Codecov coverage status

Websocket CLI Tools provides a set of commands for interacting remotely and easily with IoT-Lab nodes using the Websosket protocol.

Websocket CLI Tools can be used in conjunction with the IoT-Lab CLI Tools commands like iotlab-auth and iotlab-experiment.

Installation:

You need python pip. To install ws-cli-tools, use pip (or pip3 for Python 3):

$ pip install iotlabwscli --user

Example:

Start an experiment, wait for it to be ready and connect to the serial port:

$ iotlab-experiment submit -d 120 -l saclay,m3,1,tutorial_m3.elf
{
    "id": 65535
}
$ iotlab-experiment wait
Waiting that experiment 65535 gets in state Running
"Running"
$ iotlab-ws
Using custom api_url: https://www.iot-lab.info/rest/
Connected to m3-1.saclay

h
m3-1.saclay:
m3-1.saclay:
m3-1.saclay: IoT-LAB Simple Demo program
m3-1.saclay: Type command
m3-1.saclay:        h:      print this help
m3-1.saclay:        t:      temperature measure
m3-1.saclay:        l:      luminosity measure
m3-1.saclay:        p:      pressure measure
m3-1.saclay:        u:      print node uid
m3-1.saclay:        d:      read current date using control_node
m3-1.saclay:        s:      send a radio packet
m3-1.saclay:        b:      send a big radio packet
m3-1.saclay:        e:      toggle leds blinking
m3-1.saclay:
e
m3-1.saclay: cmd >
m3-1.saclay: leds > off
m3-1.saclay:
l
m3-1.saclay: cmd > Luminosity measure: 2.4414062 lux
m3-1.saclay:
^CExiting
0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.