Why doesn't this work

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
tonyg
Posts: 38
Joined: 29 May 2014 04:55

Why doesn't this work

Post 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?
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Why doesn't this work

Post 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[...]
tonyg
Posts: 38
Joined: 29 May 2014 04:55

Re: Why doesn't this work

Post by tonyg »

Whoops. :oops:

Thanks
hpd
Posts: 36
Joined: 20 Mar 2014 12:03

Re: Why doesn't this work

Post 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" :)
Z-Way 2.0.0-final on Raspberry Pi
Post Reply