<?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[command that returns the date and time and the day of the week]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/4">@kl3m3n</a>, I hope you're well.</p>
<p dir="auto">As I'm using GPRS and need to save data, I didn't want to have to access NTP servers to set the local RTC.</p>
<p dir="auto">As you have already done with the "ping" command, is it possible to create a command that returns the date and time and the day of the week, such as: 2025-07-03 5</p>
<p dir="auto">Thanks<br />
Best regards</p>
]]></description><link>https://forum.gui-o.com/topic/264/command-that-returns-the-date-and-time-and-the-day-of-the-week</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 07:35:50 GMT</lastBuildDate><atom:link href="https://forum.gui-o.com/topic/264.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 Jul 2025 23:29:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to command that returns the date and time and the day of the week on Tue, 15 Jul 2025 10:24:33 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/4">@kl3m3n</a>,</p>
<p dir="auto">I understand, thank you</p>
<p dir="auto">Best regards</p>
]]></description><link>https://forum.gui-o.com/post/1090</link><guid isPermaLink="true">https://forum.gui-o.com/post/1090</guid><dc:creator><![CDATA[Sato]]></dc:creator><pubDate>Tue, 15 Jul 2025 10:24:33 GMT</pubDate></item><item><title><![CDATA[Reply to command that returns the date and time and the day of the week on Tue, 15 Jul 2025 10:21:26 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/4">@kl3m3n</a>,</p>
<p dir="auto">Thank You</p>
<p dir="auto">Best regards</p>
]]></description><link>https://forum.gui-o.com/post/1089</link><guid isPermaLink="true">https://forum.gui-o.com/post/1089</guid><dc:creator><![CDATA[Sato]]></dc:creator><pubDate>Tue, 15 Jul 2025 10:21:26 GMT</pubDate></item><item><title><![CDATA[Reply to command that returns the date and time and the day of the week on Tue, 15 Jul 2025 05:32:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/8">@Sato</a> Hi,</p>
<p dir="auto">try setting the RTCR parameter to a low value, e.g. 0.1. This should give you updates with an interval of 10 seconds, which should be enough for you to disable the RTC. You can even go lower, up to 100 seconds.</p>
<p dir="auto">Note that when creating the RTC, it will give you the time immediately and then with a specified interval.</p>
<p dir="auto">Regards,<br />
Kl3m3n</p>
]]></description><link>https://forum.gui-o.com/post/1088</link><guid isPermaLink="true">https://forum.gui-o.com/post/1088</guid><dc:creator><![CDATA[kl3m3n]]></dc:creator><pubDate>Tue, 15 Jul 2025 05:32:07 GMT</pubDate></item><item><title><![CDATA[Reply to command that returns the date and time and the day of the week on Mon, 14 Jul 2025 22:16:30 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/4">@kl3m3n</a>,</p>
<p dir="auto">mqttClient.publish(&amp;In[0], "|RTC UID:rtc1 RTCE:0 HID:rtc\r\n");  // Disable RTC</p>
<p dir="auto">if i use this, the time is correct but it go few times on the callback, but i only need it one time!!!!!!!!!<br />
mqttClient.publish(&amp;In[0], "|RTC UID:rtc1 HID:rtc\r\n");</p>
<p dir="auto">mqttClient.publish(&amp;In[0], "@rtc1 RTCF:"yyyy-mm-dd hh:mm:ss" RTCE:1\r\n");</p>
<p dir="auto">void parseGuioMsg(const String &amp;msg) {<br />
if (msg.startsWith("@rtc1")) {<br />
getRtc = 1;<br />
mqttClient.publish(&amp;In[0], "@rtc1 RTCE:0\n\r"); // Disable the RTC</p>
<p dir="auto">Thank you<br />
Best regards</p>
]]></description><link>https://forum.gui-o.com/post/1087</link><guid isPermaLink="true">https://forum.gui-o.com/post/1087</guid><dc:creator><![CDATA[Sato]]></dc:creator><pubDate>Mon, 14 Jul 2025 22:16:30 GMT</pubDate></item><item><title><![CDATA[Reply to command that returns the date and time and the day of the week on Mon, 14 Jul 2025 09:24:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/8">@Sato</a> Hi!</p>
<p dir="auto">Yes, the localisation can be a problem.<br />
I will fix the RTC so it will return the day of the week as a number.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/8">@Sato</a> said in <a href="/post/1085">command that returns the date and time and the day of the week</a>:</p>
<blockquote>
<p dir="auto">No, it not works, the date is wrong 2025/37/13, the time is correct</p>
</blockquote>
<p dir="auto">Can you please provide the initialization for RTCF for this?</p>
<p dir="auto">Thanks.</p>
<p dir="auto">Best regards,<br />
Kl3m3n</p>
]]></description><link>https://forum.gui-o.com/post/1086</link><guid isPermaLink="true">https://forum.gui-o.com/post/1086</guid><dc:creator><![CDATA[kl3m3n]]></dc:creator><pubDate>Mon, 14 Jul 2025 09:24:48 GMT</pubDate></item><item><title><![CDATA[Reply to command that returns the date and time and the day of the week on Sun, 13 Jul 2025 19:38:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/8">@Sato</a> said in <a href="/post/1084">command that returns the date and time and the day of the week</a>:</p>
<blockquote>
<p dir="auto">2025/17/12</p>
</blockquote>
<p dir="auto">Show on callback<br />
RTC @rtc1 2025-37-13 20:37:01 dev:W 0001 x.x uuid:d3f1c986-16</p>
<p dir="auto">No, it not works, the date is wrong 2025/37/13, the time is correct</p>
<p dir="auto">Thank you<br />
Best regards</p>
]]></description><link>https://forum.gui-o.com/post/1085</link><guid isPermaLink="true">https://forum.gui-o.com/post/1085</guid><dc:creator><![CDATA[Sato]]></dc:creator><pubDate>Sun, 13 Jul 2025 19:38:58 GMT</pubDate></item><item><title><![CDATA[Reply to command that returns the date and time and the day of the week on Sat, 12 Jul 2025 19:25:37 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/4">@kl3m3n</a>,</p>
<p dir="auto">Now it works.</p>
<p dir="auto">@rtc1 2025/17/12 20:17:05 sábado dev:W 0001 x.x uuid:d3f1c986-16b3-47</p>
<p dir="auto">In this case, the WeekDay is sábado = Saturday. My question is how is the WeekDay, if the Guio is used in UK or Germany and so on...</p>
<p dir="auto">Saturtday or Samstag or?</p>
<p dir="auto">Thank You<br />
Best regards</p>
]]></description><link>https://forum.gui-o.com/post/1084</link><guid isPermaLink="true">https://forum.gui-o.com/post/1084</guid><dc:creator><![CDATA[Sato]]></dc:creator><pubDate>Sat, 12 Jul 2025 19:25:37 GMT</pubDate></item><item><title><![CDATA[Reply to command that returns the date and time and the day of the week on Mon, 07 Jul 2025 21:46:59 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/4">@kl3m3n</a>,</p>
<p dir="auto">You are right, but i continue have a problem with RTC, the ddd show not the dayofweek. Have you a idea what it is wrong?<br />
Thank You</p>
<p dir="auto">void generateTheGUI {<br />
getRtc = 0;<br />
Serial.println("Create command RTC");<br />
mqttClient.publish(&amp;In[0], "|RTC UID:rtc1 HID:rtc\r\n");<br />
app_on = 1;<br />
}</p>
<p dir="auto">Main loop {<br />
//only one time<br />
if ((app_on == 1) &amp;&amp; (getRtc == 0)) {<br />
<a href="//mqttClient.publish" rel="nofollow ugc">//mqttClient.publish</a>(&amp;In[0], "@rtc1\n\r"); ////same output on Serial Monitor<br />
<a href="//mqttClient.publish" rel="nofollow ugc">//mqttClient.publish</a>(&amp;In[0], "@rtc1 RTCF:hh:mm:ss ddd RTCR:5.0\n\r"); //same output on Serial Monitor<br />
mqttClient.publish(&amp;In[0], "@rtc1 RTCF:'hh:mm:ss ddd' RTCR:1.5\n\r"); //same output on Serial Monitor<br />
delay(150);<br />
mqttClient.publish(&amp;In[0], "@rtc1 RTCE:0\n\r"); //Disable RTC ??????????????<br />
getRtc = 1;<br />
delay(150);<br />
}<br />
}</p>
<p dir="auto">void parseGuioMsg(const String &amp;msg) {<br />
if (msg.startsWith("@rtc1")) {<br />
Serial.print("Show RTC ");<br />
Serial.println(msg);<br />
}<br />
}</p>
<p dir="auto">On Serial Monitor, a few times, like this...<br />
Show RTC @rtc1 2025/07/07 22:32:31:696 dev:W 0001 x.x uuid:d3f1c986-16b3-47<br />
End Parse<br />
Show RTC @rtc1 2025/07/07 22:32:33:696 dev:W 0001 x.x uuid:d3f1c986-16b3-47<br />
End Parse<br />
Show RTC @rtc1 2025/07/07 22:32:34:694 dev:W 0001 x.x uuid:d3f1c986-16b3-47<br />
End Parse</p>
]]></description><link>https://forum.gui-o.com/post/1083</link><guid isPermaLink="true">https://forum.gui-o.com/post/1083</guid><dc:creator><![CDATA[Sato]]></dc:creator><pubDate>Mon, 07 Jul 2025 21:46:59 GMT</pubDate></item><item><title><![CDATA[Reply to command that returns the date and time and the day of the week on Mon, 07 Jul 2025 20:40:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/8">@Sato</a> Yes, you were missing the '|' character.</p>
<p dir="auto">BR,<br />
Kl3m3n</p>
]]></description><link>https://forum.gui-o.com/post/1082</link><guid isPermaLink="true">https://forum.gui-o.com/post/1082</guid><dc:creator><![CDATA[kl3m3n]]></dc:creator><pubDate>Mon, 07 Jul 2025 20:40:27 GMT</pubDate></item><item><title><![CDATA[Reply to command that returns the date and time and the day of the week on Mon, 07 Jul 2025 18:10:35 GMT]]></title><description><![CDATA[<p dir="auto">Hello kl3m3n,</p>
<p dir="auto">Now i receive the callback @rtc1. The ceation of the command was on the wrong part of the code.</p>
<p dir="auto">Sorry and Thank You</p>
<p dir="auto">Best regards</p>
]]></description><link>https://forum.gui-o.com/post/1081</link><guid isPermaLink="true">https://forum.gui-o.com/post/1081</guid><dc:creator><![CDATA[Sato]]></dc:creator><pubDate>Mon, 07 Jul 2025 18:10:35 GMT</pubDate></item><item><title><![CDATA[Reply to command that returns the date and time and the day of the week on Mon, 07 Jul 2025 14:52:52 GMT]]></title><description><![CDATA[<p dir="auto">Thank you <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/4">@kl3m3n</a>,</p>
<p dir="auto">I've tried this, but it doesn't work, what mistake am I making?</p>
<pre><code>  Serial.print("MQTT CONECTED " );
  Serial.println(mqttClient.state());
  mqttClient.subscribe(&amp;Out[0]); //subscrive topic
