Skip to main content
Sep 6, 2017 9:50 AM UTC
Question

How can I Initialize ThingWatcher from scratch in ThingWorx Composer 8.0?

Hello, in the ThingWatcher 8.0 deployment guide after running the installatio of 2 jar files (results and training) there is the following script:

ThingWatcher thingwatcher = new ThingWatcherBuilder()

.certainty(95.4)

.thingID("MyPropertyName")

.consumer(myConsumerInstance)

.minimumDataCollectionTime(5)

.minimumDataCollectionTimeUnit(TimeUnit.SECOND)

.trainingBaseURI("http://localhost:8080/")

.getThingWatcher();

for starting ThingWtacher from scratch,

But where i write this code?

After that what i have to do in order to test THingWatcher?

It'not clear, in the document below is written that i can run THingWatcher for anomaly detection from the composer.

here: ThingWorx 8.0 Available for Download

Native Anomaly Detection:

ThingWorx 8 features more tightly integrated analytics capabilities, including the ability to configure anomaly alerts on properties directly from the ThingWorx Composer. ThingWatcher technology is utilized to increase machine monitoring capabilities by automatically learning normal behavior, continuously monitoring data streams and raising alerts when abnormal conditions are identified.

THanks

for helping me

2 replies

Sep 6, 2017 1:13 PM UTC

Hi Marco

ThingWatcher comes in 2 "edition", :

- the ThingWatcher SDK

- the integral anomaly detection

The SDK requires to develop your own Java code and the extract you see in the documentation is about this.

What you probably want to do is to use the integral anomaly detection (no code to write and usable directly from Composer), then you need to check the Help Center: https://support.ptc.com/help/thingworx_hc/thingworx_8_hc/#page/ThingWorx_Core_Help_Center%2FThingWorxHelpCenterDITAFiles%2FThingWorxModelDefinitionandComposer%2FAnomalyDetection%2FAnomalyDetection.html

You will also found the following article of interest as it summarizes the steps and includes several videos for the different phases: Article Viewer | PTC

Hope this helps

Kind rgeards

Christophe

Sep 6, 2017 2:33 PM UTC

Hello,

Thank you, these are the really useful infos i need!