<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Mikrotik.moscow [тема: Tool fetch url]</title>
		<link>http://mikrotik.moscow</link>
		<description>Новое в теме Tool fetch url форума RouterOS на сайте Mikrotik.moscow [mikrotik.moscow]</description>
		<language>ru</language>
		<docs>http://backend.userland.com/rss2</docs>
		<pubDate>Sun, 02 Aug 2026 13:06:34 -0400</pubDate>
		<item>
			<title>Tool fetch url</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383122">Tool fetch url</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Опять та же проблема с URL, у кого-нибудь есть он, пожалуйста? <br />
			<i>11.01.2023 14:05:00, eldoncito2019.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383122</link>
			<guid>http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383122</guid>
			<pubDate>Wed, 11 Jan 2023 14:05:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Tool fetch url</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383121">Tool fetch url</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Еще раз спасибо @kangarie и @Rextended. <br />
			<i>17.11.2022 13:31:00, eldoncito2019.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383121</link>
			<guid>http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383121</guid>
			<pubDate>Thu, 17 Nov 2022 13:31:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Tool fetch url</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383120">Tool fetch url</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Спасибо, всё работает, обновил скрипт: <noindex><a href="http://forum.mikrotik.com/t/tool-fetch-url/161378/11" target="_blank" rel="nofollow" >http://forum.mikrotik.com/t/tool-fetch-url/161378/11</a></noindex> <br />
			<i>17.11.2022 11:42:00, rextended.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383120</link>
			<guid>http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383120</guid>
			<pubDate>Thu, 17 Nov 2022 11:42:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Tool fetch url</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383119">Tool fetch url</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			новый код будет таким {<br />:local intGoff [:tonum [/system clock get gmt-offset]]<br />:if ($intGoff &gt; 93600) do={:set intGoff ((4294967296 - $intGoff) * -1)}<br />:local epochNow (([/tool fetch url="https://api.kangarie.com/time/str/now" as-value output=user])-&gt;"data")<br />:local upTime [/system resource get uptime]<br />:local wPos &nbsp; [:find $upTime "w" -1]<br />:local dPos &nbsp; [:find $upTime "d" -1]<br />:local utLen &nbsp;[:len $upTime]<br />:local utSec &nbsp;[:pick $upTime ($utLen - 2) $utLen]<br />:local utMin &nbsp;[:pick $upTime ($utLen - 5) ($utLen - 3)]<br />:local utHou &nbsp;[:pick $upTime ($utLen - 8) ($utLen - 6)]<br />:local utDay &nbsp;0<br />:local utWee &nbsp;0<br />:if (([:typeof $wPos] = "nil") and ([:typeof $dPos] = "num")) do={:set utDay [:pick $upTime 0 $dPos]}<br />:if (([:typeof $wPos] = "num") and ([:typeof $dPos] = "num")) do={:set utDay [:pick $upTime ($wPos + 1) $dPos]}<br />:if ([:typeof $wPos] = "num") do={:set utWee [:pick $upTime 0 $wPos]}<br />:local totUtSec ($utSec + (60 * $utMin) + (60 * 60 * $utHou) + (60 * 60 * 24 * $utDay) + (60 * 60 * 24 * 7 * $utWee))<br />:local epochStart ($epochNow - $totUtSec + $intGoff)<br />:local datetimeStart (([/tool fetch url="https://api.kangarie.com/time/str/$epochStart" as-value output=user])-&gt;"data")<br />:put "RouterBOARD был запущен $datetimeStart"<br />} <br />
			<i>17.11.2022 02:27:00, kangarie.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383119</link>
			<guid>http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383119</guid>
			<pubDate>Thu, 17 Nov 2022 02:27:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Tool fetch url</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383118">Tool fetch url</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			от метки времени <noindex><a href="https://api.kangarie.com/time/str/1666314750" target="_blank" rel="nofollow" >https://api.kangarie.com/time/str/1666314750</a></noindex> от строки даты <noindex><a href="https://api.kangarie.com/time/str/2022-10-22%2001:12:30" target="_blank" rel="nofollow" >https://api.kangarie.com/time/str/2022-10-22%2001:12:30</a></noindex> надеюсь, это сработает <br />
			<i>17.11.2022 01:42:00, kangarie.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383118</link>
			<guid>http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383118</guid>
			<pubDate>Thu, 17 Nov 2022 01:42:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Tool fetch url</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383117">Tool fetch url</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Кто-то получил URL. <br />
			<i>16.11.2022 18:07:00, eldoncito2019.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383117</link>
			<guid>http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383117</guid>
			<pubDate>Wed, 16 Nov 2022 18:07:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Tool fetch url</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383116">Tool fetch url</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Ребята, кто-нибудь может скинуть ссылку, где можно посчитать время в формате UNIX? Спасибо за помощь. <br />
			<i>30.10.2022 17:32:00, eldoncito2019.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383116</link>
			<guid>http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383116</guid>
			<pubDate>Sun, 30 Oct 2022 17:32:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Tool fetch url</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383115">Tool fetch url</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Ты прав, удалённый сайт содержит баг — он вычитает 12 часов из времени, не показывает am/pm и неправильное 24-часовое время. <noindex><a href="https://helloacm.com/api/unix-timestamp-converter/?cached&amp;s=1666314750" target="_blank" rel="nofollow" >https://helloacm.com/api/unix-timestamp-converter/?cached&amp;s=1666314750</a></noindex> «2022-10-21 01:12:30» <noindex><a href="https://helloacm.com/api/unix-timestamp-converter/?cached&amp;s=1666271550" target="_blank" rel="nofollow" >https://helloacm.com/api/unix-timestamp-converter/?cached&amp;s=1666271550</a></noindex> «2022-10-20 01:12:30» (должно быть 13:12:30) Я снова ищу другой рабочий URL. <br />
			<i>27.10.2022 07:12:00, rextended.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383115</link>
			<guid>http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383115</guid>
			<pubDate>Thu, 27 Oct 2022 07:12:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Tool fetch url</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383114">Tool fetch url</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			REXTENDED, если роутер перезагружается днем, он принимает время, как будто это утро, то есть если роутер перезагружается в 9 утра, тогда время стоит правильно (09:00:00), а если он перезагружается в 3 часа дня — время показывает 03:00:00, что не так? Он отстает на 12 часов. <br />
			<i>26.10.2022 20:54:00, eldoncito2019.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383114</link>
			<guid>http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383114</guid>
			<pubDate>Wed, 26 Oct 2022 20:54:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Tool fetch url</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383113">Tool fetch url</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			У меня есть скрипт от REXTENDED, который уже несколько недель не работает. Проблема в ссылке "https://showcase.api.linx.twenty57.net/UnixTime/tounix\3Fdate=now" — эта страница не работает, ты можешь заменить её на другой URL. Вот сам скрипт:<br /><br />{<br />:local intGoff [:tonum [/system clock get gmt-offset]]<br />:if ($intGoff &gt; 93600) do={:set intGoff ((4294967296 - $intGoff) * -1)}<br />:local epochNow (([/tool fetch url="https://showcase.api.linx.twenty57.net/UnixTime/tounix\3Fdate=now" as-value output=user])-&gt;"data")<br />:set epochNow [:pick $epochNow 1 ([:len $epochNow] - 1)]<br />:local upTime [/system resource get uptime]<br />:local wPos [:find $upTime "w" -1]<br />:local dPos [:find $upTime "d" -1]<br />:local utLen [:len $upTime]<br />:local utSec [:pick $upTime ($utLen - 2) $utLen]<br />:local utMin [:pick $upTime ($utLen - 5) ($utLen - 3)]<br />:local utHou [:pick $upTime ($utLen - 8) ($utLen - 6)]<br />:local utDay 0<br />:local utWee 0<br />:if (([:typeof $wPos] = "nil") and ([:typeof $dPos] = "num")) do={:set utDay [:pick $upTime 0 $dPos]}<br />:if (([:typeof $wPos] = "num") and ([:typeof $dPos] = "num")) do={:set utDay [:pick $upTime ($wPos + 1) $dPos]}<br />:if ([:typeof $wPos] = "num") do={:set utWee [:pick $upTime 0 $wPos]}<br />:local totUtSec ($utSec + (60 * $utMin) + (60 * 60 * $utHou) + (60 * 60 * 24 * $utDay) + (60 * 60 * 24 * 7 * $utWee))<br />:local epochStart ($epochNow - $totUtSec + $intGoff)<br />:local datetimeStart (([/tool fetch url="https://showcase.api.linx.twenty57.net/UnixTime/fromunix\3Ftimestamp=$epochStart" as-value output=user])-&gt;"data")<br />:set datetimeStart [:pick $datetimeStart 1 ([:len $datetimeStart] - 1)]<br />:put "RouterBOARD запущен $datetimeStart"<br />}<br /><br />EL DONCITO. <br />
			<i>10.10.2022 23:42:00, eldoncito2019.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383113</link>
			<guid>http://mikrotik.moscow/forum/forum57/84090-tool-fetch-url/message383113</guid>
			<pubDate>Mon, 10 Oct 2022 23:42:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
	</channel>
</rss>