</code></pre>
<p dir="auto">mqttClient.publish(&amp;In[0], "RTC UID:rtc1 HID:rtc\r\n");</p>
<p dir="auto">Main loop {<br />
//for testing every 1000ms<br />
Serial.println("Get rtc ");<br />
<a href="//mqttClient.publish" rel="nofollow ugc">//mqttClient.publish</a>(&amp;In[0], "@rtc1 RTCF:'HH:mm:ss' RTCR:2.0\n\r");<br />
mqttClient.publish(&amp;In[0], "@rtc1 RTCF:HH:mm:ss RTCR:2.0\n\r");<br />
}</p>
<p dir="auto">void parseGuioMsg(const String &amp;msg) {<br />
Serial.print("Callback Gui-O ");<br />
Serial.println(msg); // @init usr: //// here without reaction</p>
<p dir="auto">if (msg.startsWith("@rtc1")) {<br />
Serial.print("Show RTC ");   // here without reaction too<br />
Serial.println(msg);<br />
}<br />
}</p>
]]></description><link>https://forum.gui-o.com/post/1080</link><guid isPermaLink="true">https://forum.gui-o.com/post/1080</guid><dc:creator><![CDATA[Sato]]></dc:creator><pubDate>Mon, 07 Jul 2025 14:52:52 GMT</pubDate></item><item><title><![CDATA[Reply to command that returns the date and time and the day of the week on Mon, 07 Jul 2025 14:49:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/8">@Sato</a> No problem! <img src="https://forum.gui-o.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=29eca934c85" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":slightly_smiling_face:" alt="🙂" /></p>
]]></description><link>https://forum.gui-o.com/post/1079</link><guid isPermaLink="true">https://forum.gui-o.com/post/1079</guid><dc:creator><![CDATA[kl3m3n]]></dc:creator><pubDate>Mon, 07 Jul 2025 14:49:05 GMT</pubDate></item><item><title><![CDATA[Reply to command that returns the date and time and the day of the week on Mon, 07 Jul 2025 10:30:14 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/4">@kl3m3n</a>,</p>
<p dir="auto">Thanks, after all this already exists in Gui-O, Real-time clock (RTC)</p>
<p dir="auto">I should have paid more attention when reading the manual, I'm sorry to be bothering you with something you've already implemented and from what I can see, a long time ago.</p>
<p dir="auto">In the next few days I'll check it out and use it to get the MCP7940 right.</p>
<p dir="auto">Thank you<br />
Best regards</p>
]]></description><link>https://forum.gui-o.com/post/1078</link><guid isPermaLink="true">https://forum.gui-o.com/post/1078</guid><dc:creator><![CDATA[Sato]]></dc:creator><pubDate>Mon, 07 Jul 2025 10:30:14 GMT</pubDate></item><item><title><![CDATA[Reply to command that returns the date and time and the day of the week on Mon, 07 Jul 2025 09:58:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/8">@Sato</a> Hi!</p>
<p dir="auto">You can do this in the following way:</p>
<p dir="auto">Set the format to:</p>
<p dir="auto">"yyyy-MM-dd hh:mm:ss dddd"</p>
<p dir="auto">The <strong>dddd</strong> part should give the days:<br />
Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.</p>
<p dir="auto">Create a lookup table to convert this into a number from 1 to 7.</p>
<p dir="auto">P.S.: You can replace <strong>dddd</strong> with <strong>ddd</strong>, which will give you the short names for the days (e.g., Mon, Sun, ...).</p>
<p dir="auto">Best regards,<br />
Kl3m3n</p>
]]></description><link>https://forum.gui-o.com/post/1077</link><guid isPermaLink="true">https://forum.gui-o.com/post/1077</guid><dc:creator><![CDATA[kl3m3n]]></dc:creator><pubDate>Mon, 07 Jul 2025 09:58:17 GMT</pubDate></item><item><title><![CDATA[Reply to command that returns the date and time and the day of the week on Sat, 05 Jul 2025 02:10:13 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/4">@kl3m3n</a>,</p>
<p dir="auto">Sorry, that's now correct</p>
<p dir="auto">2025-07-05 12:45:01 6</p>
<p dir="auto">Sunday is weekday 7<br />
Monday is weekday 1</p>
]]></description><link>https://forum.gui-o.com/post/1074</link><guid isPermaLink="true">https://forum.gui-o.com/post/1074</guid><dc:creator><![CDATA[Sato]]></dc:creator><pubDate>Sat, 05 Jul 2025 02:10:13 GMT</pubDate></item></channel></rss>