<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — Using RemoteXY on Node-Red to control RPi (or anything with MQTT)]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=1340</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1340&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Using RemoteXY on Node-Red to control RPi (or anything with MQTT).]]></description>
		<lastBuildDate>Tue, 29 Jun 2021 17:43:58 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Using RemoteXY on Node-Red to control RPi (or anything with MQTT)]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=4078#p4078</link>
			<description><![CDATA[<p>And I updated everything to allow for full feedback (must use button, not switch - see below) when other MQTT clients are also interacting with the same subscriptions.</p><p>The older Node-Red contrib was made back when RemoteXY didn&#039;t allow bidirectional data flow with the elements (AKA a switch was output only, no way to tell the switch to toggle possition from code).</p><p>RemoteXY advanced, the older Node-Red contrib didn&#039;t.</p><p>But I found&nbsp; way to use other Node-Red nodes to allow a button to act as a switch - with visual feedback in form of a nested LED.&nbsp; Now the button looks like an edge lit button.</p><p><span class="postimg"><img src="https://www.dropbox.com/s/ovj8p1ipxac6mxv/Edge%20lit%20buttons%20that%20toggle.png?dl=1" alt="https://www.dropbox.com/s/ovj8p1ipxac6mxv/Edge%20lit%20buttons%20that%20toggle.png?dl=1" /></span></p><p>And the Node-Red Flow that makes it work</p><p><span class="postimg"><img src="https://www.dropbox.com/s/inpdggfke9epv8z/Node-Red%20RXY%20Button%20Toggle.PNG?dl=1" alt="https://www.dropbox.com/s/inpdggfke9epv8z/Node-Red%20RXY%20Button%20Toggle.PNG?dl=1" /></span></p><div class="codebox"><pre><code>[{&quot;id&quot;:&quot;78ffec39.ca2794&quot;,&quot;type&quot;:&quot;tab&quot;,&quot;label&quot;:&quot;RemoteXY&quot;,&quot;disabled&quot;:false,&quot;info&quot;:&quot;&quot;},{&quot;id&quot;:&quot;4d16de8b.8ee21&quot;,&quot;type&quot;:&quot;remote-xy out&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;text_1&quot;,&quot;dashboard&quot;:&quot;ea8a0fa4.cc86c&quot;,&quot;index&quot;:&quot;0&quot;,&quot;x&quot;:490,&quot;y&quot;:420,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;47bca140.c4c36&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;&quot;,&quot;props&quot;:[{&quot;p&quot;:&quot;payload&quot;},{&quot;p&quot;:&quot;topic&quot;,&quot;vt&quot;:&quot;str&quot;}],&quot;repeat&quot;:&quot;1&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:true,&quot;onceDelay&quot;:0.1,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;&quot;,&quot;payloadType&quot;:&quot;date&quot;,&quot;x&quot;:120,&quot;y&quot;:420,&quot;wires&quot;:[[&quot;2072c169.731fde&quot;]]},{&quot;id&quot;:&quot;2072c169.731fde&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;To Time &amp; Date&quot;,&quot;func&quot;:&quot;var now = new Date().toLocaleString(\&quot;en-US\&quot;);\nnow = now.replace(&#039;M&#039;,&#039;MM&#039;)\nreturn {payload: now};&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[],&quot;x&quot;:300,&quot;y&quot;:420,&quot;wires&quot;:[[&quot;4d16de8b.8ee21&quot;]]},{&quot;id&quot;:&quot;d708fade.24d7b8&quot;,&quot;type&quot;:&quot;remote-xy out&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;led_1_g&quot;,&quot;dashboard&quot;:&quot;ea8a0fa4.cc86c&quot;,&quot;index&quot;:&quot;2&quot;,&quot;x&quot;:620,&quot;y&quot;:120,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;dc020e44.8f118&quot;,&quot;type&quot;:&quot;remote-xy in&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;button_1&quot;,&quot;dashboard&quot;:&quot;ea8a0fa4.cc86c&quot;,&quot;index&quot;:&quot;0&quot;,&quot;x&quot;:80,&quot;y&quot;:80,&quot;wires&quot;:[[&quot;57c4e908.2b1d28&quot;]]},{&quot;id&quot;:&quot;ee03c9d3.26d418&quot;,&quot;type&quot;:&quot;range&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;minin&quot;:&quot;0&quot;,&quot;maxin&quot;:&quot;1&quot;,&quot;minout&quot;:&quot;0&quot;,&quot;maxout&quot;:&quot;127&quot;,&quot;action&quot;:&quot;scale&quot;,&quot;round&quot;:false,&quot;property&quot;:&quot;payload&quot;,&quot;name&quot;:&quot;&quot;,&quot;x&quot;:480,&quot;y&quot;:120,&quot;wires&quot;:[[&quot;d708fade.24d7b8&quot;]]},{&quot;id&quot;:&quot;30cd4e5c.d331b2&quot;,&quot;type&quot;:&quot;range&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;minin&quot;:&quot;1&quot;,&quot;maxin&quot;:&quot;0&quot;,&quot;minout&quot;:&quot;0&quot;,&quot;maxout&quot;:&quot;127&quot;,&quot;action&quot;:&quot;scale&quot;,&quot;round&quot;:false,&quot;property&quot;:&quot;payload&quot;,&quot;name&quot;:&quot;&quot;,&quot;x&quot;:480,&quot;y&quot;:160,&quot;wires&quot;:[[&quot;5d8c58dc.0f0498&quot;]]},{&quot;id&quot;:&quot;5d8c58dc.0f0498&quot;,&quot;type&quot;:&quot;remote-xy out&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;led_1_r&quot;,&quot;dashboard&quot;:&quot;ea8a0fa4.cc86c&quot;,&quot;index&quot;:&quot;1&quot;,&quot;x&quot;:620,&quot;y&quot;:160,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;f19dcce0.01774&quot;,&quot;type&quot;:&quot;mqtt in&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;&quot;,&quot;topic&quot;:&quot;test/led&quot;,&quot;qos&quot;:&quot;0&quot;,&quot;datatype&quot;:&quot;auto&quot;,&quot;broker&quot;:&quot;236d220c.514f8e&quot;,&quot;nl&quot;:false,&quot;rap&quot;:true,&quot;rh&quot;:0,&quot;x&quot;:70,&quot;y&quot;:120,&quot;wires&quot;:[[&quot;ee03c9d3.26d418&quot;,&quot;30cd4e5c.d331b2&quot;,&quot;96c639b6.76ba98&quot;]]},{&quot;id&quot;:&quot;d2b810fd.d809d&quot;,&quot;type&quot;:&quot;remote-xy out&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;led_2_g&quot;,&quot;dashboard&quot;:&quot;ea8a0fa4.cc86c&quot;,&quot;index&quot;:&quot;4&quot;,&quot;x&quot;:620,&quot;y&quot;:300,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;3c7aeb5b.0e7194&quot;,&quot;type&quot;:&quot;remote-xy in&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;button_2&quot;,&quot;dashboard&quot;:&quot;ea8a0fa4.cc86c&quot;,&quot;index&quot;:&quot;1&quot;,&quot;x&quot;:80,&quot;y&quot;:260,&quot;wires&quot;:[[&quot;cee1471.6aaacb8&quot;]]},{&quot;id&quot;:&quot;53ccf57a.c9266c&quot;,&quot;type&quot;:&quot;range&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;minin&quot;:&quot;0&quot;,&quot;maxin&quot;:&quot;1&quot;,&quot;minout&quot;:&quot;0&quot;,&quot;maxout&quot;:&quot;127&quot;,&quot;action&quot;:&quot;scale&quot;,&quot;round&quot;:false,&quot;property&quot;:&quot;payload&quot;,&quot;name&quot;:&quot;&quot;,&quot;x&quot;:480,&quot;y&quot;:300,&quot;wires&quot;:[[&quot;d2b810fd.d809d&quot;]]},{&quot;id&quot;:&quot;c35bc35a.1879a&quot;,&quot;type&quot;:&quot;range&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;minin&quot;:&quot;1&quot;,&quot;maxin&quot;:&quot;0&quot;,&quot;minout&quot;:&quot;0&quot;,&quot;maxout&quot;:&quot;127&quot;,&quot;action&quot;:&quot;scale&quot;,&quot;round&quot;:false,&quot;property&quot;:&quot;payload&quot;,&quot;name&quot;:&quot;&quot;,&quot;x&quot;:480,&quot;y&quot;:340,&quot;wires&quot;:[[&quot;1e65c31e.c714bd&quot;]]},{&quot;id&quot;:&quot;1e65c31e.c714bd&quot;,&quot;type&quot;:&quot;remote-xy out&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;led_2_r&quot;,&quot;dashboard&quot;:&quot;ea8a0fa4.cc86c&quot;,&quot;index&quot;:&quot;3&quot;,&quot;x&quot;:620,&quot;y&quot;:340,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;e92eb668.3882a8&quot;,&quot;type&quot;:&quot;mqtt in&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;&quot;,&quot;topic&quot;:&quot;test/relay&quot;,&quot;qos&quot;:&quot;0&quot;,&quot;datatype&quot;:&quot;auto&quot;,&quot;broker&quot;:&quot;236d220c.514f8e&quot;,&quot;nl&quot;:false,&quot;rap&quot;:true,&quot;rh&quot;:0,&quot;x&quot;:80,&quot;y&quot;:300,&quot;wires&quot;:[[&quot;53ccf57a.c9266c&quot;,&quot;c35bc35a.1879a&quot;]]},{&quot;id&quot;:&quot;39e9d2a2.82ffbe&quot;,&quot;type&quot;:&quot;mqtt out&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;&quot;,&quot;topic&quot;:&quot;test/led&quot;,&quot;qos&quot;:&quot;0&quot;,&quot;retain&quot;:&quot;&quot;,&quot;respTopic&quot;:&quot;&quot;,&quot;contentType&quot;:&quot;&quot;,&quot;userProps&quot;:&quot;&quot;,&quot;correl&quot;:&quot;&quot;,&quot;expiry&quot;:&quot;&quot;,&quot;broker&quot;:&quot;236d220c.514f8e&quot;,&quot;x&quot;:540,&quot;y&quot;:80,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;2aacdf94.d0f7a&quot;,&quot;type&quot;:&quot;mqtt out&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;&quot;,&quot;topic&quot;:&quot;test/relay&quot;,&quot;qos&quot;:&quot;0&quot;,&quot;retain&quot;:&quot;&quot;,&quot;respTopic&quot;:&quot;&quot;,&quot;contentType&quot;:&quot;&quot;,&quot;userProps&quot;:&quot;&quot;,&quot;correl&quot;:&quot;&quot;,&quot;expiry&quot;:&quot;&quot;,&quot;broker&quot;:&quot;236d220c.514f8e&quot;,&quot;x&quot;:540,&quot;y&quot;:260,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;96c639b6.76ba98&quot;,&quot;type&quot;:&quot;rpi-gpio out&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;&quot;,&quot;pin&quot;:&quot;12&quot;,&quot;set&quot;:true,&quot;level&quot;:&quot;0&quot;,&quot;freq&quot;:&quot;&quot;,&quot;out&quot;:&quot;out&quot;,&quot;x&quot;:220,&quot;y&quot;:160,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;d9c64d70.401e88&quot;,&quot;type&quot;:&quot;toggle&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;&quot;,&quot;onOffTopic&quot;:&quot;&quot;,&quot;onValue&quot;:&quot;1&quot;,&quot;onType&quot;:&quot;str&quot;,&quot;offValue&quot;:&quot;0&quot;,&quot;offType&quot;:&quot;str&quot;,&quot;toggleTopic&quot;:&quot;&quot;,&quot;toggleValue&quot;:&quot;&quot;,&quot;toggleType&quot;:&quot;any&quot;,&quot;passOnOff&quot;:&quot;always&quot;,&quot;x&quot;:350,&quot;y&quot;:80,&quot;wires&quot;:[[&quot;39e9d2a2.82ffbe&quot;,&quot;ee03c9d3.26d418&quot;,&quot;30cd4e5c.d331b2&quot;]]},{&quot;id&quot;:&quot;57c4e908.2b1d28&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;&quot;,&quot;func&quot;:&quot;if (msg.payload == 1){\n    msg.payload = \&quot;-\&quot;\n    return msg;\n}\n&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[],&quot;x&quot;:220,&quot;y&quot;:80,&quot;wires&quot;:[[&quot;d9c64d70.401e88&quot;]]},{&quot;id&quot;:&quot;cee1471.6aaacb8&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;&quot;,&quot;func&quot;:&quot;if (msg.payload == 1){\n    msg.payload = \&quot;-\&quot;\n    return msg;\n}\n&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[],&quot;x&quot;:220,&quot;y&quot;:260,&quot;wires&quot;:[[&quot;41c46b50.e4fe74&quot;]]},{&quot;id&quot;:&quot;41c46b50.e4fe74&quot;,&quot;type&quot;:&quot;toggle&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;&quot;,&quot;onOffTopic&quot;:&quot;&quot;,&quot;onValue&quot;:&quot;1&quot;,&quot;onType&quot;:&quot;str&quot;,&quot;offValue&quot;:&quot;0&quot;,&quot;offType&quot;:&quot;str&quot;,&quot;toggleTopic&quot;:&quot;&quot;,&quot;toggleValue&quot;:&quot;&quot;,&quot;toggleType&quot;:&quot;any&quot;,&quot;passOnOff&quot;:&quot;always&quot;,&quot;x&quot;:350,&quot;y&quot;:260,&quot;wires&quot;:[[&quot;2aacdf94.d0f7a&quot;,&quot;53ccf57a.c9266c&quot;,&quot;c35bc35a.1879a&quot;]]},{&quot;id&quot;:&quot;ea8a0fa4.cc86c&quot;,&quot;type&quot;:&quot;remote-xy-dashboard&quot;,&quot;name&quot;:&quot;RemoteXY&quot;,&quot;port&quot;:&quot;6377&quot;,&quot;config&quot;:&quot;//////////////////////////////////////////////\n//        RemoteXY include library          //\n//////////////////////////////////////////////\n\n// RemoteXY select connection mode and include library \n#define REMOTEXY_MODE__ESP8266WIFI_LIB\n#include &lt;ESP8266WiFi.h&gt;\n\n#include &lt;RemoteXY.h&gt;\n\n// RemoteXY connection settings \n#define REMOTEXY_WIFI_SSID \&quot;YOUR_SSID\&quot;\n#define REMOTEXY_WIFI_PASSWORD \&quot;YOUR_PASS\&quot;\n#define REMOTEXY_SERVER_PORT 6377\n\n\n// RemoteXY configurate  \n#pragma pack(push, 1)\nuint8_t RemoteXY_CONF[] =\n  { 255,2,0,30,0,152,0,11,27,1,\n  67,5,9,18,46,5,16,26,26,129,\n  0,16,11,18,6,8,68,97,116,101,\n  32,38,32,84,105,109,101,0,129,0,\n  10,29,44,6,8,76,69,68,32,111,\n  110,32,71,80,73,79,49,56,0,129,\n  0,8,59,48,6,8,82,101,108,97,\n  121,32,111,110,32,87,101,109,111,115,\n  0,129,0,7,92,49,6,8,77,81,\n  84,84,32,102,111,114,32,116,104,101,\n  32,119,105,110,0,129,0,8,92,49,\n  6,95,77,81,84,84,32,102,111,114,\n  32,116,104,101,32,119,105,110,0,65,\n  22,24,36,16,16,1,0,26,38,12,\n  12,29,31,0,65,22,24,66,16,16,\n  1,0,26,68,12,12,29,31,0 };\n  \n// this structure defines all the variables and events of your control interface \nstruct {\n\n    // input variables\n  uint8_t button_1; // =1 if button pressed, else =0 \n  uint8_t button_2; // =1 if button pressed, else =0 \n\n    // output variables\n  char text_1[26];  // string UTF8 end zero \n  uint8_t led_1_r; // =0..255 LED Red brightness \n  uint8_t led_1_g; // =0..255 LED Green brightness \n  uint8_t led_2_r; // =0..255 LED Red brightness \n  uint8_t led_2_g; // =0..255 LED Green brightness \n\n    // other variable\n  uint8_t connect_flag;  // =1 if wire connected, else =0 \n\n} RemoteXY;\n#pragma pack(pop)\n\n/////////////////////////////////////////////\n//           END RemoteXY include          //\n/////////////////////////////////////////////&quot;},{&quot;id&quot;:&quot;236d220c.514f8e&quot;,&quot;type&quot;:&quot;mqtt-broker&quot;,&quot;name&quot;:&quot;RPi Mosquitto broker&quot;,&quot;broker&quot;:&quot;10.10.3.13&quot;,&quot;port&quot;:&quot;1883&quot;,&quot;clientid&quot;:&quot;&quot;,&quot;usetls&quot;:false,&quot;protocolVersion&quot;:&quot;4&quot;,&quot;keepalive&quot;:&quot;60&quot;,&quot;cleansession&quot;:true,&quot;birthTopic&quot;:&quot;&quot;,&quot;birthQos&quot;:&quot;0&quot;,&quot;birthPayload&quot;:&quot;&quot;,&quot;birthMsg&quot;:{},&quot;closeTopic&quot;:&quot;&quot;,&quot;closeQos&quot;:&quot;0&quot;,&quot;closePayload&quot;:&quot;&quot;,&quot;closeMsg&quot;:{},&quot;willTopic&quot;:&quot;&quot;,&quot;willQos&quot;:&quot;0&quot;,&quot;willPayload&quot;:&quot;&quot;,&quot;willMsg&quot;:{},&quot;sessionExpiry&quot;:&quot;&quot;}]</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Gunner)]]></author>
			<pubDate>Tue, 29 Jun 2021 17:43:58 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=4078#p4078</guid>
		</item>
		<item>
			<title><![CDATA[Using RemoteXY on Node-Red to control RPi (or anything with MQTT)]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=4077#p4077</link>
			<description><![CDATA[<p>I have just started using Node-Red, and of course that means I want to integrate all the things <img src="https://forum.remotexy.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>I had thought of ways of using an ESP and custom code to somehow interface between RemoteXY and MQTT... but in the process I came across this older Node-Red contrib</p><p><a target="_blank" href="https://github.com/DeanCording/node-red-contrib-remote-xy">https://github.com/DeanCording/node-red … -remote-xy</a></p><p>And used it to make a simple test, reading a timestamp from Node-Red and toggling an LED on the RPi</p><p><span class="postimg"><img src="https://www.dropbox.com/s/hdr3bb4r0831fjd/RXY%20-%20RPi%20and%20Node-Red.png?dl=1" alt="https://www.dropbox.com/s/hdr3bb4r0831fjd/RXY%20-%20RPi%20and%20Node-Red.png?dl=1" /></span></p><p>And here is the Flow JSON for any NR users...<br /></p><div class="codebox"><pre><code>[{&quot;id&quot;:&quot;78ffec39.ca2794&quot;,&quot;type&quot;:&quot;tab&quot;,&quot;label&quot;:&quot;RemoteXY&quot;,&quot;disabled&quot;:false,&quot;info&quot;:&quot;&quot;},{&quot;id&quot;:&quot;7084caed.f69234&quot;,&quot;type&quot;:&quot;remote-xy in&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;switch_1&quot;,&quot;dashboard&quot;:&quot;e02397d0.856d38&quot;,&quot;index&quot;:&quot;0&quot;,&quot;x&quot;:120,&quot;y&quot;:120,&quot;wires&quot;:[[&quot;4128ffc6.27135&quot;]]},{&quot;id&quot;:&quot;4d16de8b.8ee21&quot;,&quot;type&quot;:&quot;remote-xy out&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;text_1&quot;,&quot;dashboard&quot;:&quot;e02397d0.856d38&quot;,&quot;index&quot;:&quot;0&quot;,&quot;x&quot;:490,&quot;y&quot;:200,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;47bca140.c4c36&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;&quot;,&quot;props&quot;:[{&quot;p&quot;:&quot;payload&quot;},{&quot;p&quot;:&quot;topic&quot;,&quot;vt&quot;:&quot;str&quot;}],&quot;repeat&quot;:&quot;1&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:true,&quot;onceDelay&quot;:0.1,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;&quot;,&quot;payloadType&quot;:&quot;date&quot;,&quot;x&quot;:140,&quot;y&quot;:200,&quot;wires&quot;:[[&quot;2072c169.731fde&quot;]]},{&quot;id&quot;:&quot;4128ffc6.27135&quot;,&quot;type&quot;:&quot;rpi-gpio out&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;&quot;,&quot;pin&quot;:&quot;12&quot;,&quot;set&quot;:true,&quot;level&quot;:&quot;0&quot;,&quot;freq&quot;:&quot;&quot;,&quot;out&quot;:&quot;out&quot;,&quot;x&quot;:300,&quot;y&quot;:120,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;2072c169.731fde&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;To Time &amp; Date&quot;,&quot;func&quot;:&quot;var now = new Date().toLocaleString(\&quot;en-US\&quot;);\nnow = now.replace(&#039;M&#039;,&#039;MM&#039;)\nreturn {payload: now};&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[],&quot;x&quot;:320,&quot;y&quot;:200,&quot;wires&quot;:[[&quot;4d16de8b.8ee21&quot;,&quot;1863d0f1.c9b0af&quot;]]},{&quot;id&quot;:&quot;1863d0f1.c9b0af&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;&quot;,&quot;active&quot;:true,&quot;tosidebar&quot;:true,&quot;console&quot;:false,&quot;tostatus&quot;:false,&quot;complete&quot;:&quot;false&quot;,&quot;statusVal&quot;:&quot;&quot;,&quot;statusType&quot;:&quot;auto&quot;,&quot;x&quot;:520,&quot;y&quot;:260,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;e02397d0.856d38&quot;,&quot;type&quot;:&quot;remote-xy-dashboard&quot;,&quot;z&quot;:&quot;78ffec39.ca2794&quot;,&quot;name&quot;:&quot;RXY Test&quot;,&quot;port&quot;:&quot;6377&quot;,&quot;config&quot;:&quot;//////////////////////////////////////////////\n//        RemoteXY include library          //\n//////////////////////////////////////////////\n\n// RemoteXY select connection mode and include library \n#define REMOTEXY_MODE__ESP8266WIFI_LIB\n#include &lt;ESP8266WiFi.h&gt;\n\n#include &lt;RemoteXY.h&gt;\n\n// RemoteXY connection settings \n#define REMOTEXY_WIFI_SSID \&quot;YOUR_SSID\&quot;\n#define REMOTEXY_WIFI_PASSWORD \&quot;YOUR_PASS\&quot;\n#define REMOTEXY_SERVER_PORT 6377\n\n\n// RemoteXY configurate  \n#pragma pack(push, 1)\nuint8_t RemoteXY_CONF[] =\n  { 255,1,0,26,0,69,0,11,13,0,\n  67,5,23,18,52,5,2,26,26,2,\n  0,39,34,22,11,2,26,31,31,79,\n  78,0,79,70,70,0,129,0,32,11,\n  35,6,8,68,97,116,101,32,38,32,\n  84,105,109,101,0,129,0,28,27,45,\n  6,8,76,69,68,32,111,110,32,71,\n  80,73,79,49,56,0 };\n  \n// this structure defines all the variables and events of your control interface \nstruct {\n\n    // input variables\n  uint8_t switch_1; // =1 if switch ON and =0 if OFF \n\n    // output variables\n  char text_1[26];  // string UTF8 end zero \n\n    // other variable\n  uint8_t connect_flag;  // =1 if wire connected, else =0 \n\n} RemoteXY;\n#pragma pack(pop)\n\n/////////////////////////////////////////////\n//           END RemoteXY include          //\n/////////////////////////////////////////////\n&quot;}]</code></pre></div><br /><p>It works quite well so far... I will explore this more, as I like the idea of controlling an RPi via RemoteXY</p>]]></description>
			<author><![CDATA[null@example.com (Gunner)]]></author>
			<pubDate>Sat, 26 Jun 2021 19:04:18 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=4077#p4077</guid>
		</item>
	</channel>
</rss>
