{"id":34,"date":"2020-06-14T16:29:00","date_gmt":"2020-06-14T15:29:00","guid":{"rendered":"https:\/\/jmfweather.uk\/blog\/?p=34"},"modified":"2021-07-14T16:42:49","modified_gmt":"2021-07-14T15:42:49","slug":"air-quality-index","status":"publish","type":"post","link":"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/","title":{"rendered":"Air Quality Index"},"content":{"rendered":"\n<p>I decided to add Air Quality to my weather setup. The ideal is a Purple Air sensor but that costs $250 and even more to ship to the UK.<\/p>\n\n\n\n<p>A bit of research shows that I can do the same using a <a href=\"https:\/\/www.amazon.co.uk\/ILS-Precision-Quality-Detection-Sensors\/dp\/B07911ZY9W\">Nova SDS011<\/a> and my <a href=\"https:\/\/www.raspberrypi.org\/products\/raspberry-pi-3-model-b\/\">Raspberry Pi<\/a>. It&#8217;s a very straightofward setup and the code to run and collect the data is readily <a href=\"https:\/\/opensource.com\/article\/18\/3\/how-measure-particulate-matter-raspberry-pi\">available<\/a>.<\/p>\n\n\n\n<p>The challenge I had was to add code to upload the data to my website and then get the website to use the data and display it.<\/p>\n\n\n\n<p>After about half a day of coding, and a few tweaks in subsequent days, I ended up with the page above.<\/p>\n\n\n\n<p>You can also see the data uploaded to the <a href=\"https:\/\/aqicn.org\/station\/united-kingdom\/basingstoke-and-deane\/ibasings39\/\">AQICN.ORG<\/a> website for worldwide AQI coverage<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jmfweather.uk\/blog\/wp-content\/uploads\/2021\/07\/AQI.png\" alt=\"\" class=\"wp-image-35\" width=\"653\" height=\"356\" srcset=\"https:\/\/jmfweather.uk\/blog\/wp-content\/uploads\/2021\/07\/AQI.png 870w, https:\/\/jmfweather.uk\/blog\/wp-content\/uploads\/2021\/07\/AQI-300x164.png 300w, https:\/\/jmfweather.uk\/blog\/wp-content\/uploads\/2021\/07\/AQI-768x419.png 768w\" sizes=\"auto, (max-width: 653px) 100vw, 653px\" \/><\/figure>\n<div class=\"pvc_clear\"><\/div><p id=\"pvc_stats_34\" class=\"pvc_stats all  \" data-element-id=\"34\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/jmfweather.uk\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p><div class=\"pvc_clear\"><\/div>","protected":false},"excerpt":{"rendered":"<p>I decided to add Air Quality to my weather setup. The ideal is a Purple Air sensor but that costs $250 and even more to ship to the UK. A bit of research shows that I can do the same using a Nova SDS011 and my Raspberry Pi. It&#8217;s a very straightofward setup and theContinue reading &rarr;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_34\" class=\"pvc_stats all  \" data-element-id=\"34\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/jmfweather.uk\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,4],"tags":[],"class_list":["post-34","post","type-post","status-publish","format-standard","hentry","category-blog","category-weather","no-thumb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Air Quality Index - JMFweather.UK Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Air Quality Index - JMFweather.UK Blog\" \/>\n<meta property=\"og:description\" content=\"I decided to add Air Quality to my weather setup. The ideal is a Purple Air sensor but that costs $250 and even more to ship to the UK. A bit of research shows that I can do the same using a Nova SDS011 and my Raspberry Pi. It&#8217;s a very straightofward setup and theContinue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/\" \/>\n<meta property=\"og:site_name\" content=\"JMFweather.UK Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/jasonmfarrow\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/jasonmfarrow\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-14T15:29:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-14T15:42:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jmfweather.uk\/blog\/wp-content\/uploads\/2021\/07\/AQI.png\" \/>\n<meta name=\"author\" content=\"Jason Farrow\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@jasonmfarrow\" \/>\n<meta name=\"twitter:site\" content=\"@jasonmfarrow\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jason Farrow\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/\"},\"author\":{\"name\":\"Jason Farrow\",\"@id\":\"https:\/\/jmfweather.uk\/blog\/#\/schema\/person\/a8bfcf905b288393cdd84898e1c0daa9\"},\"headline\":\"Air Quality Index\",\"datePublished\":\"2020-06-14T15:29:00+00:00\",\"dateModified\":\"2021-07-14T15:42:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/\"},\"wordCount\":132,\"publisher\":{\"@id\":\"https:\/\/jmfweather.uk\/blog\/#\/schema\/person\/a8bfcf905b288393cdd84898e1c0daa9\"},\"image\":{\"@id\":\"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jmfweather.uk\/blog\/wp-content\/uploads\/2021\/07\/AQI.png\",\"articleSection\":[\"Blog\",\"Weather\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/\",\"url\":\"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/\",\"name\":\"Air Quality Index - JMFweather.UK Blog\",\"isPartOf\":{\"@id\":\"https:\/\/jmfweather.uk\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jmfweather.uk\/blog\/wp-content\/uploads\/2021\/07\/AQI.png\",\"datePublished\":\"2020-06-14T15:29:00+00:00\",\"dateModified\":\"2021-07-14T15:42:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/#primaryimage\",\"url\":\"https:\/\/jmfweather.uk\/blog\/wp-content\/uploads\/2021\/07\/AQI.png\",\"contentUrl\":\"https:\/\/jmfweather.uk\/blog\/wp-content\/uploads\/2021\/07\/AQI.png\",\"width\":870,\"height\":475},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jmfweather.uk\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Air Quality Index\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jmfweather.uk\/blog\/#website\",\"url\":\"https:\/\/jmfweather.uk\/blog\/\",\"name\":\"JMFweather.UK Blog\",\"description\":\"Clouds, Rain &amp; Wind\",\"publisher\":{\"@id\":\"https:\/\/jmfweather.uk\/blog\/#\/schema\/person\/a8bfcf905b288393cdd84898e1c0daa9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jmfweather.uk\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/jmfweather.uk\/blog\/#\/schema\/person\/a8bfcf905b288393cdd84898e1c0daa9\",\"name\":\"Jason Farrow\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/jmfweather.uk\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jmfweather.uk\/blog\/wp-content\/uploads\/2021\/07\/JMFweather_logo2_trans.jpg\",\"contentUrl\":\"https:\/\/jmfweather.uk\/blog\/wp-content\/uploads\/2021\/07\/JMFweather_logo2_trans.jpg\",\"width\":500,\"height\":500,\"caption\":\"Jason Farrow\"},\"logo\":{\"@id\":\"https:\/\/jmfweather.uk\/blog\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/jmfweather.uk\",\"https:\/\/www.facebook.com\/jasonmfarrow\",\"https:\/\/www.instagram.com\/jasonmfarrow\/\",\"https:\/\/x.com\/jasonmfarrow\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Air Quality Index - JMFweather.UK Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/","og_locale":"en_GB","og_type":"article","og_title":"Air Quality Index - JMFweather.UK Blog","og_description":"I decided to add Air Quality to my weather setup. The ideal is a Purple Air sensor but that costs $250 and even more to ship to the UK. A bit of research shows that I can do the same using a Nova SDS011 and my Raspberry Pi. It&#8217;s a very straightofward setup and theContinue reading &rarr;","og_url":"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/","og_site_name":"JMFweather.UK Blog","article_publisher":"https:\/\/www.facebook.com\/jasonmfarrow","article_author":"https:\/\/www.facebook.com\/jasonmfarrow","article_published_time":"2020-06-14T15:29:00+00:00","article_modified_time":"2021-07-14T15:42:49+00:00","og_image":[{"url":"https:\/\/jmfweather.uk\/blog\/wp-content\/uploads\/2021\/07\/AQI.png","type":"","width":"","height":""}],"author":"Jason Farrow","twitter_card":"summary_large_image","twitter_creator":"@jasonmfarrow","twitter_site":"@jasonmfarrow","twitter_misc":{"Written by":"Jason Farrow","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/#article","isPartOf":{"@id":"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/"},"author":{"name":"Jason Farrow","@id":"https:\/\/jmfweather.uk\/blog\/#\/schema\/person\/a8bfcf905b288393cdd84898e1c0daa9"},"headline":"Air Quality Index","datePublished":"2020-06-14T15:29:00+00:00","dateModified":"2021-07-14T15:42:49+00:00","mainEntityOfPage":{"@id":"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/"},"wordCount":132,"publisher":{"@id":"https:\/\/jmfweather.uk\/blog\/#\/schema\/person\/a8bfcf905b288393cdd84898e1c0daa9"},"image":{"@id":"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/#primaryimage"},"thumbnailUrl":"https:\/\/jmfweather.uk\/blog\/wp-content\/uploads\/2021\/07\/AQI.png","articleSection":["Blog","Weather"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/","url":"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/","name":"Air Quality Index - JMFweather.UK Blog","isPartOf":{"@id":"https:\/\/jmfweather.uk\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/#primaryimage"},"image":{"@id":"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/#primaryimage"},"thumbnailUrl":"https:\/\/jmfweather.uk\/blog\/wp-content\/uploads\/2021\/07\/AQI.png","datePublished":"2020-06-14T15:29:00+00:00","dateModified":"2021-07-14T15:42:49+00:00","breadcrumb":{"@id":"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/#primaryimage","url":"https:\/\/jmfweather.uk\/blog\/wp-content\/uploads\/2021\/07\/AQI.png","contentUrl":"https:\/\/jmfweather.uk\/blog\/wp-content\/uploads\/2021\/07\/AQI.png","width":870,"height":475},{"@type":"BreadcrumbList","@id":"https:\/\/jmfweather.uk\/blog\/2020\/06\/14\/air-quality-index\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jmfweather.uk\/blog\/"},{"@type":"ListItem","position":2,"name":"Air Quality Index"}]},{"@type":"WebSite","@id":"https:\/\/jmfweather.uk\/blog\/#website","url":"https:\/\/jmfweather.uk\/blog\/","name":"JMFweather.UK Blog","description":"Clouds, Rain &amp; Wind","publisher":{"@id":"https:\/\/jmfweather.uk\/blog\/#\/schema\/person\/a8bfcf905b288393cdd84898e1c0daa9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jmfweather.uk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/jmfweather.uk\/blog\/#\/schema\/person\/a8bfcf905b288393cdd84898e1c0daa9","name":"Jason Farrow","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/jmfweather.uk\/blog\/#\/schema\/person\/image\/","url":"https:\/\/jmfweather.uk\/blog\/wp-content\/uploads\/2021\/07\/JMFweather_logo2_trans.jpg","contentUrl":"https:\/\/jmfweather.uk\/blog\/wp-content\/uploads\/2021\/07\/JMFweather_logo2_trans.jpg","width":500,"height":500,"caption":"Jason Farrow"},"logo":{"@id":"https:\/\/jmfweather.uk\/blog\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/jmfweather.uk","https:\/\/www.facebook.com\/jasonmfarrow","https:\/\/www.instagram.com\/jasonmfarrow\/","https:\/\/x.com\/jasonmfarrow"]}]}},"_links":{"self":[{"href":"https:\/\/jmfweather.uk\/blog\/wp-json\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jmfweather.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jmfweather.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jmfweather.uk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jmfweather.uk\/blog\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":1,"href":"https:\/\/jmfweather.uk\/blog\/wp-json\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":42,"href":"https:\/\/jmfweather.uk\/blog\/wp-json\/wp\/v2\/posts\/34\/revisions\/42"}],"wp:attachment":[{"href":"https:\/\/jmfweather.uk\/blog\/wp-json\/wp\/v2\/media?parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jmfweather.uk\/blog\/wp-json\/wp\/v2\/categories?post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jmfweather.uk\/blog\/wp-json\/wp\/v2\/tags?post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}