<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[REXYGEN Community Forum / Display OMI value in HMI]]></title>
	<link rel="self" href="https://www.rexygen.com/oldforum/extern.php?action=feed&amp;tid=191&amp;type=atom"/>
	<link href="http://www.rexygen.com/oldforum/viewtopic.php?id=191"/>
	<updated>2016-09-01T12:11:07Z</updated>
	<generator>FluxBB</generator>
	<id>http://www.rexygen.com/oldforum/viewtopic.php?id=191</id>
	<entry>
		<title type="html"><![CDATA[Re: Display OMI value in HMI]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=852#p852"/>
		<content type="html"><![CDATA[<p>You are welcome. I&#039;m glad I could be of assistance.<br />Thank you for your time spend with investigation of this issue.</p><p>Let me know if I can do anything else for you.</p><p>Cheers, Tomas</p>]]></content>
		<author>
			<name><![CDATA[tomáš čechura]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=39</uri>
		</author>
		<updated>2016-09-01T12:11:07Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=852#p852</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Display OMI value in HMI]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=851#p851"/>
		<content type="html"><![CDATA[<p>Tomas,</p><p>You were correct about the security features, at least for Firefox on W10.&#160; The problem was caused by the &quot;Google Analytics Opt-out Browser Add-on&quot; module that I had installed, (the official module supplied by Google) which seems to block the connection to the websocket server.</p><p>I don&#039;t see why it should block a connection to a &quot;local&quot; server, but when I disactivate it everything works perfectly.</p><p>Lets close this ticket so we can both get on with something more useful ;-)</p><p>Thanks for all your help.</p>]]></content>
		<author>
			<name><![CDATA[sb003726]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=30</uri>
		</author>
		<updated>2016-09-01T10:11:43Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=851#p851</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Display OMI value in HMI]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=850#p850"/>
		<content type="html"><![CDATA[<p>Hi,</p><p>thank you for your detailed debug report.<br />I also made few tests with <a href="https://github.com/rexcontrols/REXexamples/tree/master/RaspberryPi_examples/03_PoolAutomation" rel="nofollow">Pool Automation example</a> on Win 10 and Rex 2.10.8 with following results:</p><p>Firefox V48.0.2 - OK<br />Chrome V52.0.2743.116 m - OK<br />Edge V25.10586.0.0 - OK</p><p>Raspbian Jessie + Epiphany Web V3.8.2 - OK</p><p>If the dynamic content isn&#039;t displayed it means that the browser can&#039;t connect to the Websocket server. The Time is therefore some kind of signalization of good connection.</p><p>We are currently finalizing new version of REX Control System which integrates our own Websocket server and many other features and bug fixes. </p><p>I would focus on some &quot;security&quot; features settings of the browsers itselves.</p><p>Cheers, Tomas</p>]]></content>
		<author>
			<name><![CDATA[tomáš čechura]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=39</uri>
		</author>
		<updated>2016-09-01T09:02:18Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=850#p850</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Display OMI value in HMI]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=849#p849"/>
		<content type="html"><![CDATA[<p>Hi Tomas,</p><p>I couldn&#039;t connect a monitor to the RPI as I run without a GUI.</p><p>So I decided to start with a clean solution and completely reinstalled Raspbian (Jessie lite) and all Rex related modules on the Rpi, it still didn&#039;t work!</p><p>Eventually after much debugging&#160; I have found that the issue is related to which web browser is used on the host computer...</p><p>- Firefox V48 on W10 does not work<br />- Chrome V52 on W10 works OK<br />- Default Internet browser on Android does not work<br />- Firefox on Android works OK</p><p>In the case where it does not work, the page loads with all the static elements but none of the dynamic content is displayed (not even the Time!).</p><p>If I have time I will try to debug further to see where the problem lies...</p><p>Thanks for your help so far.</p>]]></content>
		<author>
			<name><![CDATA[sb003726]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=30</uri>
		</author>
		<updated>2016-08-31T17:23:36Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=849#p849</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Display OMI value in HMI]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=848#p848"/>
		<content type="html"><![CDATA[<p>It seems that the problem is not in your code but somewhere in the websocket connection.</p><p>Is it possible for you to connect monitor to your Raspberry and run webbrowser in desktop with address: 127.0.0.1? Do you still get the same error?</p><p>Do you have another webserver installed on your Raspberry? (e.g. Apache).</p><p>Cheers, Tomas</p>]]></content>
		<author>
			<name><![CDATA[tomáš čechura]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=39</uri>
		</author>
		<updated>2016-08-31T10:46:45Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=848#p848</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Display OMI value in HMI]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=847#p847"/>
		<content type="html"><![CDATA[<p>Tomas,</p><p>Thank you for your quick reply,&#160; I made the changes you suggested but unfortunately I still do not get any value displayed for temperature.</p><p>Next, to eliminate my code I downloaded the complete Pool automation example to the RPi and when connecting to the HMI in the pool monitoring block I see &quot;NaN&quot; in place of the expected values. (RexView shows correct values...)</p><p>I also still see the following alert on the top right of the page. &quot;12:00:25 Connecting to WS server (ws://192.168.20.240/rex) failed!&quot; so I suspect a problem with websocket on my RPi.&#160; The package is installed, and restarting &quot;rexwstcp&quot; does not help and does not show any obvious errors... Any idea where to check next?</p><p>Thanks</p>]]></content>
		<author>
			<name><![CDATA[sb003726]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=30</uri>
		</author>
		<updated>2016-08-31T10:10:04Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=847#p847</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Display OMI value in HMI]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=846#p846"/>
		<content type="html"><![CDATA[<p>Hello,</p><p>thank you for your question. <br />As you have mentioned you are extending Pool automation example - did you make it work successfully? I would start with this.</p><p>However, it is not possible to monitor I/O flags in current release version (2.10.8). It is already implemented in new version which is about to be released. For now you can use simple workaround - connect e.g. GAIN function block to the output of the &quot;OWS__Stock_temperature&quot; flag and in HMI monitor input to the GAIN block with following:</p><div class="codebox"><pre><code>var status = {
                  column: 2,
                  title: &#039;Temperatures&#039;,
                  rows: [
                      {alias: &#039;Tstock_Top&#039;, desc: &#039;TStock_top&#039;, cstring: &#039;thermostat_task.GAIN_Stock_temperature:u&#039;, type: &#039;AR&#039;},

                  ]};</code></pre></div><p>Note that the type is set to &#039;AR&#039; - analog read.</p><p>Plase, be sure to name all I/O flags with double underscore just behind the driver prefix - e.g. OWS__Temperature. Connection string in your code has only one - I guess it&#039;s typo.</p><br /><p>If I can be of assistance, please do not hesitate to contact me.</p><p>Cheers, Tomas</p>]]></content>
		<author>
			<name><![CDATA[tomáš čechura]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=39</uri>
		</author>
		<updated>2016-08-31T07:21:37Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=846#p846</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Display OMI value in HMI]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=845#p845"/>
		<content type="html"><![CDATA[<p>Hi,</p><p>I am developing a solar heating controller using Rpi with UniPi expansion board with 1-wire temperature sensors, running wheezy Raspian.</p><p>I am trying to display the value of one of the OMI sensors in the HMI but cannot get it to work, I have taken the simple pool automation example and modified the controls section of index.html as follows:</p><div class="codebox"><pre><code>var status = {
                  column: 2,
                  title: &#039;Temperatures&#039;,
                  rows: [
                      {alias: &#039;Tstock_Top&#039;, desc: &#039;TStock_top&#039;, cstring: &#039;thermostat_task.OWS_Stock_temperature:value&#039;, type: &#039;R&#039;, color_true: &#039;green&#039;},

                  ]};</code></pre></div><p>After downloading this file to the RPi I can load the resulting web page but do not get any value displayed for temperature.<br />I have tried different values for the &quot;type&quot; field but nothing seems to work.</p><p>I also note that, even though the page is loaded from the RPi,&#160; on the top right&#160; side of the displayed web page there is a message:</p><p> &quot;19:54:44 Connecting to WS server (ws://192.168.20.240/rex) failed!&quot;</p><p>I cannot seem to find any relevent logs on the RPi or documentation that would allow me to troubleshoot this problem, any tips you can give would be very helpful.</p><p>Thanks</p>]]></content>
		<author>
			<name><![CDATA[sb003726]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=30</uri>
		</author>
		<updated>2016-08-30T18:18:20Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=845#p845</id>
	</entry>
</feed>
