<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[REXYGEN Community Forum / OwsDrv module - Sensor/Actuator Path]]></title>
	<link rel="self" href="https://www.rexygen.com/oldforum/extern.php?action=feed&amp;tid=503&amp;type=atom"/>
	<link href="http://www.rexygen.com/oldforum/viewtopic.php?id=503"/>
	<updated>2018-09-25T06:17:35Z</updated>
	<generator>FluxBB</generator>
	<id>http://www.rexygen.com/oldforum/viewtopic.php?id=503</id>
	<entry>
		<title type="html"><![CDATA[Re: OwsDrv module - Sensor/Actuator Path]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2066#p2066"/>
		<content type="html"><![CDATA[<p>Thanks gizmo, I actually have a use for something similar on my next project.</p><p>Mike</p>]]></content>
		<author>
			<name><![CDATA[mikeyh]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=60</uri>
		</author>
		<updated>2018-09-25T06:17:35Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2066#p2066</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: OwsDrv module - Sensor/Actuator Path]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2065#p2065"/>
		<content type="html"><![CDATA[<p>Everything is working out great for me with the OwsDrv module alias. </p><p>I have included a zip file link and GitHub link of the example that I screenshot. This example has HMI included. </p><p><a href="https://www.rexygen.com/oldforum/img/members/129/OwsDrv_Aliases.zip" rel="nofollow">OwsDrv_Aliases.zip</a></p><p><a href="https://github.com/Thegizmo82/REXYGENexamples-Gizmo" rel="nofollow">https://github.com/Thegizmo82/REXYGENexamples-Gizmo</a></p><p>I hope this helps others.</p>]]></content>
		<author>
			<name><![CDATA[gizmo]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=129</uri>
		</author>
		<updated>2018-09-25T00:38:30Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2065#p2065</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: OwsDrv module - Sensor/Actuator Path]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2062#p2062"/>
		<content type="html"><![CDATA[<p>I have successfully tested this and found that this is the key to what I am needed. I have also tried adding multi pointers in the <strong>/etc/owfs.conf</strong> configuration file: The goal for this is to be able to use the SILOS function to edit the <strong>/etc/ow-alias</strong> from an symbolic link inside of the <strong>/rex/data/</strong> directory for each individual sensor. This should then allow to be able to edit sensor data from HMI.</p><p>Steps I am going to try.<br />Edit <strong>/etc/owfs.conf</strong>:</p><div class="codebox"><pre><code> sudo nano /etc/owfs.conf</code></pre></div><p>Add lines to owfs.conf and save:</p><div class="codebox"><pre><code>alias = /etc/ow-ts1
alias = /etc/ow-ts2
alias = /etc/ow-ds1</code></pre></div><p>Create file <strong>ow-ts1</strong> with single alias definition:</p><div class="codebox"><pre><code>sudo nano /etc/ow-ts1</code></pre></div><p>Put the following content in and save:</p><div class="codebox"><pre><code>/28.FFD7816C1403 = ts1</code></pre></div><p>Create file <strong>ow-ts2</strong>with single alias definition:</p><div class="codebox"><pre><code>sudo nano /etc/ow-ts2</code></pre></div><p>Put the following content in and save:</p><div class="codebox"><pre><code>/10.67C6697351FF = ts2</code></pre></div><p>Create file <strong>ow-di1</strong>with single alias definition:</p><div class="codebox"><pre><code>sudo nano /etc/ow-ds1</code></pre></div><p>Put the following content in and save:</p><div class="codebox"><pre><code>/05.4AEC29CDBAAB = ds1</code></pre></div><p><strong>Restart owserver:</strong></p><div class="codebox"><pre><code>sudo service owserver restart</code></pre></div><p>Check results with <strong>owdir</strong> command.</p><div class="codebox"><pre><code>owdir</code></pre></div><p>Results should look very similar to the following:</p><div class="codebox"><pre><code>pi@BETA:~ $ owdir
/ts2
/ds1
/ts1
/bus.2
/bus.1
/bus.0
/uncached
/settings
/system
/statistics
/structure
/simultaneous
/alarm
pi@BETA:~ $</code></pre></div><p>You should now be able to use, <strong>/ts1/temperature12</strong>,<strong>/ts2/temperature</strong>,<strong>/ds1/sensed</strong>, in the OwsDrv driver configuration.</p><p>Create SymLink in <strong>/rex/data/owfs</strong>:<br />First create the <strong>/rex/data/owfs</strong> directory:</p><div class="codebox"><pre><code> sudo mkdir /rex/data/owfs</code></pre></div><p>Next create the Symlink for the three alias files:</p><div class="codebox"><pre><code>sudo ln -s /etc/ow-ts1 /rex/data/owfs/ow-ts1
sudo ln -s /etc/ow-ts1 /rex/data/owfs/ow-ts1
sudo ln -s /etc/ow-ts1 /rex/data/owfs/ow-ts1</code></pre></div><p>List information about the files in the <strong>/rex/data/owfs</strong> folder:</p><div class="codebox"><pre><code>ls /rex/data/owfs</code></pre></div><p>Results should look exactly to the following providing you used the same file names in this example:</p><div class="codebox"><pre><code>pi@BETA:/ $ ls /rex/data/owfs
ow-ds1  ow-ts1  ow-ts2</code></pre></div><p>Hear is a screenshot of my working example.<br /><span class="postimg"><img src="https://www.rexygen.com/oldforum/img/members/129/OwsDrv_Aliases.png" alt="OwsDrv_Aliases.png" /></span></p>]]></content>
		<author>
			<name><![CDATA[gizmo]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=129</uri>
		</author>
		<updated>2018-09-24T12:42:44Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2062#p2062</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: OwsDrv module - Sensor/Actuator Path]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2061#p2061"/>
		<content type="html"><![CDATA[<p>Hi Gizmo,<br />great question, nice solution ;-) Thanks!</p><p>Kind regards,<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2018-09-24T10:39:27Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2061#p2061</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: OwsDrv module - Sensor/Actuator Path]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2057#p2057"/>
		<content type="html"><![CDATA[<p>Wow please forgive me, I found the solution,&#160; </p><p>I thought I searched all topics but I have missed this one a few times. I did not think to look in the (version 2.10.x) forums. </p><p><a href="https://www.rexygen.com/oldforum/viewtopic.php?id=45" rel="nofollow">https://www.rexygen.com/oldforum/viewtopic.php?id=45</a></p><div class="quotebox"><cite>jaroslav_sobota wrote:</cite><blockquote><div><p>The aliases you ask for are supported by the OWFS package (namely the owserver), which the 1-Wire driver relies on. Please add the following line to your <strong>/etc/owfs.conf</strong>:</p><div class="codebox"><pre><code>alias = /etc/ow-alias</code></pre></div><p>Now create the file with aliases definition:</p><div class="codebox"><pre><code>sudo nano /etc/ow-alias</code></pre></div><p>And put the following content in:</p><div class="codebox"><pre><code>/28.063BC8040000 = sensor1
/28.1FBFBC020000 = sensor2</code></pre></div><p>Save the file and restart owserver:</p><div class="codebox"><pre><code>sudo service owserver restart</code></pre></div><p>Now run <strong>owdir</strong> and you should see your aliases. Also you can use</p><div class="codebox"><pre><code>owread /sensor1/temperature12</code></pre></div><p>to read the temperature.</p><p>Immediately you can use /sensor1/temperature12 in the OwsDrv driver configuration and therefore you achieved what you were asking for. Except the XML format which we can&#039;t do anything about because OWFS is not our product. Hope this helps!</p></div></blockquote></div>]]></content>
		<author>
			<name><![CDATA[gizmo]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=129</uri>
		</author>
		<updated>2018-09-24T01:56:24Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2057#p2057</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[OwsDrv module - Sensor/Actuator Path]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2056#p2056"/>
		<content type="html"><![CDATA[<p>I am planning on converting over from DHT sensors with DHT_Addafruit python scripts to One-Wire Sensors. For my project this would make a lot of sense for me because depending on the size of the build the count of sensors could change. </p><p>The grand scheme of this project is to have everything parameter based so that the actual rex algorithms need not to be changed.&#160; Before putting the OwsDrv in effect and alpha testing, I assumed that the configuration could be made external while online. This does not seem to be the case with how the driver works that I know of. My next thought was to use alias names added to the sensor on the OWFS server then use this alias for the OwsDrv, this way if I replace a sensor I could just use the OWFS_HTTP server to add alias to new sensor. This failed to workout as well so I am stumped at the moment. </p><br /><p>My main goal of this is to be able to replace sensors without having to use rexygen studio. </p><p>Am I missing something hear or just not seeing the obvious? </p><p>Anyone have any thoughts or ideas? </p><p>I am also thinking that maybe I can create a FAKE Sensor/Actuator on the OWFS side and symbolically mirror the real sensor to the fake that is dedicated to the OwsDrv.</p><br /><p>Thanks,</p>]]></content>
		<author>
			<name><![CDATA[gizmo]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=129</uri>
		</author>
		<updated>2018-09-24T01:47:57Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2056#p2056</id>
	</entry>
</feed>
