Skip to main content
1-Visitor
April 1, 2021
Solved

Automating Data

  • April 1, 2021
  • 2 replies
  • 3990 views

Hi All

 

I am running a Data simulator in Node red. The simulated data is in JSON format and is being generated every 10 mins. This data is being sent to ThingWorx platform via MQTT. However, the data transfer is manual at present, once the MQTT thing is refreshed only then the property(JSON basetype) is updated with the most recent payload. I would like to automate this process - as soon as data is generated in Node Red the property should also be updated with it. Request you all to help me on the probable steps to accomplish this?

 

Regards

Ketan

Best answer by slangley

Hi @ketanaga

 

From reading through the case notes, it appears you were able to resolve your issue by implementing an autorefresh widget.  If that is the correct solution, please mark this post as the Accepted Solution for the benefit of others in the community.

 

Regards.

 

--Sharon

2 replies

Community Manager
April 6, 2021

Hi @ketanaga 

 

Can you please provide the config settings and mappings for the MQTT thing you set up?

 

Regards.

 

--Sharon

ketanaga1-VisitorAuthor
1-Visitor
April 7, 2021

Hi

 

The config looks something like this

 

clientIDFormat : /Thingworx/EnergyIO/EnergyMeter+Data

format : /Thingworx/EnergyIO/EnergyMeter_Data/Energy,Datetime,Weather

 

Energy, Datetime and Weather are all subscribers, subscribing to different topics test/test1,2,3

 

Regards

Ketan

 

ketanaga1-VisitorAuthor
1-Visitor
April 12, 2021

Hi @slangley 

 

Any update on the issue? It would be highly appreciated if you could help me with a probable approach for it 🙂

 

Regards

Ketan Agarwal

Community Manager
April 29, 2021

Hi @ketanaga

 

Take a look at this Tech Tip to see if it will help.  If not, we'll need to open a case to work through the issue.

 

Regards.

 

--Sharon

ketanaga1-VisitorAuthor
1-Visitor
April 30, 2021

Hi @slangley 

 

Thanks for providing an alternative. However I still have to manually hit the Refresh button to get the most recent data from Node-Red.

 

Regards

Ketan