Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
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.
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.