Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Minus345 committed Apr 26, 2023
1 parent 6a7c136 commit 9f8d213
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@ Serial Artent Brige compatible with Fader-Wing-Arduino

## Parameters

`java -jar faderwing.jar [Serial Port] ["broadcast" / unicast ip (ArtNet)] [subnet] [universe] [ip Address]`
`java -jar faderwing.jar [parameters]`

- `-h` help
- `-ip` ArtNet IP
- `-s` Serial Port (int)
- `-as` ArtNet Subnet
- `-au` ArtNet Universe
- `-b` Broad cast
- `-u` Uni cast

## Tips

If you use Qlc+ on the same computer as the software, use `127.0.0.255` in the java programm and the `127.0.0.1` input interface in Qlc+.
If you use Qlc+ on the same computer as the software, use `127.0.0.255` in the java programm and the `127.0.0.1` input
interface in Qlc+.
10 changes: 5 additions & 5 deletions src/main/java/org/console/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ private static void commandLineParameters(String[] args) {
.desc("Serial Port (int)")
.hasArg(true)
.build())
.addOption(Option.builder("su")
.addOption(Option.builder("as")
.longOpt("subnet")
.hasArg(true)
.build())
.addOption(Option.builder("u")
.longOpt("subnet")
.addOption(Option.builder("au")
.longOpt("universe")
.hasArg(true)
.build());

Expand All @@ -120,10 +120,10 @@ private static void commandLineParameters(String[] args) {
serialport = Integer.parseInt(line.getOptionValue("s"));
}
if (line.hasOption("su")) {
subnet = Integer.parseInt(line.getOptionValue("su"));
subnet = Integer.parseInt(line.getOptionValue("as"));
}
if (line.hasOption("u")) {
universe = Integer.parseInt(line.getOptionValue("u"));
universe = Integer.parseInt(line.getOptionValue("au"));
}
} catch (ParseException exp) {
// oops, something went wrong
Expand Down

0 comments on commit 9f8d213

Please sign in to comment.