Axeda Groovy Scripto: Get DataItems and Alarms for selected Asset
This script will return, in XML format, the alarms, location information and some data for a particular asset, identified by serial number.
It is designed to be called as a web service, in which case the username parameter will be supplied by the platform from the user authentication information passed in the web service call, and the devicename parameter will be passed as an argument to the call.
You can test this script in the Groovy development environment on the platform by explicitly supplying the username and devicename parameters (i.e., your email address and "asset1").
The code below will filter data items and return values for the data item "value1".