{"id":968,"date":"2023-10-06T05:36:40","date_gmt":"2023-10-06T05:36:40","guid":{"rendered":"https:\/\/iotmanager.org\/?p=968"},"modified":"2023-10-06T05:36:41","modified_gmt":"2023-10-06T05:36:41","slug":"%d1%80%d0%b0%d0%b1%d0%be%d1%82%d0%b0-%d1%81-%d1%81%d0%be%d0%b1%d1%8b%d1%82%d0%b8%d1%8f%d0%bc%d0%b8-%d0%b2-%d1%84%d0%be%d1%80%d0%bc%d0%b0%d1%82%d0%b5-cron","status":"publish","type":"post","link":"https:\/\/iotmanager.org\/en\/2023\/10\/06\/968\/","title":{"rendered":"Working with cron events"},"content":{"rendered":"<p>Time scheduler for periodically completing tasks at a specific time.<br>Generates an event at the specified time in the Cron format. The full description can be found here&nbsp;<a href=\"https:\/\/ru.wikipedia.org\/wiki\/Cron\">https:\/\/ru.wikipedia.org\/wiki\/Cron<\/a><\/p>\n\n\n\n<p>Please note that this firmware uses&nbsp;<strong>additional seconds field<\/strong>, which makes a change to the logic of filling in fields.<\/p>\n\n\n\n<p>The crontab table consists of 6 columns separated by spaces.<br>Six columns define the execution time (second, minute, hour, day, month, day of the week). They can contain a number, a list of numbers separated by commas, a range of numbers separated by hyphens, and the characters * or\/. The most common error is when you leave * in the seconds field, while out in the given minute will be triggered every second.<\/p>\n\n\n\n<p>Learn more about events by time\u00a0<a href=\"https:\/\/old.iotmanager.org\/wiki\/index.php?title=%D0%A3%D0%BF%D1%80%D0%B0%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5_%D1%81%D0%BE%D0%B1%D1%8B%D1%82%D0%B8%D1%8F%D0%BC%D0%B8_%D0%BF%D0%BE_%D0%B2%D1%80%D0%B5%D0%BC%D0%B5%D0%BD%D0%B8\">read here<\/a>.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\"><code>* * * * * *\n- - - - - -\n| | | | | |\n| | | | | --- \u0434\u0435\u043d\u044c \u043d\u0435\u0434\u0435\u043b\u0438 (0\u20146) (\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435 = 0 \u0438\u043b\u0438  &quot;SUN&quot;, &quot;MON&quot;, &quot;TUE&quot;, &quot;WED&quot;, &quot;THU&quot;, &quot;FRI&quot;, &quot;SAT&quot; )\n| | | | ----- \u043c\u0435\u0441\u044f\u0446 (1\u201412 \u0438\u043b\u0438 &quot;JAN&quot;, &quot;FEB&quot;, &quot;MAR&quot;, &quot;APR&quot;, &quot;MAY&quot;, &quot;JUN&quot;, &quot;JUL&quot;, &quot;AUG&quot;, &quot;SEP&quot;, &quot;OCT&quot;, &quot;NOV&quot;, &quot;DEC&quot; )\n| | | ------- \u0434\u0435\u043d\u044c \u043c\u0435\u0441\u044f\u0446\u0430 (1\u201431)\n| | --------- \u0447\u0430\u0441 (0\u201423)\n| ----------- \u043c\u0438\u043d\u0443\u0442\u0430 (0\u201459)\n------------- \u0441\u0435\u043a\u0443\u043d\u0434\u044b (0\u201459)<\/code><\/pre><\/div>\n\n\n\n<p>For more information, please visit\u00a0<a href=\"https:\/\/crontab.guru\/#*_*_*_*_*\">crontab.guru<\/a>. <strong>But keep in mind that there is no first seconds field.<\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>\u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u043b\u044f \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u043d\u0438\u0439 \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f.\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0443 Cron, \u043f\u043e\u043b\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435&nbsp;https:\/\/ru.wikipedia.org\/wiki\/Cron \u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f&nbsp;\u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u0447\u0442\u043e \u0432\u043d\u043e\u0441\u0438\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0432 \u043b\u043e\u0433\u0438\u043a\u0443 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0435\u0439. \u0422\u0430\u0431\u043b\u0438\u0446\u0430 crontab \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 6 \u043a\u043e\u043b\u043e\u043d\u043e\u043a, \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c\u044b\u0445 \u043f\u0440\u043e\u0431\u0435\u043b\u0430\u043c\u0438.\u0428\u0435\u0441\u0442\u044c \u043a\u043e\u043b\u043e\u043d\u043e\u043a \u0437\u0430\u0434\u0430\u044e\u0442 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f (\u0441\u0435\u043a\u0443\u043d\u0434\u0430, \u043c\u0438\u043d\u0443\u0442\u0430, \u0447\u0430\u0441, \u0434\u0435\u043d\u044c, &#8230; <a title=\"Working with cron events\" class=\"read-more\" href=\"https:\/\/iotmanager.org\/en\/2023\/10\/06\/968\/\" aria-label=\"More on \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c\u0438 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 cron\">Read more<\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[74],"tags":[85,76],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/iotmanager.org\/en\/wp-json\/wp\/v2\/posts\/968"}],"collection":[{"href":"https:\/\/iotmanager.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iotmanager.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iotmanager.org\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iotmanager.org\/en\/wp-json\/wp\/v2\/comments?post=968"}],"version-history":[{"count":1,"href":"https:\/\/iotmanager.org\/en\/wp-json\/wp\/v2\/posts\/968\/revisions"}],"predecessor-version":[{"id":969,"href":"https:\/\/iotmanager.org\/en\/wp-json\/wp\/v2\/posts\/968\/revisions\/969"}],"wp:attachment":[{"href":"https:\/\/iotmanager.org\/en\/wp-json\/wp\/v2\/media?parent=968"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iotmanager.org\/en\/wp-json\/wp\/v2\/categories?post=968"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iotmanager.org\/en\/wp-json\/wp\/v2\/tags?post=968"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}