Page 1 of 1

Why doesn't this work

Posted: 18 Dec 2014 17:07
by tonyg
I've been trying this command across the rest interface for the razberry on version 2.0.0 of the api and firmware

[my ip]:8083/ZWaveAPI/Devices[*].*

I used to get a big JSON output , but now I get "Bad ZWaveAPI request"

its still there in the manual!


[my ip]:8083/ZWaveAPI/Data/* still works

Is there an updated manual on using the JSON Rest API?

Re: Why doesn't this work

Posted: 18 Dec 2014 19:48
by pofs
tonyg wrote: [my ip]:8083/ZWaveAPI/Devices[*].*

Is there an updated manual on using the JSON Rest API?
It always was /ZWaveAPI/Run/devices[...]

Re: Why doesn't this work

Posted: 19 Dec 2014 12:27
by tonyg
Whoops. :oops:

Thanks

Re: Why doesn't this work

Posted: 19 Dec 2014 15:27
by hpd
Strange. I have seen this construct in the manual and thought the "*" are some sort of wild card .
But ...
http://myIp:8083/ZWaveAPI/Run/devices[*].*
gives
SyntaxError: Unexpected token *

whereas

http://myIp:8083/ZWaveAPI/Run/devices[10]

gives zway data tree for node 10

if the Syntax Error above is correct I see this part of the manual as an excellent example of "how to confuse your user" :)