Search found 6 matches

by Guenter
21 Dec 2015 14:52
Forum: Discussions in English
Topic: Status on CodeDevice
Replies: 3
Views: 5313

Re: Status on CodeDevice

just tested the system call using the second array element, which seems to contain the Output of the script:

Code: Select all

system('/path/to/script')[1]
in this case you should avoid printing the newline at the end, like:

Code: Select all

echo -n on
by Guenter
21 Dec 2015 13:36
Forum: Discussions in English
Topic: Status on CodeDevice
Replies: 3
Views: 5313

Re: Status on CodeDevice

what you echo inside the script will be printed to stdout, but is not the result value of the 'system' call. you can use the exit code inside the script, e.g call 'exit 0' for 'on' and 'exit 1' for 'off' and let the CodeDevice do the rest: system('/path/to/script')[0]==0 ? 'on' : 'off' ( I am new to...
by Guenter
21 Dec 2015 09:01
Forum: RaZberry
Topic: Openremote permission denied !
Replies: 5
Views: 6470

Re: Openremote permission denied !

look at it pragmatically; In compliance with RFC 2617, ZWay is not forced to reply using 401 and a proper WWW-Authentication header, ZWay could instead easily reply with 403, which wouldn't help OpenRemote either. ZWay wants to force preemptive authentication and OpenRemote wants to authenticate, so...
by Guenter
20 Dec 2015 20:06
Forum: RaZberry
Topic: Openremote permission denied !
Replies: 5
Views: 6470

Re: Openremote permission denied !

ZWay does not want to comply with the IETF authentication standard. See the second note on this OpenRemote page . indeed, ZWay should not respond with 401 and without a valid WWW-Authentication Header, but OpenRemote could of course preemptively send the basic credentials, without forcing the chall...
by Guenter
19 Dec 2015 20:54
Forum: RaZberry
Topic: z-way-test problems
Replies: 3
Views: 4294

Re: z-way-test problems

you can adjust the Makefile or provide the required settings on command line, like:

Code: Select all

make ZWAY_LIB_DIR=/path/to/libs INCLUDES=-I/path/to/headers
by Guenter
19 Dec 2015 15:51
Forum: RaZberry
Topic: Can't retrieve level from vdev
Replies: 8
Views: 14499

Re: Can't retrieve level from vdev

what's the problem ? gms@sirius:~$ PS1= curl -b cookie.txt "http://localhost:8083/JS/Run/controller.devices.get('DummyDevice_5').get('metrics:level')" 99 curl -b cookie.txt "http://localhost:8083/JS/Run/controller.devices.get('DummyDevice_5').set('metrics:level',42)" 2>/dev/null ...