Okay, apparently there is a way to do this via an undocumented command in the dashboard server:
So to get this working, you would have to build a python daemon.
#!/usr/bin/env python
import socket
import time
import sys
import xmlrpclib
from SimpleXMLRPCServer import SimpleXMLRPCServer
def getVar(variableName):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(2)
s.connect(('127.0.0.1', 29999))
cmd = 'getVariable ' + variableName
cmd = cmd + '\n'
print(cmd)
s.sendall(cmd.encode())
rcvd = s.recv(4096)
return rcvd
server = SimpleXMLRPCServer(("127.0.0.1", 12345))
server.register_function(getVar, "getVar")
server.serve_forever()
Then you’d have to put this daemon in the resources folder in your urcap directory, register the daemon service and then call this daemon out from the java code and it should work.
But haven’t tested it yet so can’t be 100% sure