{"id":313,"date":"2023-09-18T13:33:01","date_gmt":"2023-09-18T17:33:01","guid":{"rendered":"https:\/\/newssprinters.com\/?p=313"},"modified":"2023-09-18T13:59:44","modified_gmt":"2023-09-18T17:59:44","slug":"weather","status":"publish","type":"post","link":"https:\/\/newssprinters.com\/index.php\/top-stories\/weather\/18\/09\/2023\/","title":{"rendered":"Weather"},"content":{"rendered":"<div id=\"simple-weather--c76497466573fbcbbdf8473d03107ace\" class=\"simple-weather simple-weather--vue\" :style=\"atts.inline_css\">\n  <template v-if=\"style !== 'widget'\">\n    <span v-if=\"hasCurrentWeather()\" class=\"simple-weather__day simple-weather__day--current\">\n      <span v-if=\"filter_var(atts.show_units)\" class=\"simple-weather__date\">{{current_weather.dt | momentjs( atts.date )}}<\/span>\n      <i class=\"sw\" :class=\"getWeatherIcon(current_weather)\"><\/i>\n      <em class=\"simple-weather__temp\">{{current_weather.temp | temp}} &deg;<template v-if=\"filter_var(atts.show_units)\">{{units}}<\/template>\n      <\/em>\n    <\/span>\n    <template v-if=\"weather_feed\">\n      <span v-for=\"(day, index) in weather_feed\" v-if=\"isDayVisible(index, day)\" class=\"simple-weather__day\">\n        <span v-if=\"filter_var(atts.show_units)\" class=\"simple-weather__date\">{{day.dt | momentjs(atts.date)}}<\/span>\n        <i class=\"sw\" :class=\"getWeatherIcon(day)\"><\/i>\n        <em class=\"simple-weather__temp\">{{day.temp | temp}} &deg;<em class=\"simple-weather__temp-min\" v-if=\"filter_var(atts.night)\">{{day.temp_min | temp}} &deg;<\/em><template v-if=\"filter_var(atts.show_units)\">{{units}}<\/template><\/em>\n      <\/span>\n    <\/template>\n    <template v-else>\n      <span v-html=\"error\" class=\"error\"><\/span>\n    <\/template>\n  <\/template>\n  <template v-else>\n    <div class=\"simple-weather-widget\" v-if=\"current_weather.name || weather_feed\" :class=\"atts.inline_css ? 'simple-weather-widget--bg' : ''\">\n      <h4 class='widget_title' v-if=\"atts.title || current_weather.name\" v-text=\"atts.title ? atts.title : current_weather.name\"><\/h4>\n      <div class=\"temp\">\n        <span v-if=\"current_weather.temp\" class=\"degrees\">{{current_weather.temp | temp}} &deg;<\/span>\n        <span class=\"details\">\n          <template v-if=\"current_weather.humidity\">Humidity: <em class=\"float-right\">{{current_weather.humidity}}%<\/em><br><\/template>\n          <template v-if=\"current_weather.clouds\">Clouds: <em class=\"float-right\">{{current_weather.clouds}}%<\/em><br><\/template>\n          <template v-if=\"current_weather.wind\">Wind <small>({{current_weather.wind.deg}})<\/small>:\n          <em class=\"float-right\">{{current_weather.wind.speed}}<small>{{units_wind}}<\/small><\/em><\/template>\n        <\/span>\n      <\/div>\n      <div class=\"summary\">{{current_weather.desc}}<\/div>\n      <div class=\"simple-weather-table\" v-if=\"weather_feed\">\n        <div v-for=\"(day, index) in weather_feed\" v-if=\"index < atts.days\" class=\"simple-weather-table__row\">\n\t\t\t\t\t<div class=\"simple-weather-table__date\">{{day.dt | momentjs(atts.date)}}<\/div>\n\t\t\t\t\t<div class=\"simple-weather-table__icon\"><i class=\"sw\" :class=\"getWeatherIcon(day)\"><\/i><\/div>\n\t\t\t\t\t<div class=\"simple-weather-table__temp\">\n            {{day.temp | temp}}&deg;\n            <span class=\"simple-weather-table__temp-min\">{{day.temp_min | temp}} &deg;<\/span>\n          <\/div>\n        <\/div>\n      <\/div>\n    <\/div>\n  <\/template>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":28400,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/newssprinters.com\/index.php\/wp-json\/wp\/v2\/posts\/313"}],"collection":[{"href":"https:\/\/newssprinters.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/newssprinters.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/newssprinters.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/newssprinters.com\/index.php\/wp-json\/wp\/v2\/comments?post=313"}],"version-history":[{"count":2,"href":"https:\/\/newssprinters.com\/index.php\/wp-json\/wp\/v2\/posts\/313\/revisions"}],"predecessor-version":[{"id":329,"href":"https:\/\/newssprinters.com\/index.php\/wp-json\/wp\/v2\/posts\/313\/revisions\/329"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/newssprinters.com\/index.php\/wp-json\/wp\/v2\/media\/28400"}],"wp:attachment":[{"href":"https:\/\/newssprinters.com\/index.php\/wp-json\/wp\/v2\/media?parent=313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/newssprinters.com\/index.php\/wp-json\/wp\/v2\/categories?post=313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/newssprinters.com\/index.php\/wp-json\/wp\/v2\/tags?post=313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}