M2Web API

If you want to develop your own remote monitoring and control application which relies on an Ewon gateway and the Talk2M service, you can do so through the M2Web platform, and more specifically the M2Web API.

The API exposes web services aimed at querying M2Web information (basically the contents found on the M2Web portal), accessing the Ewon gateway's web server and other possible web servers on the Ewon gateway LAN side.

The Ewon gateway must be connected to Talk2M to use this service.

For more details, see M2Web section.

Here is a smal example of the M2Web API commands:

  • getaccountinfo: get information on the Talk2M account. The response is returned in JSON format.
  • getewons: get the list of Ewon gateways. The response is returned in JSON format.
  • get/<eWONName>: connect to the Ewon gateway web server

M2WebAPI & Ewon gateway

This API allows you to query an Ewon gateway as well as sending commands in just one call. Here are some actions you can perform on the Ewon gateway through the M2Web API:

  • Get Ewon gateway archives, tag values, alarms,... through Export Block descriptors
  • Write tag values
  • Acknowledge alarms
  • Execute a script

For more details, see M2WebAPI programming section