volkszaehler/volkszaehler.org — pull request #19 by tabacha (2011-11-29 10:34:21+00:00)
Title: Added eval option

Example normaly if you create a channel you will get an output like this one:

./vzclient add channel type=temperature title=test
{"version":"0.2","entity":{"uuid":"4cdf75f0-1a6f-11e1-a761-514d333064bb","type":"temperature","title":"test"}}

Now with the new eval option:

./vzclient -e entity,uuid add channel type=temperature title=test
4cdf75f0-1a6f-11e1-a761-514d333064bb

so you can use this in a bash script:

#!/bin/bash
UUID=$(/usr/local/bin/vzclient -e entity,uuid add channel type=temperature title=test)