Access Tango Device Server From WebApplication

how it is possible ?.and what kind of tool/languages required for that?.short description will be very helpful.

Thanks,
RR
Edited 7 years ago
Hi Bhautik,

The solution we chose at MAX-IV for several projects is to write webservers that subscribe to tango attributes using pytango or the taurus core, and publish the data through server-sent events or websockets. It's quite straight-forward to do, thanks to the many back-end libraries available for python (flask, websockets, aiohttp, etc.). Note that those projects didn't involve any RPC (tango commands, writing attributes, etc.), nor database browsing.

Those projects work fine so far, but they're quite new and application specific. I wish we had a generic and configurable tango webserver to do that, but coming up with a design that would fit all our webapp needs is not so trivial. I've been looking into crossbar/autobahn recently and I think it's an interesting project. I wonder if we could fit in some tango somehow.

Hope that helps.
Hi,

another way of doing web applications is to use the mTango REST API. There is also a JavaScript API built on top of the REST API.

Check out the mTango website: https://bitbucket.org/hzgwpn/mtango/wiki/mTango%20REST%20API

Andy
 
Register or login to create to post a reply.