{"id":2845,"date":"2024-11-22T19:50:02","date_gmt":"2024-11-22T16:50:02","guid":{"rendered":"https:\/\/auroracam.ru\/?page_id=2845"},"modified":"2025-02-09T17:39:09","modified_gmt":"2025-02-09T14:39:09","slug":"%d0%b3%d1%80%d0%b0%d1%84%d0%b8%d0%ba%d0%b8-%d0%bf%d1%80%d0%be%d0%b3%d0%bd%d0%be%d0%b7","status":"publish","type":"page","link":"https:\/\/auroracam.ru\/old\/%d0%b3%d1%80%d0%b0%d1%84%d0%b8%d0%ba%d0%b8-%d0%bf%d1%80%d0%be%d0%b3%d0%bd%d0%be%d0%b7\/","title":{"rendered":"\u0413\u0440\u0430\u0444\u0438\u043a\u0438 (\u041f\u0440\u043e\u0433\u043d\u043e\u0437)"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"2845\" class=\"elementor elementor-2845\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-2aba6dfb elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2aba6dfb\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-b27f886\" data-id=\"b27f886\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-577673e9 elementor-widget elementor-widget-heading\" data-id=\"577673e9\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.16.0 - 20-09-2023 *\/\n.elementor-heading-title{padding:0;margin:0;line-height:1}.elementor-widget-heading .elementor-heading-title[class*=elementor-size-]>a{color:inherit;font-size:inherit;line-height:inherit}.elementor-widget-heading .elementor-heading-title.elementor-size-small{font-size:15px}.elementor-widget-heading .elementor-heading-title.elementor-size-medium{font-size:19px}.elementor-widget-heading .elementor-heading-title.elementor-size-large{font-size:29px}.elementor-widget-heading .elementor-heading-title.elementor-size-xl{font-size:39px}.elementor-widget-heading .elementor-heading-title.elementor-size-xxl{font-size:59px}<\/style><h5 class=\"elementor-heading-title elementor-size-default\">\u041f\u0440\u043e\u0433\u043d\u043e\u0437 \u0441\u0435\u0432\u0435\u0440\u043d\u043e\u0433\u043e \u0441\u0438\u044f\u043d\u0438\u044f<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t<div class=\"elementor-element elementor-element-25f9ad4a e-con-full e-flex e-con e-parent\" data-id=\"25f9ad4a\" data-element_type=\"container\" id=\".my-\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;,&quot;content_width&quot;:&quot;full&quot;,&quot;container_type&quot;:&quot;flex&quot;}\" data-core-v316-plus=\"true\">\n\t\t\t\t<div class=\"elementor-element elementor-element-98b2579 elementor-widget elementor-widget-html\" data-id=\"98b2579\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<script src=\"https:\/\/unpkg.com\/@popperjs\/core@2\"><\/script>\r\n<link href=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.0.2\/dist\/css\/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-EVSTQN3\/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC\" crossorigin=\"anonymous\">\r\n<link rel=\"stylesheet\" href=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap-icons@1.11.2\/font\/bootstrap-icons.min.css\">\r\n<script src=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.0.2\/dist\/js\/bootstrap.bundle.min.js\" integrity=\"sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn\/tWtIaxVXM\" crossorigin=\"anonymous\"><\/script>\r\n\r\n<script src=\"https:\/\/code.highcharts.com\/highcharts.js\" referrerpolicy=\"no-referrer\"><\/script>\r\n<script src=\"https:\/\/code.highcharts.com\/highcharts-more.js\" referrerpolicy=\"no-referrer\"><\/script>\r\n<script src=\"https:\/\/code.highcharts.com\/modules\/solid-gauge.js\" referrerpolicy=\"no-referrer\"><\/script>\r\n<script src=\"https:\/\/code.highcharts.com\/modules\/exporting.js\" referrerpolicy=\"no-referrer\"><\/script>\r\n<script src=\"https:\/\/code.highcharts.com\/modules\/export-data.js\" referrerpolicy=\"no-referrer\"><\/script>\r\n<script referrerpolicy=\"no-referrer\" src=\"https:\/\/code.highcharts.com\/modules\/accessibility.js\"><\/script>\r\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/moment.js\/2.29.1\/moment.min.js\" referrerpolicy=\"no-referrer\"><\/script>\r\n<script>\r\nfunction getEarthLineTime(){\r\n    return new Promise((res) => {\r\n        var xhr = new XMLHttpRequest();\r\n    var url = 'https:\/\/services.swpc.noaa.gov\/products\/summary\/solar-wind-speed.json'\r\n    xhr.open(\"GET\", url, true);\r\n    xhr.onload = function () {\r\nif (xhr.status == 200) {\r\n    var data = JSON.parse(xhr.responseText);\r\n    window.leadTime = (1500000\/parseInt(data.WindSpeed))*1000*2\r\n    \/\/ console.log(window.leadTime);\r\n        var span = document.getElementById(\"Leadtime_min\");\r\n\r\n\/\/ \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 window.leadTime\r\nspan.textContent = Math.round(window.leadTime\/60000);\r\nres()\r\n\r\n} else {\r\n    console.error('Failed to fetch data. Status:', xhr.status);\r\n}\r\n};\r\nxhr.send();\r\n\r\n    })\r\n    \r\n}\r\nvar dateTimeFormat = '{value:%k:%M}';\r\n\r\nHighcharts.setOptions({\r\n    time: {\r\n        useUTC: false\r\n    }\r\n});\r\n        \r\n<\/script>\r\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-1ba56ad8 e-flex e-con-boxed e-con e-child\" data-id=\"1ba56ad8\" data-element_type=\"container\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-68d7f281 my-widget e-flex e-con-boxed e-con e-child\" data-id=\"68d7f281\" data-element_type=\"container\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-4df38b2a e-con-full e-flex e-con e-child\" data-id=\"4df38b2a\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;full&quot;,&quot;container_type&quot;:&quot;flex&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-22ac1225 elementor-widget elementor-widget-heading\" data-id=\"22ac1225\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Kp-\u0438\u043d\u0434\u0435\u043a\u0441 <span class=\"text-primary\" data-bs-toggle=\"tooltip\" aria-label=\"\u0418\u043d\u0434\u0435\u043a\u0441 Kp \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u0435\u0440\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0433\u0435\u043e\u043c\u0430\u0433\u043d\u0438\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0438 \u043e\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0442 \u043c\u0430\u0433\u043d\u0438\u0442\u043e\u043c\u0435\u0442\u0440\u043e\u0432, \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u043d\u044b\u0445 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0442\u043e\u0447\u043a\u0430\u0445 \u043c\u0438\u0440\u0430. \u041d\u0438\u0436\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043b\u0430\u043d\u0435\u0442\u0430\u0440\u043d\u043e\u0433\u043e K-\u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u043e\u0442 NOAA SWPC, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0434\u043b\u044f \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043e\u0446\u0435\u043d\u043a\u0438 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u0433\u0435\u043e\u043c\u0430\u0433\u043d\u0438\u0442\u043d\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438. \" data-bs-original-title=\"\u0418\u043d\u0434\u0435\u043a\u0441 Kp \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u0435\u0440\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0433\u0435\u043e\u043c\u0430\u0433\u043d\u0438\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0438 \u043e\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0442 \u043c\u0430\u0433\u043d\u0438\u0442\u043e\u043c\u0435\u0442\u0440\u043e\u0432, \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u043d\u044b\u0445 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0442\u043e\u0447\u043a\u0430\u0445 \u043c\u0438\u0440\u0430. \u041d\u0438\u0436\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043b\u0430\u043d\u0435\u0442\u0430\u0440\u043d\u043e\u0433\u043e K-\u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u043e\u0442 NOAA SWPC, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0434\u043b\u044f \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043e\u0446\u0435\u043d\u043a\u0438 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u0433\u0435\u043e\u043c\u0430\u0433\u043d\u0438\u0442\u043d\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438. \"><i class=\"bi bi-info\" aria-hidden=\"true\"><\/i><\/span><\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-55b1dc1f e-flex e-con-boxed e-con e-child\" data-id=\"55b1dc1f\" data-element_type=\"container\" id=\"container-kp\" data-settings=\"{&quot;animation&quot;:&quot;none&quot;,&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-5bdf3ded e-flex e-con-boxed e-con e-child\" data-id=\"5bdf3ded\" data-element_type=\"container\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-1e2052f0 e-flex e-con-boxed e-con e-child\" data-id=\"1e2052f0\" data-element_type=\"container\" id=\"kp-forecast\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6d426360 elementor-widget elementor-widget-html\" data-id=\"6d426360\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\n<div class=\"card-body text-center\">\n    \n  <\/div>\n  <div class=\"collapse show\" id=\"collapseforecast\" style=\"\">\n    <!--<div class=\"pt-2 border-SWL\"><\/div>-->\n    <h5 class=\"card-header text-center PLwaarden\">\n      <span data-bs-toggle=\"tooltip\" data-bs-html=\"true\" data-bs-placement=\"top\" data-bs-original-title=\" 0 -> 3 = \u0422\u0438\u0445\u043e<br \/> 4 = \u0410\u043a\u0442\u0438\u0432\u043d\u043e<br \/> 5 = \u041c\u0430\u043b\u044b\u0439 \u0448\u0442\u043e\u0440\u043c (G1)<br \/> 6 = \u0423\u043c\u0435\u0440\u0435\u043d\u043d\u044b\u0439 \u0448\u0442\u043e\u0440\u043c (G2)<br \/> 7 = \u0421\u0438\u043b\u044c\u043d\u044b\u0439 \u0448\u0442\u043e\u0440\u043c (G3)<br \/> 8 = \u0421\u0438\u043b\u044c\u043d\u0430\u044f \u0431\u0443\u0440\u044f (G4)<br \/> 9 = \u042d\u043a\u0441\u0442\u0440\u0435\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0448\u0442\u043e\u0440\u043c (G5)\">\u041f\u0440\u043e\u0433\u043d\u043e\u0437 Kp-\u0438\u043d\u0434\u0435\u043a\u0441\u0430<\/span>\n    <\/h5>\n    <table class=\"table table-sm table-striped mb-0\">\n      <thead>\n        <tr>\n          <th><\/th>\n          <th class=\"text-center\">\u041c\u0438\u043d.<\/th>\n          <th class=\"text-center\">\u041c\u0430\u043a\u0441.<\/th>\n        <\/tr>\n      <\/thead>\n      <tbody>\n        <tr>\n          <td>\u0441\u0435\u0433\u043e\u0434\u043d\u044f<\/td>\n          <td class=\"text-center\"><span class=\"bg-Kp2 text-white\" id='kp-min-today'>Kp2-<\/span><\/td>\n          <td class=\"text-center\"><span class=\"bg-Kp4 text-white\" id='kp-max-today'>Kp4-<\/span><\/td>\n        <\/tr>\n        <tr>\n          <td>\u0437\u0430\u0432\u0442\u0440\u0430<\/td>\n          <td class=\"text-center\"><span class=\"bg-Kp2 text-white\" id='kp-min-tom'>Kp2-<\/span><\/td>\n          <td class=\"text-center\"><span class=\"bg-Kp3 text-white\" id='kp-max-tom'>Kp3-<\/span><\/td>\n        <\/tr>\n        <tr>\n          <td>\u043f\u043e\u0441\u043b\u0435\u0437\u0430\u0432\u0442\u0440\u0430<\/td>\n          <td class=\"text-center\"><span class=\"bg-Kp1 text-white\" id='kp-min-after'>Kp1<\/span><\/td>\n          <td class=\"text-center\"><span class=\"bg-Kp4 text-white\" id='kp-max-after'>Kp4<\/span><\/td>\n        <\/tr>\n      <\/tbody>\n    <\/table>\n  <\/div>\n<style>\n    .text-center{\n        color: white;\n    }\n    th,td{\n                color: white;\n\n    }\n    table * {\n  border: 0px !important;\n}\n<\/style>\n<script>\n\/\/ A function that takes a URL and returns a promise that resolves to the JSON data\nasync function getJSON(url) {\n  const response = await fetch(url);\n  return response.json();\n}\n\n\/\/ A function that takes an array of numbers and returns the minimum and maximum values\nfunction getMinMax(arr) {\n  const numericArray = arr.map(Number);\n  const min = Math.min(...numericArray);\n  const max = Math.max(...numericArray);\n  return { min, max };\n}\n\n\/\/ A function that takes a URL and finds the min and max Kp index for today and the next two days\nasync function findKpMinMax(url) {\n  try {\n    \/\/ Get the JSON data from the URL\n    const data = await getJSON(url);\n\n    \/\/ Create objects to store Kp values for each day\n    const today = { min: Infinity, max: -Infinity };\n    const tomorrow = { min: Infinity, max: -Infinity };\n    const dayAfterTomorrow = { min: Infinity, max: -Infinity };\n\n    \/\/ Get the current date\n    const currentDate = new Date();\n    currentDate.setHours(0, 0, 0, 0);\n\n    \/\/ Loop through the data and update Kp values for each day\n    for (const [timestamp, kp] of data) {\n      const date = new Date(timestamp);\n      date.setHours(0, 0, 0, 0);\n\n      \/\/ Compare the date and update Kp values accordingly\n      if (date.getTime() === currentDate.getTime()) {\n        today.min = Math.min(today.min, kp);\n        today.max = Math.max(today.max, kp);\n      } else if (date.getTime() === currentDate.getTime() + 24 * 60 * 60 * 1000) {\n        tomorrow.min = Math.min(tomorrow.min, kp);\n        tomorrow.max = Math.max(tomorrow.max, kp);\n      } else if (date.getTime() === currentDate.getTime() + 2 * 24 * 60 * 60 * 1000) {\n        dayAfterTomorrow.min = Math.min(dayAfterTomorrow.min, kp);\n        dayAfterTomorrow.max = Math.max(dayAfterTomorrow.max, kp);\n      }\n    }\n\n    \/\/ Create an array to store the results\n    const results = [\n      { date: currentDate, ...today },\n      { date: new Date(currentDate.getTime() + 24 * 60 * 60 * 1000), ...tomorrow },\n      { date: new Date(currentDate.getTime() + 2 * 24 * 60 * 60 * 1000), ...dayAfterTomorrow },\n    ];\n\n    \/\/ Return or display the results\n    let kpmintoday = document.getElementById(\"kp-min-today\");\n\nkpmintoday.textContent = results[0].min;\nlet kpmintom = document.getElementById(\"kp-min-tom\");\n\nkpmintom.textContent = results[1].min;\nlet kpminafter = document.getElementById(\"kp-min-after\");\n\nkpminafter.textContent = results[2].min;\nlet kpmaxtoday = document.getElementById(\"kp-max-today\");\n\nkpmaxtoday.textContent = results[0].max;\nlet kpmaxtom = document.getElementById(\"kp-max-tom\");\n\nkpmaxtom.textContent = results[1].max;\nlet kpmaxafter = document.getElementById(\"kp-max-after\");\n\nkpmaxafter.textContent = results[2].max;\n\n    \/\/ console.log(results);\n  } catch (error) {\n    console.error(\"Error fetching or processing data:\", error);\n  }\n}\n\n\/\/ Call the function with the given URL\nfindKpMinMax(\"https:\/\/services.swpc.noaa.gov\/products\/noaa-planetary-k-index-forecast.json\");\n\n\n<\/script>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-447fad68 elementor-widget elementor-widget-html\" data-id=\"447fad68\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<script>\n\n\n    document.addEventListener('DOMContentLoaded', function () {\n        \n        \/\/ \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0430 Kp-\u0438\u043d\u0434\u0435\u043a\u0441\u0430\nfunction getKpData (){\n    setTimeout(() =>{\n        \/\/ console.log(chart_Kp_gauge)\n\n  \/\/ \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 XMLHttpRequest\n  var xhr = new XMLHttpRequest();\n  \/\/ \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c URL-\u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 NOAA, \u043e\u0442\u043a\u0443\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435\n  var url = \"https:\/\/services.swpc.noaa.gov\/json\/planetary_k_index_1m.json\";\n  \/\/ \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c\n  xhr.open(\"GET\", url, true);\n  \/\/ \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d \u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u043e\u0442\u0432\u0435\u0442\u0430\n  xhr.onload = function () {\n    \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u0441\u0442\u0430\u0442\u0443\u0441 \u043e\u0442\u0432\u0435\u0442\u0430 \u0440\u0430\u0432\u0435\u043d 200 (OK)\n    if (xhr.status == 200) {\n      \/\/ \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u043e\u0442\u0432\u0435\u0442 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 JSON \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432\n      var data = JSON.parse(xhr.responseText);\n      \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438\n      var obj = data[data.length-1];\n      \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 Kp-\u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u0438\u0437 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\n      var kp = obj.estimated_kp;\n      \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u0440\u0435\u043c\u044f \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 UTC \u0438\u0437 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\n      var time = obj.time_tag;\n      \/\/ \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u0432\u0440\u0435\u043c\u044f \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 UTC \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f\n      var date = new Date(time);\n      var localTime = date.toLocaleString();\n\n      \/\/ \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0430 Kp-\u0438\u043d\u0434\u0435\u043a\u0441\u0430\n      chart_Kp_gauge.series[0].setData([kp]);\n      \/\/ \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0446\u0432\u0435\u0442 \u0433\u0440\u0430\u0444\u0438\u043a\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f Kp-\u0438\u043d\u0434\u0435\u043a\u0441\u0430\n      \n      Highcharts.charts[0].series[0].update({\n          dataLabels: {\n              format: '<div style=\"text-align:center\">' +\n                '<span >\u041a\u0440{y}<\/span><br\/>' +\n                '<span >\u0412\u0440\u0435\u043c\u044f: ' + time.format('HH:mm') + '<\/span>' +' <\/span>' +\n                '<\/div>'\n          }\n      }\n                \n                )\n      \/\/ \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0430\u044e\u0449\u0443\u044e \u043d\u0430\u0434\u043f\u0438\u0441\u044c, \u0435\u0441\u043b\u0438 \u0438\u043d\u0434\u0435\u043a\u0441 \u0432\u044b\u0441\u043e\u043a\u0438\u0439\n      if (kp >= 6) {\n        chart_Kp_gauge.setSubtitle({text: \"\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435! \u0412\u044b\u0441\u043e\u043a\u0430\u044f \u0433\u0435\u043e\u043c\u0430\u0433\u043d\u0438\u0442\u043d\u0430\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c!\", style: {color: \"red\"}});\n      } else {\n        chart_Kp_gauge.setSubtitle({text: null});\n      }\n    }\n  };\n  \/\/ \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u043a \u0441\u0435\u0440\u0432\u0438\u0441\u0443\n\/\/   chart_Kp_gauge.redraw();\n\/\/ console.log(chart_Kp_gauge.series[0])\n  xhr.send();\n    }, 1000)\n                \n}\n\n    \n    \/\/ Kp-index gauge\nvar chart_Kp_gauge = Highcharts.chart(\"container-kp\", {\n        chart: {\n            type: 'solidgauge',\n            backgroundColor: null,\n            renderTo: 'Kp_gauge',\n            events: {\n                load: getKpData\n            },\n            \n        },\n        title: 'NOAA SWPC',\n        backgroundColor: null,\n        credits: {\n            enabled: false\n        },\n        pane: {\n            \/\/ center: ['50%', '90%'],\n            \/\/ size: '100%',\n            startAngle: -90,\n            endAngle: 90,\n            background: {\n                backgroundColor: null,\n                innerRadius: '60%',\n                outerRadius: '100%',\n                shape: 'arc'\n            }\n        },\n        tooltip: {\n            enabled: false\n        },\n        yAxis: {\n            tickColor: '#fff',\n            min: 0,\n            max: 9,\n            title: null,\n            stops: [[0.0, '#8dc850'], [0.33, '#8dc850'], [0.44, '#8dc850'], [0.55, '#ede21d'], [0.66, '#f6c112'], [0.77, '#f6910c'], [0.88, '#f50e09'], [1, '#bd0907']],\n            lineWidth: 0,\n            tickInterval: 1,\n            minorTicks: false,\n            labels: {\n                distance: 10,\n                style: {\n          color: '#fff' \/\/ white color\n        },\n            }\n            \n        },\n        \/\/ plotOptions: {\n        \/\/     solidgauge: {\n        \/\/         dataLabels: {\n        \/\/             y: 5,\n        \/\/             borderWidth: 0,\n        \/\/             useHTML: true\n        \/\/         }\n        \/\/     }\n        \/\/ },\n        series: [{\n            name: 'Kp',\n            data: [],\n            dataLabels: {\n            format:\n                '<div style=\"text-align:center\">' +\n                '<span style=\"font-size:25px\">\u041a\u0440{y}<\/span><br\/>' +\n                '<span style=\"font-size:18px\">' + moment().format('HH:mm') + ' <\/span>' +\n                '<\/div>'\n        },\n        tooltip: {\n            valueSuffix: ' Kp'\n        }\n\n        }]\n    });\n\/\/   console.log(chart_Kp_gauge)\n\n\n});\n<\/script>\n\n<script>\n  const kpButton = document.getElementById(\"kp-button\");\n  const kpForecast = document.getElementById(\"kp-forecast\");\n  kpButton.addEventListener(\"click\", function() {\n    if (kpForecast.style.display === \"none\") {\n      kpForecast.style.display = \"block\";\n    } else {\n      kpForecast.style.display = \"none\";\n    }\n  });\n<\/script>\n\n<style>\n  #kp-forecast ul {\n    list-style: none;\n    margin: 0;\n    padding: 0;\n  }\n  \n  #kp-forecast li {\n    padding: 10px;\n    background-color: #f5f5f5;\n    border-bottom: 1px solid #e0e0e0;\n    cursor: pointer;\n  }\n  \n  #kp-forecast li:hover {\n    background-color: #e0e0e0;\n  }\n  #kp-forecast {\n  opacity: 1;\n  visibility: visible;\n  transition: opacity 0.5s ease-in-out;\n}\n\n<\/style>\n\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-719cb8b8 my-widget e-flex e-con-boxed e-con e-child\" data-id=\"719cb8b8\" data-element_type=\"container\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-47ee942f e-flex e-con-boxed e-con e-child\" data-id=\"47ee942f\" data-element_type=\"container\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-604ba62e elementor-widget elementor-widget-heading\" data-id=\"604ba62e\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0421\u043e\u043b\u043d\u0435\u0447\u043d\u0430\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c <span class=\"text-primary\" data-bs-toggle=\"tooltip\" aria-label=\"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435  \u043e \u0441\u043e\u043b\u043d\u0435\u0447\u043d\u043e\u043c \u0432\u0435\u0442\u0440\u0435 \u0438 \u043c\u0435\u0436\u043f\u043b\u0430\u043d\u0435\u0442\u043d\u043e\u043c \u043c\u0430\u0433\u043d\u0438\u0442\u043d\u043e\u043c \u043f\u043e\u043b\u0435, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043a\u043e\u0441\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u0430 DSCOVR. \u042d\u0442\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438\u0433\u0440\u0430\u044e\u0442 \u043a\u043b\u044e\u0447\u0435\u0432\u0443\u044e \u0440\u043e\u043b\u044c \u0432 \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0430\u0432\u0440\u043e\u0440\u0430\u043b\u044c\u043d\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438. \u0427\u0435\u043c \u0432\u044b\u0448\u0435 \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0431\u043b\u0430\u0433\u043e\u043f\u0440\u0438\u044f\u0442\u043d\u044b\u043c\u0438 \u0434\u043b\u044f \u0430\u0432\u0440\u043e\u0440\u0430\u043b\u044c\u043d\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0441\u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f. \" data-bs-original-title=\"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435  \u043e \u0441\u043e\u043b\u043d\u0435\u0447\u043d\u043e\u043c \u0432\u0435\u0442\u0440\u0435 \u0438 \u043c\u0435\u0436\u043f\u043b\u0430\u043d\u0435\u0442\u043d\u043e\u043c \u043c\u0430\u0433\u043d\u0438\u0442\u043d\u043e\u043c \u043f\u043e\u043b\u0435, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043a\u043e\u0441\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u0430 DSCOVR. \u042d\u0442\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438\u0433\u0440\u0430\u044e\u0442 \u043a\u043b\u044e\u0447\u0435\u0432\u0443\u044e \u0440\u043e\u043b\u044c \u0432 \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0430\u0432\u0440\u043e\u0440\u0430\u043b\u044c\u043d\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438. \u0427\u0435\u043c \u0432\u044b\u0448\u0435 \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0431\u043b\u0430\u0433\u043e\u043f\u0440\u0438\u044f\u0442\u043d\u044b\u043c\u0438 \u0434\u043b\u044f \u0430\u0432\u0440\u043e\u0440\u0430\u043b\u044c\u043d\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0441\u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f. \"><i class=\"bi bi-info\" aria-hidden=\"true\"><\/i><\/span><\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-23e057f0 elementor-widget elementor-widget-html\" data-id=\"23e057f0\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<br\/>\n<div class=\"alert alert-success\">\u041b\u0438\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0442\u043c\u0435\u0447\u0430\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043d\u0430 \u0437\u0435\u043c\u043b\u0435 \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u043b\u043d\u0435\u0447\u043d\u043e\u043c\u0443 \u0432\u0435\u0442\u0440\u0443 \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0439\u0442\u0438 \u0434\u043e \u0437\u0435\u043c\u043b\u0438 \u043f\u0440\u0438 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 (<b><span id=\"Leadtime_min\">63<\/span> \u043c\u0438\u043d\u0443\u0442(\u044b)<\/b>). <\/div>\n<script>\n    \n<\/script>\n\n<\/script>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-121a455f e-con-full e-flex e-con e-child\" data-id=\"121a455f\" data-element_type=\"container\" data-settings=\"{&quot;animation&quot;:&quot;none&quot;,&quot;content_width&quot;:&quot;full&quot;,&quot;container_type&quot;:&quot;flex&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-7ea1c797 e-con-full e-flex e-con e-child\" data-id=\"7ea1c797\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;full&quot;,&quot;container_type&quot;:&quot;flex&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-485d5e21 e-con-full e-flex e-con e-child\" data-id=\"485d5e21\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;full&quot;,&quot;container_type&quot;:&quot;flex&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-17f19130 elementor-widget elementor-widget-html\" data-id=\"17f19130\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\n<h5 class=\"PLwaarden my-2\">\u0421\u043e\u043b\u043d\u0435\u0447\u043d\u044b\u0439 \u0432\u0435\u0442\u0435\u0440<br>\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c: <span data-bs-toggle=\"tooltip\" data-bs-html=\"true\" data-bs-original-title=\" < 400: \u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c<br \/> > 400: \u041f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c<br \/> > 500: \u0423\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u0432\u044b\u0441\u043e\u043a\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c<br \/> > 700: \u0412\u044b\u0441\u043e\u043a\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c<br \/> > 900: \u041e\u0447\u0435\u043d\u044c \u0432\u044b\u0441\u043e\u043a\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\"> <span id=\"valPlasma_Speed\">381<\/span> \u043a\u043c\/\u0441\u0435\u043a <\/span><\/h5>\n<script>\n    \n<\/script>\n\n<\/script>\n<style>\nh5 {\n  text-align: center;\n}\n<\/style>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-2d662a90 e-flex e-con-boxed e-con e-child\" data-id=\"2d662a90\" data-element_type=\"container\" id=\"chart-plasma-speed\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-2dde400b e-flex e-con-boxed e-con e-child\" data-id=\"2dde400b\" data-element_type=\"container\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-6d657ebb e-flex e-con-boxed e-con e-child\" data-id=\"6d657ebb\" data-element_type=\"container\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-54ff597f elementor-widget elementor-widget-html\" data-id=\"54ff597f\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h5 class=\"PLwaarden my-2\">\u041f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c: <span data-bs-toggle=\"tooltip\" data-bs-html=\"true\" data-bs-original-title=\" < 10: \u041d\u0438\u0437\u043a\u0430\u044f \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c<br \/> > 20: \u0423\u043c\u0435\u0440\u0435\u043d\u043d\u0430\u044f \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c<br \/> > 40: \u0412\u044b\u0441\u043e\u043a\u0430\u044f \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c<br \/> > 60: \u041e\u0447\u0435\u043d\u044c \u0432\u044b\u0441\u043e\u043a\u0430\u044f \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c\"> <span id=\"valPlasma_Density\">3.45<\/span> p\/cm<sup>3<\/sup> <\/span><\/h5>\n<script>\n    \n<\/script>\n\n<\/script>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-4f2531a4 e-flex e-con-boxed e-con e-child\" data-id=\"4f2531a4\" data-element_type=\"container\" id=\"chart-plasma-density\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-46e24abd e-con-full e-flex e-con e-child\" data-id=\"46e24abd\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;full&quot;,&quot;container_type&quot;:&quot;flex&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-77489d88 e-flex e-con-boxed e-con e-child\" data-id=\"77489d88\" data-element_type=\"container\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-2e9db5f8 elementor-widget elementor-widget-html\" data-id=\"2e9db5f8\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h5 class=\"PLwaarden my-2\">\u041c\u0435\u0436\u043f\u043b\u0430\u043d\u0435\u0442\u043d\u043e\u0435 \u043c\u0430\u0433\u043d\u0438\u0442\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 (IMF)<br>Bt: <span data-bs-toggle=\"tooltip\" data-bs-html=\"true\" data-bs-original-title=\" > 10: \u0423\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u0441\u0438\u043b\u044c\u043d\u044b\u0439 IMF<br \/> > 20: \u0421\u0438\u043b\u044c\u043d\u044b\u0439 IMF<br \/> > 30: \u041e\u0447\u0435\u043d\u044c \u0441\u0438\u043b\u044c\u043d\u044b\u0439 IMF\"> <span id=\"valMag_Bt\">4.2<\/span> nT <span id=\"valMag_Bt_dir\"><\/span> <\/span><\/h5>\n<script>\n    \n<\/script>\n\n<\/script>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-36157d84 e-flex e-con-boxed e-con e-child\" data-id=\"36157d84\" data-element_type=\"container\" id=\"chart-mag-bt\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-5cf9604d e-con-full e-flex e-con e-child\" data-id=\"5cf9604d\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;full&quot;,&quot;container_type&quot;:&quot;flex&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-36775332 e-flex e-con-boxed e-con e-child\" data-id=\"36775332\" data-element_type=\"container\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-2d39b99a elementor-widget elementor-widget-html\" data-id=\"2d39b99a\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h5 class=\"PLwaarden my-2\">Bz: <span data-bs-toggle=\"tooltip\" data-bs-html=\"true\" data-bs-original-title=\" > 0: \u0421\u0435\u0432\u0435\u0440<br \/> < 0: \u042e\u0433<br \/> > -10: \u0423\u043c\u0435\u0440\u0435\u043d\u043d\u044b\u0439 \u044e\u0433<br \/> > -20: \u0421\u0438\u043b\u044c\u043d\u044b\u0439 \u044e\u0433\"> <span id=\"valMag_Bz\">1.14<\/span> nT <span id=\"valMag_Bz_dir\"><\/span> <\/span><\/h5>\n<script> \n    \n<\/script>\n\n<\/script>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-3aa3d175 my-gradient e-flex e-con-boxed e-con e-child\" data-id=\"3aa3d175\" data-element_type=\"container\" id=\"chart-mag-bz\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-682158d3 elementor-widget elementor-widget-html\" data-id=\"682158d3\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<script>\n\n    document.addEventListener('DOMContentLoaded', function () {\n        window.parseDate = (date) =>{\n            const dateString = date;\n            \nconst localTimestamp = Date.parse(dateString); \/\/ Parse as local time\n\n\/\/ Adjust for local timezone offset\nconst utcTimestamp = localTimestamp - new Date().getTimezoneOffset() * 60 * 1000;\n\n\nreturn utcTimestamp;\n        }\n        \/\/ getEarthLineTime();\n\n\/\/ \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0430 \u0441\u043e\u043b\u043d\u0435\u0447\u043d\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438\nfunction Mag_Bz_requestData() {\n    getEarthLineTime().then(() => {\n        var xhr = new XMLHttpRequest();\n    var url = \"https:\/\/services.swpc.noaa.gov\/products\/solar-wind\/mag-6-hour.json\";\n    \n    xhr.open(\"GET\", url, true);\n    \n    xhr.onload = function () {\n        if (xhr.status == 200) {\n            var data = JSON.parse(xhr.responseText);\n            \n            if (data && data.length > 1) {\n                var Bz = [];\n                var time = [];\n                \n                for (var i = 1; i < data.length; i++) {\n                    var bz = parseFloat(data[i][3]);\n                    var t = parseDate(data[i][0]);\n                    \/\/ console.log(t)\n                    if (t >= Date.now() - 3 * 60 * 60 * 1000) {\n                        Bz.push([t, bz]); \/\/ [timestamp, Bz]\n                        time.push(t);\n                    }\n                }\n                let content = document.getElementById(\"valMag_Bz\");\n\ncontent.textContent = Bz[Bz.length-1][1];\n                \/\/ console.log(Bz, 'bz') \n\n                \/\/ Update the series data\n                chart_Mag_Bz.series[0].setData(Bz);\n                \/\/ chart_Mag_Bz.yAxis[0].setExtremes(-4, 4);\n                \/\/ chart_Mag_Bz.series[1].setData([[Date.now(), -1000], [Date.now(), 1000]]);\n                chart_Mag_Bz.xAxis[0].options.plotLines[0].value = Math.floor(Date.now() - window.leadTime);\n                \/\/  console.log(new Date(Math.floor(Date.now() - window.leadTime)), Date.now() , 'aaa')\n          chart_Mag_Bz.xAxis[0].update();\n          chart_Mag_Bz.redraw();\n                \n            } else {\n                console.error('Invalid data format');\n            }\n        } else {\n            console.error('Failed to fetch data. Status:', xhr.status);\n        }\n    };\n    \n    \n    \n    xhr.send();\n    })\n    \n    \n}\nsetInterval(Mag_Bz_requestData, 60000);\n\nfunction Mag_Bt_requestData() {\n    getEarthLineTime().then(() => {\n    \/\/ \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 XMLHttpRequest\n    var xhr = new XMLHttpRequest();\n    \/\/ \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c URL-\u0430\u0434\u0440\u0435\u0441, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435\n    var url = \"https:\/\/services.swpc.noaa.gov\/products\/solar-wind\/mag-6-hour.json\";\n    \/\/ \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c\n    xhr.open(\"GET\", url, true);\n    \/\/ \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d \u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u043e\u0442\u0432\u0435\u0442\u0430\n    xhr.onload = function () {\n        \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u0442\u0430\u0442\u0443\u0441 \u043e\u0442\u0432\u0435\u0442\u0430\n        if (xhr.status == 200) {\n            \/\/ \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u043e\u0442\u0432\u0435\u0442 \u0432 JSON-\u0444\u043e\u0440\u043c\u0430\u0442\n            var data = JSON.parse(xhr.responseText);\n            \/\/ \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0443\u0441\u0442\u044b\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432\n            var Bt = [];\n            var time = [];\n            \/\/ \u041f\u0440\u043e\u0445\u043e\u0434\u0438\u043c \u043f\u043e \u0432\u0441\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u0434\u0430\u043d\u043d\u044b\u0445\n            \n            \/\/ \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432\n            chart_Mag_Bt.series[0].setData(Bt);\n            \n            for (var i = 1; i < data.length; i++) {\n                    var bt = parseFloat(data[i][6]);\n                    var t = parseDate(data[i][0]);\n                    if (t >= Date.now() - 3 * 60 * 60 * 1000) {\n                        Bt.push([t, bt]); \/\/ [timestamp, Bz]\n                        time.push(t);\n                    }\n                }\n                let content = document.getElementById(\"valMag_Bt\");\n\ncontent.textContent = Bt[Bt.length-1][1];\n\n                \/\/ Update the series data\n                chart_Mag_Bt.series[0].setData(Bt);\n                \/\/ console.log(Bt, 'bt')\n                \/\/ chart_Mag_Bz.yAxis[0].setExtremes(-4, 4);\n                \/\/ chart_Mag_Bz.series[1].setData([[Date.now(), -1000], [Date.now(), 1000]]);\n                chart_Mag_Bt.xAxis[0].options.plotLines[0].value = Date.now() - window.leadTime;\n                \/\/  console.log(Date.now())\n          chart_Mag_Bt.xAxis[0].update();\n          chart_Mag_Bt.redraw();\n        }\n    };\n    \/\/ \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441\n    xhr.send();\n    })\n}\nsetInterval(Mag_Bt_requestData, 60000);\nfunction Plasma_Speed_requestData() {\n    getEarthLineTime().then(() => {\n    \/\/ \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 XMLHttpRequest\n    var xhr = new XMLHttpRequest();\n    \/\/ \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c URL-\u0430\u0434\u0440\u0435\u0441, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435\n    var url = \"https:\/\/services.swpc.noaa.gov\/products\/solar-wind\/plasma-6-hour.json\";\n    \/\/ \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c\n    xhr.open(\"GET\", url, true);\n    \/\/ \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d \u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u043e\u0442\u0432\u0435\u0442\u0430\n    xhr.onload = function () {\n        \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u0442\u0430\u0442\u0443\u0441 \u043e\u0442\u0432\u0435\u0442\u0430\n        if (xhr.status == 200) {\n            \/\/ \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u043e\u0442\u0432\u0435\u0442 \u0432 JSON-\u0444\u043e\u0440\u043c\u0430\u0442\n            var data = JSON.parse(xhr.responseText);\n            \/\/ \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0443\u0441\u0442\u044b\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432\n            var speed = [];\n            var time = [];\n            \/\/ \u041f\u0440\u043e\u0445\u043e\u0434\u0438\u043c \u043f\u043e \u0432\u0441\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u0434\u0430\u043d\u043d\u044b\u0445\n            for (var i = 0; i < data.length; i++) {\n                \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438\u0437 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\n                var s =  parseFloat(data[i][2]);\n                var t = parseDate(data[i][0]);\n                \/\/ \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b\n                if (t >= Date.now() - 3 * 60 * 60 * 1000) {\n                    speed.push([t, s]);\n                    time.push(t);\n                }\n            }\n            let content = document.getElementById(\"valPlasma_Speed\");\n\ncontent.textContent = speed[speed.length-1][1];\n            \/\/ \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432\n            chart_Plasma_Speed.series[0].setData(speed);\n            chart_Plasma_Speed.xAxis[0].options.plotLines[0].value = Date.now() - window.leadTime;\n            \/\/ console.log(new Date(Date.now() - window.leadTime))\n                \/\/  console.log(Date.now())\n          chart_Plasma_Speed.xAxis[0].update();\n          chart_Plasma_Speed.redraw();\n        }\n    };\n    \/\/ \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441\n    xhr.send();\n    })\n}\nsetInterval(Plasma_Speed_requestData, 60000);\nfunction Plasma_Density_requestData() {\n    getEarthLineTime().then(() => {\n    \/\/ \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 XMLHttpRequest\n    var xhr = new XMLHttpRequest();\n    \/\/ \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c URL-\u0430\u0434\u0440\u0435\u0441, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435\n    var url = \"https:\/\/services.swpc.noaa.gov\/products\/solar-wind\/plasma-6-hour.json\";\n    \/\/ \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c\n    xhr.open(\"GET\", url, true);\n    \/\/ \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d \u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u043e\u0442\u0432\u0435\u0442\u0430\n    xhr.onload = function () {\n        \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u0442\u0430\u0442\u0443\u0441 \u043e\u0442\u0432\u0435\u0442\u0430\n        if (xhr.status == 200) {\n            \/\/ \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u043e\u0442\u0432\u0435\u0442 \u0432 JSON-\u0444\u043e\u0440\u043c\u0430\u0442\n            var data = JSON.parse(xhr.responseText);\n            \/\/ \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0443\u0441\u0442\u044b\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432\n            var density = [];\n            var time = [];\n            \/\/ \u041f\u0440\u043e\u0445\u043e\u0434\u0438\u043c \u043f\u043e \u0432\u0441\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u0434\u0430\u043d\u043d\u044b\u0445\n            for (var i = 0; i < data.length; i++) {\n                \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438\u0437 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\n                var d =  parseFloat(data[i][1]);\n                var t = parseDate(data[i][0]);\n                \/\/ \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b\n                if (t >= Date.now() - 3 * 60 * 60 * 1000) {\n                    density.push([t, d]);\n                    time.push(t);\n                }\n            }\n            let content = document.getElementById(\"valPlasma_Density\");\n\ncontent.textContent = density[density.length-1][1];\n            \/\/ \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432\n            chart_Plasma_Density.series[0].setData(density);\n            chart_Plasma_Density.xAxis[0].options.plotLines[0].value =Date.now() - window.leadTime;\n                \/\/  console.log(Date.now())\n          chart_Plasma_Density.xAxis[0].update();\n          chart_Plasma_Density.redraw();\n        }\n    };\n    \/\/ \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441\n    xhr.send();\n    })\n}\nsetInterval(Plasma_Density_requestData, 60000);\n\n\nvar chart_Mag_Bz = Highcharts.chart('chart-mag-bz',{\n    chart: {\n        \n      type: 'line',\n      backgroundColor: null,\n      renderTo: 'Bz',\n      events: {\n        load: Mag_Bz_requestData\n      },\n      animation: false\n    },\n    title: {\n      text: null,\n      style: {\n        fontSize: '15px'\n      }\n    },\n    xAxis: {\n        tickColor: '#fff',\n        lineColor: '#fff',\n        labels: {\n                distance: 10,\n                style: {\n        \/\/   color: '#fff' \/\/ white color\n        \n        \n        \n        },\n        format: dateTimeFormat,\n            },\n      type: 'datetime',\n      plotLines: [\n        {\n        \/\/   color: '#fff',\n          width: 2,\n          label: {\n            text: '\u0422\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435',\n            style: {\n              color: '#fff',\n             fontWeight: 'bold'\n            }\n          },\n          zIndex: 7,\n          value: Date.now()\n        }\n      ] \n    },\n    yAxis: {\n        color: '#fff',\n      title: {\n        text: 'Bz',\n        color: '#fff',\n      },\n      labels: {\n                distance: 10,\n                style: {\n          color: '#fff' \/\/ white color\n        },\n            },\n    },\n    plotOptions: {\n      line: {\n        color: 'orange',\n        connectNulls: true,\n        negativeColor: 'red',\n        marker: {\n          enabled: false\n        },\n        states: {\n          hover: {\n            enabled: true,\n            lineWidthPlus: 0\n          }\n        },\n        shadow: true\n      }\n    },\n    series: [\n      {\n        name: 'Bz',\n        data: []\n      },\n      {\n            name: 'Current Time',\n            type: 'line',\n            data: [],\n            color: 'red',\n            marker: {\n                enabled: false\n            },\n            enableMouseTracking: false\n        }\n    ],\n    tooltip: {\n      valueSuffix: ' nT',\n    \/\/   color: '#fff',\n      dateTimeLabelFormats: {\n        minute: '%A, %B %e %Y, %H:%M',\n        hour: '%A, %B %e %Y, %H:%M',\n        day: '%A, %B %e %Y'\n      }\n    },\n    legend: {\n      enabled: false\n    },\n    credits: {\n            href: false,\n            text: '\u00a9NOAA SWPC'\n          }\n  });\n  var chart_Mag_Bt = Highcharts.chart('chart-mag-bt', {\n      chart: {\n        type: 'area',\n        backgroundColor: null,\n        renderTo: 'Bt',\n        events: {\n          load: Mag_Bt_requestData\n        },\n        animation: false\n      },\n      title: {\n        text: null,\n        style: {\n          fontSize: '15px'\n        }\n      },\n      xAxis: {\n          tickColor: '#fff',\n        lineColor: '#fff',\n      type: 'datetime',\n      labels: {\n        format: dateTimeFormat,\n        },\n      plotLines: [\n        {\n          color: 'gray',\n          width: 2,\n          label: {\n            text: '\u0422\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435',\n            style: {\n              color: 'gray',\n              fontWeight: 'bold'\n            }\n          },\n          zIndex: 7\n        }\n      ]\n    },\n      yAxis: {\n        title: {\n          text: 'nT'\n        },\n        min: 0\n      },\n      plotOptions: {\n        area: {\n          linewidth: 1,\n          connectNulls: true,\n          fillOpacity: 0.5,\n          fillColor: {\n            linearGradient: [\n              0,\n              150,\n              0,\n              0\n            ],\n            stops: [\n              [0,\n              '#7BFF00'],\n              [\n                1,\n                '#7BFF00'\n              ]\n            ]\n          },\n          marker: {\n            enabled: false\n          },\n          states: {\n            hover: {\n              enabled: true,\n              lineWidthPlus: 0\n            }\n          }\n        }\n      },\n      series: [\n        {\n          name: 'Bt',\n          data: []\n        }\n      ],\n      tooltip: {\n        valueSuffix: ' nT',\n        dateTimeLabelFormats: {\n          minute: '%A, %B %e %Y, %H:%M',\n          hour: '%A, %B %e %Y, %H:%M',\n          day: '%A, %B %e %Y'\n        }\n      },\n      legend: {\n        enabled: false\n      },\n      credits: {\n        href: false,\n        text: '\u00a9NOAA SWPC'\n      }\n    });\n  var chart_Plasma_Speed = Highcharts.chart('chart-plasma-speed',{\n      \n    chart: {\n        \n      type: 'area',\n      backgroundColor: null,\n      renderTo: 'speed',\n      events: {\n        load: Plasma_Speed_requestData\n      },\n      animation: false,\n      \n    },\n    title: {\n      text: null,\n      style: {\n        fontSize: '15px'\n      }\n    },\n    xAxis: {\n        tickColor: '#fff',\n        lineColor: '#fff',\n      type: 'datetime',\n      labels: {\n        format: dateTimeFormat,\n        },\n      plotLines: [\n        {\n          color: 'gray',\n          width: 2,\n          label: {\n            text: '\u0422\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435',\n            style: {\n              color: 'gray',\n              fontWeight: 'bold'\n            }\n          },\n          zIndex: 7\n        }\n      ]\n    },\n    yAxis: {\n      title: {\n        text: '\u043a\u043c\/\u0441\u0435\u043a'\n      }\n    },\n    plotOptions: {\n      area: {\n        linewidth: 1,\n        connectNulls: true,\n        fillOpacity: 0.5,\n        fillColor: {\n          linearGradient: [\n            0,\n            150,\n            0,\n            0\n          ],\n          stops: [\n            [0,\n            '#7BFF00'],\n            [\n              1,\n              '#7BFF00'\n            ]\n          ]\n        },\n        marker: {\n          enabled: false\n        },\n        states: {\n          hover: {\n            enabled: true,\n            lineWidthPlus: 0\n          }\n        }\n      }\n    },\n    series: [\n      {\n        name: '\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c',\n        data: []\n      }\n    ],\n    tooltip: {\n      valueSuffix: ' km\/sec',\n      dateTimeLabelFormats: {\n        minute: '%A, %B %e %Y, %H:%M',\n        hour: '%A, %B %e %Y, %H:%M',\n        day: '%A, %B %e %Y'\n      }\n    },\n    legend: {\n      enabled: false\n    },\n    credits: {\n            href: false,\n            text: '\u00a9NOAA SWPC'\n          }\n  });\n  var chart_Plasma_Density = Highcharts.chart('chart-plasma-density',{\n    chart: {\n      type: 'area',\n      backgroundColor: null,\n      renderTo: 'density',\n      events: {\n        load: Plasma_Density_requestData\n      },\n      animation: false\n    },\n    title: {\n      text: null,\n      style: {\n        fontSize: '15px'\n      }\n    },\n    xAxis: {\n        tickColor: '#fff',\n        lineColor: '#fff',\n        labels: {\n        format: dateTimeFormat,\n        },\n      type: 'datetime',\n      plotLines: [\n        {\n          color: 'gray',\n          width: 2,\n          label: {\n            text: '\u0422\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435',\n            style: {\n              color: 'gray',\n              fontWeight: 'bold'\n            }\n          },\n          zIndex: 7\n        }\n      ]\n    },\n    yAxis: {\n      title: {\n        text: 'p\/cm3'\n      },\n      min: 0\n    },\n    plotOptions: {\n      area: {\n        linewidth: 1,\n        connectNulls: true,\n        fillOpacity: 0.5,\n        fillColor: {\n          linearGradient: [\n            0,\n            150,\n            0,\n            0\n          ],\n          stops: [\n            [0,\n            '#7BFF00'],\n            [\n              1,\n              '#7BFF00'\n            ]\n          ]\n        },\n        marker: {\n          enabled: false\n        },\n        states: {\n          hover: {\n            enabled: true,\n            lineWidthPlus: 0\n          }\n        }\n      }\n    },\n    series: [\n      {\n        name: '\u041f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c',\n        data: []\n      }\n    ],\n    tooltip: {\n      valueSuffix: ' p\/cm\u00b3',\n      dateTimeLabelFormats: {\n        minute: '%A, %B %e %Y, %H:%M',\n        hour: '%A, %B %e %Y, %H:%M',\n        day: '%A, %B %e %Y'\n      }\n    },\n    legend: {\n      enabled: false\n    },\n    credits: {\n            href: false,\n            text: '\u00a9NOAA SWPC'\n          }\n    \n  });\n})\n<\/script>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-441583da e-con-full e-flex e-con e-child\" data-id=\"441583da\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;full&quot;,&quot;container_type&quot;:&quot;flex&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-780fce59 my-widget e-flex e-con-boxed e-con e-child\" data-id=\"780fce59\" data-element_type=\"container\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-acd6af9 elementor-widget elementor-widget-html\" data-id=\"acd6af9\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h5 class=\"card-header text-center PLwaarden\"><span data-bs-toggle=\"tooltip\" data-bs-original-title=\"\u041f\u0440\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0445 \u043c\u0435\u043d\u0435\u0435 20 \u0413\u0412\u0442 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u043c\u0430\u043b\u043e\u0437\u0430\u043c\u0435\u0442\u043d\u043e\u0435 \u0438\u043b\u0438 \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u043e\u0435 \u043f\u043e\u043b\u044f\u0440\u043d\u043e\u0435 \u0441\u0438\u044f\u043d\u0438\u0435. \u0414\u043b\u044f \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 20\u201350 \u0413\u0412\u0442, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0431\u043b\u0438\u0437\u043a\u043e\u0435 \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0435\u0433\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f, \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u043f\u0440\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0445 \u0432\u044b\u0448\u0435 50 \u043f\u043e\u043b\u044f\u0440\u043d\u043e\u0435 \u0441\u0438\u044f\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0437\u0430\u043c\u0435\u0442\u043d\u044b\u043c \u0441 \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435\u043c \u043f\u043e \u043d\u0435\u0431\u0443. \u041a\u043e\u0433\u0434\u0430 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 100, \u044d\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0433\u0435\u043e\u043c\u0430\u0433\u043d\u0438\u0442\u043d\u043e\u0439 \u0431\u0443\u0440\u0435\u0439.\">\u041c\u043e\u0449\u043d\u043e\u0441\u0442\u044c \u0432 \u043f\u043e\u043b\u0443\u0448\u0430\u0440\u0438\u044f\u0445<\/span><\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-3f9043e3 e-flex e-con-boxed e-con e-child\" data-id=\"3f9043e3\" data-element_type=\"container\" id=\"chart-hemi\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-715746f7 elementor-widget elementor-widget-html\" data-id=\"715746f7\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<table class=\"table table-sm table-striped mb-0\"> <tbody> <tr> <td>\u0421\u0435\u0432\u0435\u0440\u043d\u043e\u0435 \u043f\u043e\u043b\u0443\u0448\u0430\u0440\u0438\u0435<\/td> <td><span id=\"valHemispheric_PowerBadgeN\"><span class=\"badge badge-HPlow\" id='nhemi'>27 GW<\/span><\/span><\/td> <\/tr> <tr> <td>\u042e\u0436\u043d\u043e\u0435 \u043f\u043e\u043b\u0443\u0448\u0430\u0440\u0438\u0435<\/td> <td><span id=\"valHemispheric_PowerBadgeS\"><span class=\"badge badge-HPlow\" id='shemi'>25 GW<\/span><\/span><\/td> <\/tr> <\/tbody> <\/table>\n<script>\n    document.addEventListener('DOMContentLoaded', function () {\n        function getColorForPower(power) {\n  if (power >= 0 && power < 20) {\n    return 'blue';\n  } else if (power >= 20 && power < 50) {\n    return 'yellow';\n  } else if (power >= 50 && power < 100) {\n    return 'red';\n  } else {\n    return 'purple'; \/\/ Adjust this color for power values >= 100\n  }\n}\n        \n        function Hemispheric_Power_requestData() {\n            getEarthLineTime().then(() => {\n            \/\/ Create a new XMLHttpRequest object\n        let xhr = new XMLHttpRequest();\n        \n        \/\/ Define the URL to fetch the data from\n        let url = \"https:\/\/services.swpc.noaa.gov\/text\/aurora-nowcast-hemi-power.txt\";\n        \n        \/\/ Open a GET request to the URL\n        xhr.open(\"GET\", url);\n        \n        \/\/ Set the response type to text\n        xhr.responseType = \"text\";\n        \n        \/\/ Define a function to handle the response\n        xhr.onload = function() {\n          \/\/ Check if the status is OK\n          if (xhr.status === 200) {\n            \/\/ Get the response text\n            let text = xhr.responseText;\n        \n            \/\/ Split the text by line breaks\n            let lines = text.split(\"\\n\");\n        \n            \/\/ Create an empty array to store the data\n            var dataN = [];\n            var dataS = [];\n            let now = Date.now(); \/\/ Current timestamp in milliseconds\n            let sixHoursAgo = now - 6 * 60 * 60 * 1000; \/\/ Timestamp 6 hours ago\n            \/\/ Loop through the lines\n            for (let i = 0; i < lines.length; i++) {\n              \/\/ Skip the lines that start with #\n              if (lines[i].startsWith(\"#\")) {\n                continue;\n              }\n        \n              \/\/ Split the line by whitespace\n              let fields = lines[i].split(\/\\s+\/);\n              if (fields[1] && fields[2] && fields[3]){\n                  \/\/ Parse the fields as numbers\n              let observ = parseDate(fields[0]); \/\/ Time in seconds since 1970-01-01 00:00:00 UTC\n              let forecast = Date.parse(fields[1].replace('_', 'T') + ':00.000Z');\n              let pN = Number(fields[2]); \/\/ Latitude in degrees\n              let pS = -Number(fields[3]); \/\/ Longitude in degrees\n                \/\/ console.log(forecast >= sixHoursAgo)\n            if (forecast >= sixHoursAgo) {\n                \n     \/\/   console.log(fields[1].replace('_', 'T') + ':00.000Z')\n              \n                  \n            \n                  \/\/ Create an object to store the data\n                  dataS.push([forecast, pS]);\n                  dataN.push([forecast, pN]);\n                }\n                else {\n                    continue;\n                }\n           \n              }\n              \nlet nhemi = document.getElementById(\"nhemi\");\n                              nhemi.textContent = dataN[dataN.length-1][1] + \" GW\";\n                              let shemi = document.getElementById(\"shemi\");\n                              shemi.textContent = Math.abs(dataS[dataS.length-1][1]) + \" GW\";\n\n        \n              \/\/ Push the object to the data array\n            \/\/   data.push(obj);\n            }\n            \/\/ chart_Hemispheric_Power.series[0].setData(dataN)\n            \/\/ chart_Hemispheric_Power.series[1].setData(dataS)\n            chart_Hemispheric_Power.series[0].setData(dataN.map(point => ({\n    x: point[0],\n    y: point[1],\n    color: getColorForPower(Math.abs(point[1]))\n  })));\n\n  chart_Hemispheric_Power.series[1].setData(dataS.map(point => ({\n    x: point[0],\n    y: point[1],\n    color: getColorForPower(Math.abs(point[1]))\n  })));\n  \n   chart_Hemispheric_Power.xAxis[0].options.plotLines[0].value =Date.now();\n                \/\/  console.log(Date.now())\n           chart_Hemispheric_Power.xAxis[0].update();\n          \n\n\n                  chart_Hemispheric_Power.redraw();\n\n            \/\/ Do something with the data array\n            \/\/ console.log(dataN, dataS, 'power');\n          } else {\n            \/\/ Handle the error\n            console.error(\"Request failed: \" + xhr.status);\n          }\n        };\n        \n        \/\/ Send the request\n        xhr.send();\n        })\n        };\n              setInterval(Hemispheric_Power_requestData, 60000);\n        var chart_Hemispheric_Power = Highcharts.chart('chart-hemi', {\n          chart: {\n            type: 'column',\n            backgroundColor: null,\n            renderTo: 'Hemispheric_Power',\n            events: {\n              load: Hemispheric_Power_requestData\n            },\n            animation: false\n          },\n          title: {\n            text: null\n          },\n          xAxis: {\n              tickColor: '#fff',\n        lineColor: '#fff',\n              labels: {\n        format: dateTimeFormat,\n        },\n            type: 'datetime',\n            plotLines: [\n        {\n        \/\/   color: '#fff',\n          width: 2,\n          label: {\n            text: '\u0422\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435',\n            style: {\n              color: '#fff',\n             fontWeight: 'bold'\n            }\n          },\n          zIndex: 7,\n          value: Date.now()\n        }\n      ] \n          },\n          yAxis: {\n            title: {\n              text: '\u0413\u0438\u0433\u0430\u0432\u0430\u0442\u0442'\n            },\n            labels: {\n              formatter: function () {\n                return Math.abs(this.value);\n              }\n            }\n          },\n          plotOptions: {\n            series: {\n              stacking: 'normal',\n              borderColor: null,\n              borderWidth: 0\n            }\n          },\n         \n          tooltip: {\n            formatter: function () {\n              var graph_date = Highcharts.dateFormat('%A, %B %e %Y %H:%M: ', this.x);\n              return '<b>' + this.series.name + '<\/b><br\/>' + graph_date + Highcharts.numberFormat(Math.abs(this.point.y), 0) + 'GW';\n            }\n          },\n          series: [\n            {\n              name: '\u0421\u0435\u0432\u0435\u0440\u043d\u043e\u0435 \u043f\u043e\u043b\u0443\u0448\u0430\u0440\u0438\u0435',\n              data: []\n            },\n            {\n              name: '\u042e\u0436\u043d\u043e\u0435 \u043f\u043e\u043b\u0443\u0448\u0430\u0440\u0438\u0435',\n              data: [],\n            }\n          ],\n          legend: {\n            enabled: false\n          },\n          credits: {\n            href: false,\n            text: '\u00a9NOAA SWPC'\n          }\n        });\n    });\n\n<\/script>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-46888955 my-widget e-flex e-con-boxed e-con e-child\" data-id=\"46888955\" data-element_type=\"container\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5db096d3 elementor-widget elementor-widget-heading\" data-id=\"5db096d3\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0418\u043d\u0434\u0435\u043a\u0441 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u043f\u0430\u0434\u0430 (DST)  <span class=\"text-primary\" data-bs-toggle=\"tooltip\" aria-label=\"DST \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043b\u044c\u0446\u0435\u0432\u044b\u0445 \u0442\u043e\u043a\u043e\u0432 \u0432 \u043c\u0430\u0433\u043d\u0438\u0442\u043e\u0441\u0444\u0435\u0440\u0435 \u0417\u0435\u043c\u043b\u0438. \u041d\u0438\u0437\u043a\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u044d\u043d\u0435\u0440\u0433\u0438\u0438, \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u043e\u0439 \u0432 \u043c\u0430\u0433\u043d\u0438\u0442\u043e\u0441\u0444\u0435\u0440\u0435.\" data-bs-original-title=\"DST \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043b\u044c\u0446\u0435\u0432\u044b\u0445 \u0442\u043e\u043a\u043e\u0432 \u0432 \u043c\u0430\u0433\u043d\u0438\u0442\u043e\u0441\u0444\u0435\u0440\u0435 \u0417\u0435\u043c\u043b\u0438. \u041d\u0438\u0437\u043a\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u044d\u043d\u0435\u0440\u0433\u0438\u0438, \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u043e\u0439 \u0432 \u043c\u0430\u0433\u043d\u0438\u0442\u043e\u0441\u0444\u0435\u0440\u0435.\"><i class=\"bi bi-info\" aria-hidden=\"true\"><\/i><\/span><\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-4d3684e4 e-flex e-con-boxed e-con e-child\" data-id=\"4d3684e4\" data-element_type=\"container\" id=\"chart-dst\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3c8f7bc1 elementor-widget elementor-widget-html\" data-id=\"3c8f7bc1\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<script>\n    document.addEventListener('DOMContentLoaded', function () {\n    var chart_DST;\n    function DST_requestData() {\n      var xhr = new XMLHttpRequest();\n        xhr.open('GET', 'https:\/\/services.swpc.noaa.gov\/products\/kyoto-dst.json');\n      \n      xhr.onload = function () {\n        chart_DST.showLoading();\n        if (xhr.status === 200) {\n            \n          var jsonobject = JSON.parse(xhr.responseText);\n          \n          var i;\n        \/\/   var DST = []\n        \/\/   for (i = 1; i < Object.keys(jsonobject).length; ++i) {\n        \/\/       var t = parseDate(jsonobject[i][0])\n        \/\/       var dst = parseFloat(jsonobject[i][1])\n        \/\/       DST.push([t, dst])\n        \/\/   }\n          var DST = []\n            var lastDate = parseDate(jsonobject[Object.keys(jsonobject).length - 1][0])\n            \/\/ console.log(lastDate, 'ddd')\n            var eightHoursAgo = new Date(lastDate - 8 * 60 * 60 * 1000)\n            for (i = Object.keys(jsonobject).length - 1; i >= 1; --i) {\n                var t = parseDate(jsonobject[i][0])\n                if (t >= eightHoursAgo) {\n                    var dst = parseFloat(jsonobject[i][1])\n                    DST.unshift([t, dst])\n                } else {\n                    break\n                }\n            }\n        \/\/   chart_DST.yAxis[0].setExtremes(jsonobject.min, jsonobject.max);\n            chart_DST.series[1].setData(DST)\n          chart_DST.xAxis[0].options.plotLines[0].value = Date.now();\n          chart_DST.xAxis[0].update();\n          \n          chart_DST.redraw();\n          chart_DST.hideLoading();\n          setTimeout(DST_requestData, 180000);\n        } else {\n          chart_DST.hideLoading();\n        }\n      };\n      xhr.send();\n    }\n     chart_DST = Highcharts.chart('chart-dst',{\n      chart: {\n        type: 'line',\n        backgroundColor: null,\n        renderTo: 'DST',\n        events: {\n          load: DST_requestData\n        },\n        animation: false\n      },\n      title: {\n        text: null\n      },\n      xAxis: {\n          tickColor: '#fff',\n        lineColor: '#fff',\n        type: 'datetime',\n        labels: {\n        format: dateTimeFormat,\n        },\n        plotLines: [\n          {\n            color: 'gray',\n            width: 2,\n            label: {\n              text: '\u0422\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435',\n              style: {\n                color: 'gray',\n                fontWeight: 'bold'\n              }\n            },\n            zIndex: 7\n          }\n        ]\n      },\n      yAxis: {\n        type: 'line',\n        title: {\n          text: 'nT'\n        },\n        plotBands: [\n          {\n            color: '#C80000',\n            from: - 1500,\n            to: - 250,\n            label: {\n              text: '\u042d\u043a\u0441\u0442\u0440\u0435\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0448\u0442\u043e\u0440\u043c',\n              align: 'right',\n              x: - 10,\n              style: {\n                fontWeight: 'bold'\n              }\n            }\n          },\n          {\n            color: '#FF0000',\n            from: - 100,\n            to: - 250,\n            label: {\n              text: '\u0421\u0438\u043b\u044c\u043d\u044b\u0439 \u0448\u0442\u043e\u0440\u043c',\n              align: 'right',\n              x: - 10,\n              style: {\n                fontWeight: 'bold'\n              }\n            }\n          },\n          {\n            color: '#FF9600',\n            from: - 50,\n            to: - 100,\n            label: {\n              text: '\u0423\u043c\u0435\u0440\u0435\u043d\u043d\u044b\u0439 \u0448\u0442\u043e\u0440\u043c',\n              align: 'right',\n              x: - 10,\n              style: {\n                fontWeight: 'bold'\n              }\n            }\n          }\n        ]\n      },\n      plotOptions: {\n        line: {\n          color: 'black',\n          connectNulls: true,\n          marker: {\n            enabled: false\n          },\n          shadow: true\n        }\n      },\n      series: [\n        {\n          name: '\u041f\u0440\u043e\u0433\u043d\u043e\u0437\u0438\u0440\u0443\u0435\u043c\u044b\u0439 DST',\n          data: [],\n          color: 'black'\n        },\n        {\n          name: '\u041d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u044b\u0439 DST',\n          data: [],\n          color: 'red'\n        }\n      ],\n      tooltip: {\n        valueSuffix: ' nT',\n        dateTimeLabelFormats: {\n          minute: '%A, %B %e %Y, %H:%M',\n          hour: '%A, %B %e %Y, %H:%M',\n          day: '%A, %B %e %Y'\n        }\n      },\n      credits: {\n        href: false,\n        text: 'WDC Kyoto Observatory'\n      }\n    });\n    });\n    \n<\/script>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-4573bc43 my-widget e-flex e-con-boxed e-con e-child\" data-id=\"4573bc43\" data-element_type=\"container\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-2d822b13 elementor-widget elementor-widget-heading\" data-id=\"2d822b13\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><h3 class=\"card-header text-center\">\u041c\u0430\u0433\u043d\u0438\u0442\u043e\u043c\u0435\u0442\u0440 (\u041a\u0438\u0440\u0443\u043d\u0430, \u0428\u0432\u0435\u0446\u0438\u044f) <span class=\"text-primary\" data-bs-toggle=\"tooltip\" aria-label=\"\u041c\u0430\u0433\u043d\u0438\u0442\u043e\u043c\u0435\u0442\u0440 - \u044d\u0442\u043e \u043f\u0440\u0438\u0431\u043e\u0440, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0441\u0438\u043b\u044b \u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043c\u0430\u0433\u043d\u0438\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0417\u0435\u043c\u043b\u0438 \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u0412 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u043d\u0430\u0448\u0438\u0445 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0439 \u043c\u044b \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0439 (X \u0438\u043b\u0438 H) \u0433\u0435\u043e\u043c\u0430\u0433\u043d\u0438\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f. \u041d\u0430\u0447\u0430\u043b\u043e \u043c\u0430\u0433\u043d\u0438\u0442\u043d\u043e\u0433\u043e \u0448\u0442\u043e\u0440\u043c\u0430 \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u044b\u043c \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435\u043c \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0439 \u0433\u0435\u043e\u043c\u0430\u0433\u043d\u0438\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u043f\u043e \u0432\u0441\u0435\u0439 \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u0438 \u0417\u0435\u043c\u043b\u0438. \u041a\u043e\u0433\u0434\u0430 \u043f\u043b\u0430\u0437\u043c\u0430 \u0445\u0432\u043e\u0441\u0442\u0430 \u043c\u0430\u0433\u043d\u0438\u0442\u043e\u0441\u0444\u0435\u0440\u044b \u0432\u044b\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u043e\u0447\u043d\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0417\u0435\u043c\u043b\u0438, \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u0442\u0441\u044f \u0440\u0435\u0437\u043a\u043e\u0435 \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u0435 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0439 \u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0430\u0432\u0440\u043e\u0440\u0430\u043b\u044c\u043d\u044b\u0445 \u044f\u0432\u043b\u0435\u043d\u0438\u0439. \" data-bs-original-title=\"\u041c\u0430\u0433\u043d\u0438\u0442\u043e\u043c\u0435\u0442\u0440 - \u044d\u0442\u043e \u043f\u0440\u0438\u0431\u043e\u0440, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0441\u0438\u043b\u044b \u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043c\u0430\u0433\u043d\u0438\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0417\u0435\u043c\u043b\u0438 \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u0412 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u043d\u0430\u0448\u0438\u0445 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0439 \u043c\u044b \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0439 (X \u0438\u043b\u0438 H) \u0433\u0435\u043e\u043c\u0430\u0433\u043d\u0438\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f. \u041d\u0430\u0447\u0430\u043b\u043e \u043c\u0430\u0433\u043d\u0438\u0442\u043d\u043e\u0433\u043e \u0448\u0442\u043e\u0440\u043c\u0430 \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u044b\u043c \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435\u043c \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0439 \u0433\u0435\u043e\u043c\u0430\u0433\u043d\u0438\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u043f\u043e \u0432\u0441\u0435\u0439 \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u0438 \u0417\u0435\u043c\u043b\u0438. \u041a\u043e\u0433\u0434\u0430 \u043f\u043b\u0430\u0437\u043c\u0430 \u0445\u0432\u043e\u0441\u0442\u0430 \u043c\u0430\u0433\u043d\u0438\u0442\u043e\u0441\u0444\u0435\u0440\u044b \u0432\u044b\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u043e\u0447\u043d\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0417\u0435\u043c\u043b\u0438, \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u0442\u0441\u044f \u0440\u0435\u0437\u043a\u043e\u0435 \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u0435 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0439 \u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0430\u0432\u0440\u043e\u0440\u0430\u043b\u044c\u043d\u044b\u0445 \u044f\u0432\u043b\u0435\u043d\u0438\u0439.\"><i class=\"bi bi-info\" aria-hidden=\"true\"><\/i><\/span><\/h3><\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-606fd3b1 e-flex e-con-boxed e-con e-child\" data-id=\"606fd3b1\" data-element_type=\"container\" id=\"chart-kiruna\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e771d84 elementor-widget elementor-widget-html\" data-id=\"e771d84\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\n<script>\n\n\n\nvar chart_Kiruna = Highcharts.chart('chart-kiruna', {\nchart: {\ntype: 'line',\nbackgroundColor: null,\nrenderTo: 'Kiruna',\nevents: {\n  load: Kiruna_requestData\n},\nanimation: false\n},\ntitle: {\ntext: null\n},\nxAxis: {\n    tickColor: '#fff',\n        lineColor: '#fff',\n    labels: {\n        format: dateTimeFormat,\n        },\ntype: 'datetime'\n},\nyAxis: {\ntype: 'line',\ntitle: {\n  text: 'nT'\n},\nplotBands: [\n  {\n    color: '#C80000',\n    from: - 1500,\n    to: - 5000,\n    label: {\n      text: 'K9',\n      align: 'right',\n      x: - 10,\n      style: {\n        fontWeight: 'bold'\n      }\n    }\n  },\n  {\n    color: '#FF0000',\n    from: - 990,\n    to: - 1500,\n    label: {\n      text: 'K8',\n      align: 'right',\n      x: - 10,\n      style: {\n        fontWeight: 'bold'\n      }\n    }\n  },\n  {\n    color: '#FF9600',\n    from: - 600,\n    to: - 990,\n    label: {\n      text: 'K7',\n      align: 'right',\n      x: - 10,\n      style: {\n        fontWeight: 'bold'\n      }\n    }\n  },\n  {\n    color: '#FFC800',\n    from: - 360,\n    to: - 600,\n    label: {\n      text: 'K6',\n      align: 'right',\n      x: - 10,\n      style: {\n        fontWeight: 'bold'\n      }\n    }\n  },\n  {\n    color: '#F6EB14',\n    from: - 210,\n    to: - 360,\n    label: {\n      text: 'K5',\n      align: 'right',\n      x: - 10,\n      style: {\n        fontWeight: 'bold'\n      }\n    }\n  }\n]\n},\nplotOptions: {\nline: {\n  color: 'black',\n  connectNulls: true,\n  marker: {\n    enabled: false\n  },\n  shadow: true\n}\n},\nseries: [\n{\n  name: 'X-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430',\n  data: [],\n  states: {\n    hover: {\n      enabled: true,\n      lineWidthPlus: 0\n    }\n  }\n}\n],\ntooltip: {\nvalueSuffix: ' nT',\ndateTimeLabelFormats: {\n  minute: '%A, %B %e %Y, %H:%M',\n  hour: '%A, %B %e %Y, %H:%M',\n  day: '%A, %B %e %Y'\n}\n},\nlegend: {\nenabled: false\n},\ncredits: {\nhref: false,\ntext: 'IRF.se - Kiruna'\n}\n})\n\n\/\/     document.addEventListener('DOMContentLoaded', function () {\n        \n\/\/   fetchData();\n\/\/ }\n\n\/\/ \/\/ Call the function to start the data fetching process\n\/\/ \/\/ Kiruna_requestData();\nfunction Kiruna_requestData() {\n\nconst data1hour = 'https:\/\/api.cors.lol\/?url=https:\/\/www2.irf.se\/maggraphs\/rt_iaga_last_hour_1min_primary.txt';\nconst dataLastDay = 'https:\/\/api.cors.lol\/?url=https:\/\/www2.irf.se\/maggraphs\/rt_iaga_secondary.txt'\n\/\/ const fetchData2 = () => {\n\/\/ fetch(dataUrl2)\n\/\/ .then(response => {\n\/\/ if (!response.ok) {\n\/\/   throw new Error(`HTTP error! Status: ${response.status}`);\n\/\/ }\n\/\/ return response.text();\n\/\/ })\n\/\/ .then(processData2)\n\/\/ .catch(error => {\n\/\/ console.error('Error fetching data:', error);\n\/\/ \/\/ chart_Kiruna.hideLoading();\n\/\/ });\n\/\/ };\n\n\/\/ const processData2 = text => {\n\/\/ \/\/   console.log('Raw Data:', text);}\n\/\/ fetchData2()\n\/\/ }\nconst fetchData = () => {\nfetch(dataLastDay, {\n   \n    referrerPolicy: \"no-referrer\",\n})\n.catch(error => {\nconsole.error('Error fetching data:', error);\n\/\/ chart_Kiruna.hideLoading();\n})\n.then((response) => {\n    \/\/ console.log(response)\n    return response.text();\n  })\n  .then((data) => {\n      console.log(data)\n    processData(data)\n  })\n\n};\n\nconst processData = text => {\n    \n\/\/   console.log('Raw Data:', text);\n\nconst lines = text.split('\\n').slice(13); \/\/ Skip the first line with headers\n  console.log('Lines:', lines);\n\/\/ console.log(lines[lines.length - 2][0])\nconst tenHoursAgo = Date.now() - 10 * 60 * 60 * 1000;\n\/\/   console.log('now', new Date(threeHoursAgo))\nconst X = lines\n.map(line => {\nconst parts = line.split(\/\\s+\/); \/\/ Split by one or more spaces\n\/\/   console.log('Parts:', parts);\n\/\/ console.log(parts[0])\nconst timestamp = new Date(`${parts[0]}T${parts[1]}Z`).getTime(); \/\/ Assuming timestamp is at index 0\n\/\/ console.log(timestamp)\nlet value = parseFloat(parts[3]); \/\/ Assuming the third value is what you want\n\/\/   console.log('Timestamp:', Date(timestamp), 'Value:', value);\n\nreturn [timestamp, value];\n})\n.filter(([timestamp]) => {\n\/\/   console.log('Filtered Timestamp:', new Date(timestamp));\nreturn timestamp >= tenHoursAgo;\n});\n\n  console.log('Final X:', X);\n\n\/\/ Assuming chart_Kiruna is defined elsewhere\nchart_Kiruna.series[0].setData(X);\n\/\/   chart_Kiruna.yAxis[0].setExtremes(jsonobject.min, jsonobject.max);\nchart_Kiruna.redraw();\n\n\/\/ Assuming updateInterval is defined elsewhere\n\/\/   setTimeout(Kiruna_requestData, updateInterval);\n};\nfetchData();\n}\n\nconst parseTimestamp = timestamp => {\n\/\/ Assuming timestamp is in the format 'yyyyMMddHHmmss'\nconst year = parseInt(timestamp.substring(0, 4));\nconst month = parseInt(timestamp.substring(4, 6));\nconst day = parseInt(timestamp.substring(6, 8));\nconst hour = parseInt(timestamp.substring(8, 10));\nconst minute = parseInt(timestamp.substring(10, 12));\nconst second = parseInt(timestamp.substring(12, 14));\n\nconst utcDate = new Date(Date.UTC(year, month - 1, day, hour, minute, second));\n\n\/\/ Return the timestamp in milliseconds\nreturn utcDate.getTime();\n};\n\n\n\/\/ Assuming chart_Kiruna and updateInterval are defined elsewhere\n\/\/ chart_Kiruna.showLoading();\n\n    \n<\/script>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-56d47ba5 e-flex e-con-boxed e-con e-child\" data-id=\"56d47ba5\" data-element_type=\"container\" id=\"sharik\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-dd5fe42 elementor-widget elementor-widget-html\" data-id=\"dd5fe42\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t <script>\n\/\/ Get the JSON file from the URL\nvar request = new XMLHttpRequest();\nrequest.open('GET', 'https:\/\/services.swpc.noaa.gov\/products\/animations\/ovation_north_24h.json', true);\nrequest.onload = function () {\n  if (this.status >= 200 && this.status < 400) {\n    \/\/ Parse the JSON file\n    var data = JSON.parse(this.response);\n    \/\/ Create an array of image URLs\n    var images = [];\n    var currentIndex = data.length - 1;\n\n    function loadImage() {\n      if (currentIndex < 0) {\n        \/\/ No more images, exit\n        return;\n      }\n\n      var currentData = data[currentIndex];\n\n      if (currentData['url'] && currentData['time_tag']) {\n        const imageSrc = 'https:\/\/services.swpc.noaa.gov' + currentData['url'];\n        const time = new Date(currentData['time_tag']);\n\n        \/\/ Create an image element\n        var image = document.createElement('img');\n\n        \/\/ Add an event listener for the 'load' event\n        image.addEventListener('load', function () {\n          \/\/ Image has loaded, append it to the body\n          document.getElementById('sharik').appendChild(image);\n          console.log(time, 'time');\n         return;\n        });\n\n        \/\/ Add an event listener for the 'error' event\n        image.addEventListener('error', function () {\n          \/\/ Image failed to load, move on to the next image\n          currentIndex--;\n          loadImage();\n        });\n\n        \/\/ Set the initial image source\n        image.src = imageSrc;\n      } else {\n        \/\/ Move on to the next image\n        currentIndex--;\n        loadImage();\n      }\n    }\n\n    \/\/ Start loading the images\n    loadImage();\n  }\n};\nrequest.send();\n <\/script>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-62d557c1 elementor-widget elementor-widget-html\" data-id=\"62d557c1\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\n<script>\n    var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle=\"tooltip\"]'))\nvar tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {\n  return new bootstrap.Tooltip(tooltipTriggerEl)\n})\n\n<\/script>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-7fc3555 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7fc3555\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-10b397cd\" data-id=\"10b397cd\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-317b0296 elementor-view-default elementor-widget elementor-widget-icon\" data-id=\"317b0296\" data-element_type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<a class=\"elementor-icon\" href=\"https:\/\/t.me\/auroracam51\">\n\t\t\t<i aria-hidden=\"true\" class=\"fab fa-telegram-plane\"><\/i>\t\t\t<\/a>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-6790801a\" data-id=\"6790801a\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-54976342 elementor-widget elementor-widget-heading\" data-id=\"54976342\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h5 class=\"elementor-heading-title elementor-size-default\"><a href=\"https:\/\/t.me\/auroracam51\">\u041c\u044b \u0432 Telegram<\/a><\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t<div class=\"elementor-element elementor-element-1d11cdd e-flex e-con-boxed e-con e-parent\" data-id=\"1d11cdd\" data-element_type=\"container\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\" data-core-v316-plus=\"true\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-54ba4c2a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"54ba4c2a\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-42a006cb\" data-id=\"42a006cb\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1e07d34c elementor-view-default elementor-widget elementor-widget-icon\" data-id=\"1e07d34c\" data-element_type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<a class=\"elementor-icon\" href=\"http:\/\/auroracam.ru\">\n\t\t\t<i aria-hidden=\"true\" class=\"fas fa-caret-left\"><\/i>\t\t\t<\/a>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-64ea1e0a\" data-id=\"64ea1e0a\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5eca7d2a elementor-widget elementor-widget-heading\" data-id=\"5eca7d2a\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h5 class=\"elementor-heading-title elementor-size-default\"><a href=\"http:\/\/auroracam.ru\">\u0412\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043a \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0443 \u043a\u0430\u043c\u0435\u0440<\/a><\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t<div class=\"elementor-element elementor-element-46ebd5fe e-flex e-con-boxed e-con e-parent\" data-id=\"46ebd5fe\" data-element_type=\"container\" data-settings=\"{&quot;container_type&quot;:&quot;flex&quot;,&quot;content_width&quot;:&quot;boxed&quot;}\" data-core-v316-plus=\"true\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u043e\u0433\u043d\u043e\u0437 \u0441\u0435\u0432\u0435\u0440\u043d\u043e\u0433\u043e \u0441\u0438\u044f\u043d\u0438\u044f Kp-\u0438\u043d\u0434\u0435\u043a\u0441 3 = \u0422\u0438\u0445\u043e 4 = \u0410\u043a\u0442\u0438\u0432\u043d\u043e 5 = \u041c\u0430\u043b\u044b\u0439 \u0448\u0442\u043e\u0440\u043c (G1) 6 = \u0423\u043c\u0435\u0440\u0435\u043d\u043d\u044b\u0439 \u0448\u0442\u043e\u0440\u043c (G2) 7 = \u0421\u0438\u043b\u044c\u043d\u044b\u0439 \u0448\u0442\u043e\u0440\u043c (G3) 8 = \u0421\u0438\u043b\u044c\u043d\u0430\u044f \u0431\u0443\u0440\u044f (G4) 9 = \u042d\u043a\u0441\u0442\u0440\u0435\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0448\u0442\u043e\u0440\u043c (G5)&#8221;>\u041f\u0440\u043e\u0433\u043d\u043e\u0437 Kp-\u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u041c\u0438\u043d. \u041c\u0430\u043a\u0441. \u0441\u0435\u0433\u043e\u0434\u043d\u044f Kp2- Kp4- \u0437\u0430\u0432\u0442\u0440\u0430 Kp2- Kp3- \u043f\u043e\u0441\u043b\u0435\u0437\u0430\u0432\u0442\u0440\u0430 Kp1 Kp4 \u0421\u043e\u043b\u043d\u0435\u0447\u043d\u0430\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u041b\u0438\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0442\u043c\u0435\u0447\u0430\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438&hellip; <a class=\"more-link\" href=\"https:\/\/auroracam.ru\/old\/%d0%b3%d1%80%d0%b0%d1%84%d0%b8%d0%ba%d0%b8-%d0%bf%d1%80%d0%be%d0%b3%d0%bd%d0%be%d0%b7\/\">Continue reading <span class=\"screen-reader-text\">\u0413\u0440\u0430\u0444\u0438\u043a\u0438 (\u041f\u0440\u043e\u0433\u043d\u043e\u0437)<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"footnotes":""},"class_list":["post-2845","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/auroracam.ru\/old\/wp-json\/wp\/v2\/pages\/2845","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/auroracam.ru\/old\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/auroracam.ru\/old\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/auroracam.ru\/old\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/auroracam.ru\/old\/wp-json\/wp\/v2\/comments?post=2845"}],"version-history":[{"count":267,"href":"https:\/\/auroracam.ru\/old\/wp-json\/wp\/v2\/pages\/2845\/revisions"}],"predecessor-version":[{"id":3247,"href":"https:\/\/auroracam.ru\/old\/wp-json\/wp\/v2\/pages\/2845\/revisions\/3247"}],"wp:attachment":[{"href":"https:\/\/auroracam.ru\/old\/wp-json\/wp\/v2\/media?parent=2845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}