I have just tried out Igor's mtango REST api using his mtango package:

https://bitbucket.org/hzgwpn/mtango/wiki/mTango%20REST%20API

It works very well and opens new perspectives for TANGO web access. Here are some tips on how I got it running:

I am running mtango on Ubuntu 14.10 on Tomcat8. To do this I had to:

1. install tomcat8
2. copy the mtango.war app to /var/lib/tomcat8/webapps
3. create a tomcat8 user in conf/tomcat-users.xml with the mtango-rest role
4. configure tomcat8 to use a version of java > 8u25 by editing JAVA_HOME in /etc/default/tomcat8
5. started tomcat8 to deploy mtango

I could then go to the browser and access my favourite TANGO device from my favourite browser:

http://localhost:8080/mtango/rest/device/sys/tg_test/1/long_scalar

returned

{"argout":37,"quality":"VALID","timestamp":1426417086791}

This opens a whole lot of new possibilities for TANGO. I would be interested to know what others think of mtango and how they plan to use it.

Andy
Edited 9 years ago