<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Getting started</title><link>https://forge.codesys.com/u/marci4/wvdetection/wiki/Getting%2520started/</link><description>Recent changes to Getting started</description><language>en</language><lastBuildDate>Fri, 12 Jun 2020 09:40:54 -0000</lastBuildDate><atom:link href="https://forge.codesys.com/u/marci4/wvdetection/wiki/Getting%20started/feed" rel="self" type="application/rss+xml"></atom:link><item><title>Getting started modified by marci4</title><link>https://forge.codesys.com/u/marci4/wvdetection/wiki/Getting%2520started/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -12,3 +12,20 @@

 [[img src=ProjectSettings.PNG width=50%]]
 Then download the changes to the PLC.
+
+Next we have to get started on our website which switches between different webvisualizations.
+
+Therefore use the provided files [test.html](https://forge.codesys.com/u/marci4/wvdetection/code/ci/master/tree/test.html?format=raw) and [wvdetection.js](https://forge.codesys.com/u/marci4/wvdetection/code/ci/master/tree/wvdetection.js?format=raw).
+
+Look for the function onBodyLoad(). 
+It contains the constructor and some required methods.
+~~~
+const wvDetection = new WVDetection("frame");
+wvDetection.setWebvisuUrls(["http://localhost:8080/webvisu.htm", "http://localhost:8081/webvisu.htm"]);
+wvDetection.start();
+~~~
+
+The constructor requires the id of the iframe, which should be switched.
+This argument is required.
+The method setWebvisuUrls() allows you to set a number of urls, but at least two are required.
+The method start() will start the detection. It has an optional parameter timeout, which will default to 5000, and will be used as number of milliseconds to wait for a message from the webvisualization.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">marci4</dc:creator><pubDate>Fri, 12 Jun 2020 09:40:54 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.comd9adace14c31d1a4deabb8b073c18f8f92ce5c11</guid></item><item><title>Getting started modified by marci4</title><link>https://forge.codesys.com/u/marci4/wvdetection/wiki/Getting%2520started/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -1,6 +1,7 @@
 This is a small tutorial on how to use this project.

 [[download url="https://forge.codesys.com/u/marci4/wvdetection/wiki/Getting%20started/attachment/VisuElemWVDetection.package"]]
+
 First download this package and install it.
 *The package will require CODESYS 3.5 SP16.*

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">marci4</dc:creator><pubDate>Fri, 12 Jun 2020 09:33:57 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.com3128cda9f085d0b5748c48def9b7beb08e76e0c6</guid></item><item><title>Getting started modified by marci4</title><link>https://forge.codesys.com/u/marci4/wvdetection/wiki/Getting%2520started/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -1,9 +1,10 @@
 This is a small tutorial on how to use this project.

+[[download url="https://forge.codesys.com/u/marci4/wvdetection/wiki/Getting%20started/attachment/VisuElemWVDetection.package"]]
 First download this package and install it.
 *The package will require CODESYS 3.5 SP16.*

-[[download url="https://forge.codesys.com/u/marci4/wvdetection/wiki/Getting%20started/attachment/VisuElemWVDetection.package"]]
+

 It will add a visualization element required for the detection of the webvisu state.
 This element contains some javascript code, which will forward any log messages from the webvisu to its referenced iframe.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">marci4</dc:creator><pubDate>Fri, 12 Jun 2020 09:33:33 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.com3f639b035fc2e1d40db70072b94ccf0b72ce3709</guid></item><item><title>Getting started modified by marci4</title><link>https://forge.codesys.com/u/marci4/wvdetection/wiki/Getting%2520started/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -2,6 +2,7 @@

 First download this package and install it.
 *The package will require CODESYS 3.5 SP16.*
+
 [[download url="https://forge.codesys.com/u/marci4/wvdetection/wiki/Getting%20started/attachment/VisuElemWVDetection.package"]]

 It will add a visualization element required for the detection of the webvisu state.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">marci4</dc:creator><pubDate>Fri, 12 Jun 2020 09:33:08 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.com228bfcbfa79bde78e6f70375f11c28d3d2576e30</guid></item><item><title>Getting started modified by marci4</title><link>https://forge.codesys.com/u/marci4/wvdetection/wiki/Getting%2520started/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -2,9 +2,10 @@

 First download this package and install it.
 *The package will require CODESYS 3.5 SP16.*
+[[download url="https://forge.codesys.com/u/marci4/wvdetection/wiki/Getting%20started/attachment/VisuElemWVDetection.package"]]

 It will add a visualization element required for the detection of the webvisu state.
 This element contains some javascript code, which will forward any log messages from the webvisu to its referenced iframe.

-
+[[img src=ProjectSettings.PNG width=50%]]
 Then download the changes to the PLC.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">marci4</dc:creator><pubDate>Fri, 12 Jun 2020 09:32:48 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.com7e2ed9d85ac98e86c69dab373509b2466ae681be</guid></item><item><title>Getting started modified by marci4</title><link>https://forge.codesys.com/u/marci4/wvdetection/wiki/Getting%2520started/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This is a small tutorial on how to use this project.&lt;/p&gt;
&lt;p&gt;First download this package and install it.&lt;br/&gt;
&lt;em&gt;The package will require CODESYS 3.5 SP16.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;It will add a visualization element required for the detection of the webvisu state.&lt;br/&gt;
This element contains some javascript code, which will forward any log messages from the webvisu to its referenced iframe.&lt;/p&gt;
&lt;p&gt;Then download the changes to the PLC.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">marci4</dc:creator><pubDate>Fri, 12 Jun 2020 09:31:10 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.coma9e2b7c16a41c5dd8c9ae1e4e19e58ff03b02b3a</guid></item></channel></rss>