Skip to main content
1-Visitor
November 11, 2021
Solved

Using Alerts from Thingworx in Vuforia Studio

  • November 11, 2021
  • 2 replies
  • 1991 views

Hey Everyone! 🙂 

 

I try to make a 3D-Panel visible as soon as an Alert in Thingworx occurs. 

 

Example: I get the Temperature from an MQTT Broker. For that temperature I set an alert on >=20°C. Now I want to show a 3D Widget as soon as the alert is released in Thingworx. For that I added the alert as an event under external data in Vuforia Studio and then binded this alert to the 3D-Panel to show it. 

 

Unfortunately this is not working as planned. 

 

Can anyone support me?

 

Yours sincerely,

Marius 

Best answer by pandersson

Hello,

I know that this will be double work, but what if you bind the temp to the visible property of the panel with a filter.

return value > 20 ? true:false;

 

/Per 

 

2 replies

24-Ruby III
November 11, 2021

Article - "How to call ThingWorx service in Vuforia Studio using JavaScript": https://www.ptc.com/ru/support/article/cs299517 

1-Visitor
November 12, 2021

Hey Vladimir,

 

thank you for that information. I am wondering if there is no other solution. For example for properties you can use the service getPropertyValues, bind on of the properties inside to a text and get data pictured.

 

In my case, I want to make a panel visible as soon as the alert event is released from Thingworx. I hope to find a solution with easily binding the event of a service to the show function or the visibility of the panel. 

 

 

14-Alexandrite
November 12, 2021

Hello,

I know that this will be double work, but what if you bind the temp to the visible property of the panel with a filter.

return value > 20 ? true:false;

 

/Per 

 

1-Visitor
November 15, 2021

Thank you! This is working 🙂