Posted On: Aug 9, 2021

Amazon IoT SiteWise is a managed service that makes it easy to collect, store, organize and monitor data from industrial equipment at scale to help you make better, data-driven decisions.

Today, we are excited to announce three new enhancements to Amazon IoT SiteWise transforms and formula expressions, to allow users greater flexibility in monitoring their IoT assets in near real-time.

Amazon IoT SiteWise now supports transforms containing more than one variable. Amazon IoT SiteWise calculates a new transformed data point each time any of the input properties receives a new value. For example, to monitor parts quality in near real-time you can now create a transform with multiple variables: Good_Count and Bad_Count, which count the number of good parts and bad parts produced respectively. The transform outputs "Caution" or "Normal" based on the fraction of bad parts produced:

if(Bad_Count / (Good_Count + Bad_Count) > 0.1, "Caution", "Normal")
 

For more information, and additional examples of transforms with multiple variables see the documentation on transforming data.

Amazon IoT SiteWise now also supports additional string functions such as the format() and join() functions which lets you define your own strings with different formats. For example, you can specify the number of decimal places for a numeric value with format("%.1f", 3.14159265) which would provide an output of 3.1. With the join() function, you can combine several strings together with a delimiter with a join() function, for example, join("-", "Windfarm1", "Windturbine", "T1") would create the string Windfarm1-Windturbine-T1.

Additionally, Amazon IoT SiteWise now supports new logic operations such as complex logic expressions and nested comparison operators. For example, the expression if (sensor_temperature>35 and sensor_temperature<50, "True", "False") or if (35<sensor_temperature<50, "True", "False") would produce True if the sensor_temperature is between 35 degrees Fahrenheit and 50 degrees Fahrenheit, and False if the sensor_temperature is less than 35 degrees Fahrenheit or more than 50 degrees Fahrenheit.

For more information and examples on string and logic functions, see the documentation on Operators, Comparison functions, and String functions. For a complete list of supported formula expressions and how to use them, see the Using formula expressions documentation page.

To get started on Amazon IoT SiteWise, log into the Amazon Web Services Management Console and navigate to Amazon IoT SiteWise. Visit the Amazon IoT website and the Amazon IoT SiteWise website to learn more about Amazon IoT services.