volkszaehler/volkszaehler.org — pull request #15 by tabacha (2011-11-26 14:32:05+00:00)
Title: Added a comand line programm vzclient for easy add, modify, delete channels, group's and so on

./misc/client/vzclient --help
usage: vzclient [-h] [--url URL] [-u UUID] [-f {json,xml,csv,png,gif,jpg}]
{add,get,edit,delete} {data,channel,group,capabilities}
[param [param ...]]

A python client for volkszaehler.org

positional arguments:
{add,get,edit,delete}
what to do
{data,channel,group,capabilities}
the context of the operation
param Paramter always in syntax key=value

optional arguments:
-h, --help show this help message and exit
--url URL url to the volkszaehler.org middelware.php (tip: put
this in config file, see below)
-u UUID, --uuid UUID the uuid to edit, get or delete
-f {json,xml,csv,png,gif,jpg}, --format {json,xml,csv,png,gif,jpg}
the format

Syntax of /etc/vzclient.conf or ~/.vzclient.conf:
------------------------------------------------------------
[default]
url:http://www.example.org/subdir/volkszaehler/middleware.php
format:json