cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

How to create an alert in an industrial thing and alert message in mashup

HG_10044239
1-Newbie

How to create an alert in an industrial thing and alert message in mashup

Hi everyone, 

I am new to Thingworx. Now I have an industrial thing and the properties contain some temperature data. I want to make an alert if the temperature is higher or lower than a given value. But properties are stored as 'string' which only supports "equal to' and 'not equal to' in properties and alerts. And also I want to add a text to show the alert. Thank you.

HG_10044239_0-1684203810025.png

 

 

 

 

2 REPLIES 2

Hello @HG_10044239 

 

To create the alerts, you can follow the given article link which describes "how to create alerts or events?"

 

https://www.ptc.com/en/support/article/cs347378

 

Revert back if you face any challenges while creating the alerts.

 

Thanks

Bhawna

Hi bchandhary,

 

Thanks for your reply. I tried this method to create the alert. As I mentioned above only 'equal to' and 'not equal to' options are provided.

 

I just create a service. It might not be the best solution but it works. 

 

var noztemp=Number(me.NozReal);

if (noztemp<190)
{
me.NozAlertMessage="WARNING: Nozzle temperature is too LOW!!";
}
else if (noztemp>230)
{
me.NozAlertMessage="WARNING: Nozzle temperature is too HIGH!!";
}
else
{
me.NozAlertMessage="Nozzle temperature is OK!!";
}

 

I just use valuedisplay in mashup to show the message.

Top Tags