medusa-middleware

A lightweight middleware service for StruxureWare Building Operation

View the Project on GitHub

Medusa Middleware

A lightweight middleware service for StruxureWare Building Operation.

Medusa Middleware is a helper middleware web service for requesting and transforming data from unsupported protocols and data formats (eg HTTP JSON, SNMP trap) into an easily consumable XML web service for StruxureWare Building Operation. Medusa Middleware can be used to allow StruxureWare Building Operation and SmartStruxure Servers to consume (and eventually serve) data from 3rd party services, both on-premise and cloud based.

Supported interfaces

Current:

Planned:

Architecture

Image of System Architecture

Contributing

Click here to learn how to contribute.

In a nutshell, Medusa Middleware uses the following technology:

Installation

  1. Download the latest Windows installer.
  2. Run the installer, follow the prompts to install Medusa Middleware.
  3. Install as a Windows Service: Navigate to %programfiles%/Schneider Electric/Medusa Middleware/winservice and run install_service_xxx.bat, based on whether the Windows platform is 32-bit or 64-bit. (This nonsense will be fixed in a later version).
  4. Edit config file: see next section.
  5. Start the service: Open Services services.msc and start Medusa Middleware.

Image of Windows Service

Configure config.ini

Open %programfiles%/Schneider Electric/Medusa Middleware/config.ini:

# config.ini
[Middleware]
host: 127.0.0.1
port: 8069

[Solar Analytics]
base_url: https://portal.solaranalytics.com.au/api/v2/
username: test@example.com
password: Secure password
site_id: 123

Make sure the Medusa Middleware service is restarted after any config changes.

Middleware settings

Configure StruxureWare

Refer to the Supported interfaces docuemntation link above for interface specific configuration. The basic workflow is as follows:

  1. Open StruxureWare Building Operation WorkStation and login to an Enterprise Server or other SmartStruxure device.
  2. Import %programfiles%/Schneider Electric/Medusa Middleware/struxureware/xxxxxx.xml
  3. Configure and test the XML Web Services are receiving data from Medusa Middleware. Configure associated trends, graphics and programs.

Example import of Solar Analytics proxy XML web service interface: Image of StruxureWare Building Operation XML Web Service interfaces to local Medusa Middleware

Uninstall

  1. Remove Windows service: Navigate to %programfiles%/Schneider Electric/Medusa Middleware/winservice and run remove_service.bat.
  2. Uninstall Medus Middleware using Windows Add or remove programs.

TODO

Revision history

Version 0.1

Support or Contact

Having trouble or want to learn more? contact support and we’ll help you sort it out.