IntelliHome::RPC::Service::Ask - IntelliHome/Google-at-Home GitHub Wiki
NAME
IntelliHome::RPC::Service::Ask - IntelliHome "ask" service for RPC server
DESCRIPTION
This object represent the "ask" service for the RPC server, it is available under rpcserver_ip:port/ask
METHODS
IntelliHome::RPC::Service::Ask inherits all methods from IntelliHome::RPC::Service::Base and implement the following new:
-
rpc_gpio($tag)
Query the database backend, returning a list of GPIOs object (Schema dependant). The
$tagmust be a tagged gpio. If$tagis not given it returns all the elements. -
rpc_nodes($query)
Query the database backend, returning a list of nodes object (Schema dependant). The
$querymust be an hashref of key => values that matches a gpio. If$queryis not given it returns all the elements. -
rpc_get_nodes($name)
Query the database backend, returning a list of YAML serialized nodes. The
$nameis used to filter by name. If$nameis not given it returns all the elements. -
rpc_gpio_data($tag)
Query the database backend, returning a list of YAML serialized gpios. The
$tagis used to filter by tag. If$tagis not given it returns all the elements. -
rpc_get_rooms($name)
Query the database backend, returning a list of YAML serialized rooms. The
$nameis used to filter by name. If$nameis not given it returns all the elements.
ATTRIBUTES
IntelliHome::RPC::Service::Ask inherits all attributes from IntelliHome::RPC::Service::Base
SEE ALSO
IntelliHome, IntelliHome::Workers::Master::RPC , MojoX::JSON::RPC::Service