<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[LCD Node - display temp from other sensor - How?]]></title><description><![CDATA[<p dir="auto">Please provide example<br />
Thank you</p>
]]></description><link>https://forum.mysensors.org/topic/7042/lcd-node-display-temp-from-other-sensor-how</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 10:42:40 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/7042.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Jun 2017 17:47:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to LCD Node - display temp from other sensor - How? on Wed, 21 Jun 2017 22:09:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cadet" aria-label="Profile: cadet">@<bdi>cadet</bdi></a> You can send on the fly if you like, the message bellow is for a binary switch but the format is the same.<br />
You would need to use V_TEMP instead of V_STATUS and put the temp in the .set at the end</p>
<p dir="auto"><img src="/assets/uploads/files/1498081914122-node-resized.jpeg" alt="0_1498081911873_node.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">To receive, using your code as an example</p>
<pre><code>void receive(const MyMessage &amp;message) {
  
  if (message.type == V_TEMP) {
    temper = message.getFloat();
    //put code here to be executed when the return from the request arrives 
    Serial.print(temper);
    lcd.setCursor(2, 3); 
    lcd.print(temper);  
   }
 }
</code></pre>
<p dir="auto">And temper would need to be declared as a float of course.</p>
]]></description><link>https://forum.mysensors.org/post/69655</link><guid isPermaLink="true">https://forum.mysensors.org/post/69655</guid><dc:creator><![CDATA[Boots33]]></dc:creator><pubDate>Wed, 21 Jun 2017 22:09:49 GMT</pubDate></item><item><title><![CDATA[Reply to LCD Node - display temp from other sensor - How? on Wed, 21 Jun 2017 16:22:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cadet" aria-label="Profile: cadet">@<bdi>cadet</bdi></a></p>
<p dir="auto">11 node recv<br />
TSF:MSG:READ,5-5-11,s=0,c=1,t=0,pt=7,l=5,sg=0:26.0</p>
]]></description><link>https://forum.mysensors.org/post/69636</link><guid isPermaLink="true">https://forum.mysensors.org/post/69636</guid><dc:creator><![CDATA[cadet]]></dc:creator><pubDate>Wed, 21 Jun 2017 16:22:26 GMT</pubDate></item><item><title><![CDATA[Reply to LCD Node - display temp from other sensor - How? on Wed, 21 Jun 2017 16:11:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cadet" aria-label="Profile: cadet">@<bdi>cadet</bdi></a><br />
Now node 5 send<br />
TSF:MSG:SEND,5-5-11-11,s=0,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:26.0<br />
to node 11<br />
Correct ?<br />
this is code from node 5<br />
send(msg.setSensor(0).set(temperature, 1));  // to controller<br />
send(msg.setSensor(0).set(temperature, 1).setDestination(11)); // to 11 node</p>
]]></description><link>https://forum.mysensors.org/post/69635</link><guid isPermaLink="true">https://forum.mysensors.org/post/69635</guid><dc:creator><![CDATA[cadet]]></dc:creator><pubDate>Wed, 21 Jun 2017 16:11:09 GMT</pubDate></item><item><title><![CDATA[Reply to LCD Node - display temp from other sensor - How? on Wed, 21 Jun 2017 15:38:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/boots33" aria-label="Profile: Boots33">@<bdi>Boots33</bdi></a><br />
Thanks<br />
And how to send v_temp message ? To 11 node<br />
)</p>
<p dir="auto">Is this correct for receive section and display ?</p>
<pre><code>void receive(const MyMessage &amp;message) {
  
  if (message.type == V_TEMP) {
    temper = V_TEMP;
    //put code here to be executed when the return from the request arrives 
    Serial.print(temper);
    lcd.setCursor(2, 3); 
    lcd.print(temper);  
   }
 }```</code></pre>
]]></description><link>https://forum.mysensors.org/post/69634</link><guid isPermaLink="true">https://forum.mysensors.org/post/69634</guid><dc:creator><![CDATA[cadet]]></dc:creator><pubDate>Wed, 21 Jun 2017 15:38:20 GMT</pubDate></item><item><title><![CDATA[Reply to LCD Node - display temp from other sensor - How? on Wed, 21 Jun 2017 10:31:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cadet" aria-label="Profile: cadet">@<bdi>cadet</bdi></a></p>
<p dir="auto">It will depend on what other messages you are expecting to receive. If this is the only temperature message you are expecting then something as simple as...</p>
<pre><code>void receive(const MyMessage &amp;message) {
  
 if (message.type == V_TEMP) {

    //put code here to be executed when the new temperature arrives  
 
   }
 }
</code></pre>
<p dir="auto">The message you have in your post is not a V_TEMP  type though, it is of type V_VAR4</p>
]]></description><link>https://forum.mysensors.org/post/69607</link><guid isPermaLink="true">https://forum.mysensors.org/post/69607</guid><dc:creator><![CDATA[Boots33]]></dc:creator><pubDate>Wed, 21 Jun 2017 10:31:48 GMT</pubDate></item><item><title><![CDATA[Reply to LCD Node - display temp from other sensor - How? on Wed, 21 Jun 2017 04:31:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/boots33" aria-label="Profile: Boots33">@<bdi>Boots33</bdi></a><br />
Thank you for answer<br />
But I need some help.</p>
<p dir="auto">node 5 send temp<br />
node 11 recv<br />
TSF:MSG:READ,5-5-11,s=0,c=1,t=27,pt=1,l=1,sg=0:1<br />
What I need write in void receive section ?</p>
<p dir="auto">Andrey</p>
]]></description><link>https://forum.mysensors.org/post/69581</link><guid isPermaLink="true">https://forum.mysensors.org/post/69581</guid><dc:creator><![CDATA[cadet]]></dc:creator><pubDate>Wed, 21 Jun 2017 04:31:39 GMT</pubDate></item><item><title><![CDATA[Reply to LCD Node - display temp from other sensor - How? on Tue, 20 Jun 2017 23:05:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cadet" aria-label="Profile: cadet">@<bdi>cadet</bdi></a> Two ways I can think of</p>
<ol>
<li>
<p dir="auto">you can push the data from the other temp sensor node using a direct node to node message.</p>
</li>
<li>
<p dir="auto">You can have your lcd node request the temperature directly from the remote temp node.</p>
</li>
</ol>
<p dir="auto">The format of both can be seen on the <a href="https://www.mysensors.org/download/sensor_api_20" rel="nofollow ugc">API Page</a></p>
<p dir="auto">You can see some examples of <strong>Request</strong>  <a href="https://forum.mysensors.org/topic/6422/display-node-how-to-set-up/20">Here</a></p>
<p dir="auto">I have not sent node to node temp readings before but have used it for binary switch nodes, the format will be the same though. have a look at these projects</p>
<p dir="auto"><a href="https://forum.mysensors.org/topic/4510/ac-power-controller-with-node-to-node-remotes">AC Power controller with node to node remotes</a></p>
<p dir="auto"><a href="https://forum.mysensors.org/topic/6542/outdoors-touch-switch-light-controller">Outdoors Touch Switch light controller</a></p>
<p dir="auto"><a href="https://forum.mysensors.org/topic/6948/synchronising-light-switch">Synchronising Light switch</a></p>
]]></description><link>https://forum.mysensors.org/post/69574</link><guid isPermaLink="true">https://forum.mysensors.org/post/69574</guid><dc:creator><![CDATA[Boots33]]></dc:creator><pubDate>Tue, 20 Jun 2017 23:05:27 GMT</pubDate></item></channel></rss>