Razberry java client library

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
freedomotic
Posts: 4
Joined: 01 Feb 2013 19:20

Razberry java client library

Post by freedomotic »

Hi to all,
we are developing a Razberry / Z-Way API binding library for the Java language licensed under Apache License 2.0. This library is a wrapper over the Z-Way REST api and depends on three opensource libraries:
restlet - www.restlet.org - for the http and REST comunication
internal.json - You can see the license term at http://www.JSON.org/license.html
gson - http://code.google.com/p/google-gson/ To transform the internal.json string onto java objects

The main goal is to integrate zway into our domotic framework Freedomotic (http://freedomotic.com) but the library can be used independently. Now it's only a proof of concept. We are working using the documentation.

We need help, so if you want to contribute please reply.
The github project is at https://github.com/gpulido/razberry-java-client-library
Freedomotic Open IoT Framework
http://www.freedomotic.com
freedomotic
Posts: 4
Joined: 01 Feb 2013 19:20

commandClasses syntax

Post by freedomotic »

Hi,
I'm testing the http requests fro our plugin.
With command classes 37 and 38 with the following url request I obtain the value
http://ip:8083/ZWaveAPI/Run/devices[3]. ... evel.value
With commandClassess 50 or 49 the following url doesn't work
http://ip:8083/ZWaveAPI/Run/devices[45] ... evel.value
If I use only data.value no url errors but the returned value is "".
Can you help me?
Is there a specific documentation about it?
Thanks

http://freedomotic.com
Freedomotic Open IoT Framework
http://www.freedomotic.com
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

This is because

Post by PoltoS »

This is because SensorMultilevel and Meter can have different types and scales. You need to access data[*].val.value, where * should be replaced by typeId/scaleId. Please check our demo UI code to see how we handle this: we get all numeric child objects and access their .val.value
Post Reply