mkuzmik / visca-client

Visca protocol client written in Java. Both command-line and http interfaces implemented.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Visca client

Compilig

mvn install:install-file -Dfile=libs/visca.jar -DgroupId=pl.edu.agh.kis.visca -DartifactId=visca -Dversion=1.0 -Dpackaging=jar
mvn install:install-file -Dfile=libs/jssc.jar -DgroupId=jssc -DartifactId=jssc -Dversion=1.0 -Dpackaging=jar

Running

java -jar <path_to_jar> <port_name>

Example:
java -jar ./target/visca.jar COM1

If <port_name> is not given then program launches with stub connection.

Getting started

Basic commands

$ move-up

$ zoom-tele dest=all

$ sleep time=2

# ...and many more

Defining and executing sequence command

$ seq name=foobar
 foobar$ move-home
 foobar$ move-right dest=2
 foobar$ sleep time=2
 foobar$ zoom-wide
 foobar$ clear-all
 foobar$ end-seq
 
$ execute-seq name-foobar

Executing commands through HTTP

Starting server:

$ start-http port=8000

Executing commands:

POST localhost:8000/command?cmd=move-up

POST localhost:8000/command?cmd=zoom-tele&dest=3

POST localhost:8000/command?cmd=sleep&time=3

...and many more

Stopping server:

$ stop-http

Web client

Start server (on port 8000 by default) and type http://localhost:8000 in your browser.

About

Visca protocol client written in Java. Both command-line and http interfaces implemented.


Languages

Language:Java 95.3%Language:HTML 3.6%Language:JavaScript 1.2%