scripting

Groovy Script: Send a SMS notification through Twilio

This Groovy script is called from an ExpressionRule of type 'Alarm'. For example, in an Expression rule IF: Alarm.severity > 500THEN: ExecuteCustomObject("SMSMe", "[numberToSMS]")calls the script "SMSMe" with the parameter phoneNumber.  The ExecuteCustomObject provides a way to call...

Groovy Script: Checking alarm history

Here's an example Groovy script that you can call from an Expression Rule which retrieves the history of a particular alarm.

Groovy Scripting

Groovy is a dynamic language for the Java environment which Axeda has embedded in the platform, with complete access to the Platform SDK. It can be used to script custom logic or call external cloud services.

Axeda Platform API Developers Guide

This guide describes how to use the Java SDK, typically from Groovy scripts. For details of the complete SDK, refer to the JavaDocs.

SDK JavaDocs

The Axeda Platform has a rich set of objects for configuration and operation. This article provides the Axeda SDK Javadoc which explains how you can create and manage platform objects, such as rules, actions, alarms, users and assets, and perform actions such as downloads using the Axeda SDK.

Groovy Script: Copy Data Item value to Asset Property value

This Groovy script takes any dataitem values and writes them to properties of the same name - if they exist.

Groovy Script: Get Precipitation by a given latitude and Longitude

This Groovy script gets the weather forecast for a given lat/long by calling an external web service.