Uses the builtin query interface of info-beamer to get live data from a running instance.
import ibquery
ib = ibquery.InfoBeamerQuery() # connects to localhost by default
print "%s is running %s. current fps: %d, uptime: %dsec" % (ib.addr, ib.version, ib.fps, ib.uptime)
import ibquery
ib = ibquery.InfoBeamerQuery()
print "The info-beamer process uses %dkb memory" % ib.resources.memory
import ibquery
ib = ibquery.InfoBeamerQuery()
for path in ib.nodes:
print "%s requires %dkb memory" % (path, ib.node(path).mem)
This requires a node that react to input
events. See
https://info-beamer.com/doc/info-beamer#node.event/input
import ibquery
ib = ibquery.InfoBeamerQuery()
s = ib.node('root').io(raw=True)
s.write('hello\n')
s.flush()
print s.readline()