{"id":2587,"date":"2018-02-06T07:50:16","date_gmt":"2018-02-06T07:50:16","guid":{"rendered":"http:\/\/www.robertprice.co.uk\/robblog\/?p=2587"},"modified":"2018-02-06T07:52:26","modified_gmt":"2018-02-06T07:52:26","slug":"building-simple-air-quality-indicator","status":"publish","type":"post","link":"https:\/\/www.robertprice.co.uk\/robblog\/building-simple-air-quality-indicator\/","title":{"rendered":"Building a simple air quality indicator"},"content":{"rendered":"<p>I demonstrated <a href=\"https:\/\/www.robertprice.co.uk\/robblog\/using-a-bicolour-led-with-a-nodemcu\/\">Using a bicolour LED with an NodeMCU<\/a> in an earlier blog.<\/p>\n<p>We now extend that code and instead of having a single LED, we have two. One LED will indicate the current levels of PM2.5, and the other LED will indicate the current levels of PM10. To do this we need to connect to the internet and download these levels from the Clean Air Eastbourne API. The API returns a single float as a string with the current value in \u00b5g\/m3.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.robertprice.co.uk\/robblog\/assets\/pollutionstatus_wiring.png\" alt=\"\" width=\"534\" height=\"654\" class=\"aligncenter size-full wp-image-2589\" alt=\"Wiring up our air quality monitor\" srcset=\"https:\/\/www.robertprice.co.uk\/robblog\/assets\/pollutionstatus_wiring.png 534w, https:\/\/www.robertprice.co.uk\/robblog\/assets\/pollutionstatus_wiring-245x300.png 245w\" sizes=\"auto, (max-width: 534px) 85vw, 534px\" \/><\/p>\n<p>The wiring is very similar to the previous blog post, except we include an extra LED connected to D3 and D4 on the NodeMCU.<\/p>\n<h3>The code<\/h3>\n<p>The NodeMCU has support for WiFi built in thanks to it&#8217;s ESP8266 chip, so it&#8217;s very easy to go online in our in <code>setup()<\/code function.\n\nIn the <code>loop() function<\/code> we poll for values every 30 seconds. We turn these values into floats and compare our snapshot against the WHO annual guidelines limits, and UK annual legal limits. If we&#8217;re below WHO and UK limits, we show green. If we&#8217;re above WHO limits, but below UK limits, we show amber. If we&#8217;re above both WHO and UK limits, we show red.<\/p>\n<pre>\r\n#include &lt;ESP8266WiFi.h&gt;\r\n#include &lt;ESP8266HTTPClient.h&gt;\r\n\r\n\/\/ Wifi connection details\r\nconst char* ssid = \"Wifi Network\";\r\nconst char* password = \"Wifi Password\";\r\n\r\n\/\/ Poll URLs\r\nconst char* PM10_URL = \"http:\/\/api.eastbourneair.com\/readings\/906088-pm10\";\r\nconst char* PM25_URL = \"http:\/\/api.eastbourneair.com\/readings\/906088-pm25\";\r\n\r\n\/\/ How often to poll the website for updates (in microseconds)\r\nconst int POLL_DELAY = 30000;\r\n\r\n\/\/ Limits for particulates from the WHO and UK.\r\n\/\/ These are annual limits.\r\nconst float WHO_PM10 = 20.0;\r\nconst float WHO_PM25 = 10.0;\r\nconst float UK_PM10 = 40.0;\r\nconst float UK_PM25 = 25.0;\r\n\r\n\/\/ The TriColour LEDs are wired to the following pins\r\nint redPinPM10 = D2, greenPinPM10 = D1;\r\nint redPinPM25 = D3, greenPinPM25 = D4;\r\n\r\nvoid setup () {\r\n  pinMode(redPinPM10, OUTPUT);\r\n  pinMode(redPinPM25, OUTPUT);\r\n  pinMode(greenPinPM10, OUTPUT);\r\n  pinMode(greenPinPM25, OUTPUT);\r\n\r\n  Serial.begin(115200);\r\n  WiFi.begin(ssid, password);\r\n\r\n  while (WiFi.status() != WL_CONNECTED) {\r\n    delay(1000);\r\n    Serial.println(\"Connecting to Wifi...\");\r\n  }\r\n\r\n}\r\n\r\nvoid loop() {\r\n\r\n  if (WiFi.status() == WL_CONNECTED) { \/\/Check WiFi connection status\r\n\r\n    HTTPClient http;  \/\/Declare an object of class HTTPClient\r\n\r\n    Serial.println(\"Getting PM10 data...\");\r\n    http.begin(PM10_URL);  \/\/Specify request destination\r\n    int httpCode = http.GET();                                        \/\/Send the request\r\n    if (httpCode > 0) { \/\/Check the returning code\r\n\r\n      String payload = http.getString();   \/\/Get the request response payload\r\n      Serial.println(payload);             \/\/Print the response payload\r\n\r\n      int reading = payload.toFloat();\r\n\r\n      digitalWrite(redPinPM10, LOW);\r\n      digitalWrite(greenPinPM10, LOW);\r\n      if (reading >= WHO_PM10 && reading < UK_PM10) {  \/\/ turn the LED if over WHO limits, but under UK\r\n        Serial.println(\"Over WHO guidelines \");\r\n        digitalWrite(redPinPM10, HIGH);\r\n        digitalWrite(greenPinPM10, HIGH);\r\n      } else if (reading >= UK_PM10) {                 \/\/ turn the LED on if over UK limits\r\n        Serial.println(\"Over UK limits\");\r\n        digitalWrite(redPinPM10, HIGH);\r\n      } else {\r\n        Serial.println(\"under limit\");\r\n        digitalWrite(greenPinPM10, HIGH);\r\n      }\r\n    } else {\r\n      Serial.println(\"Unable to get data from API\");\r\n    }\r\n    http.end();   \/\/Close connection\r\n\r\n\r\n    Serial.println(\"Getting PM2.5 data...\");\r\n    http.begin(PM25_URL);  \/\/Specify request destination\r\n    httpCode = http.GET();                                            \/\/Send the request\r\n    if (httpCode > 0) { \/\/Check the returning code\r\n\r\n      String payload = http.getString();   \/\/Get the request response payload\r\n      Serial.println(payload);             \/\/Print the response payload\r\n\r\n      int reading = payload.toFloat();\r\n\r\n      digitalWrite(redPinPM25, LOW);\r\n      digitalWrite(greenPinPM25, LOW);\r\n      if (reading >= WHO_PM25 && reading < UK_PM25) {  \/\/ turn the LED if over WHO limits, but under UK\r\n        Serial.println(\"Over WHO guidelines \");\r\n        digitalWrite(redPinPM25, HIGH);\r\n        digitalWrite(greenPinPM25, HIGH);\r\n      } else if (reading >= UK_PM25) {                 \/\/ turn the LED on if over UK limts\r\n        Serial.println(\"Over UK limits\");\r\n        digitalWrite(redPinPM25, HIGH);\r\n      } else {\r\n        Serial.println(\"under limit\");\r\n        digitalWrite(greenPinPM25, HIGH);\r\n      }\r\n    } else {\r\n      Serial.println(\"Unable to get data from API\");\r\n    }\r\n    http.end();   \/\/Close connection\r\n\r\n  } else {\r\n    Serial.println(\"Not connected to Wifi\");\r\n  }\r\n\r\n  delay(POLL_DELAY);    \/\/ wait before we poll again.\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I demonstrated Using a bicolour LED with an NodeMCU in an earlier blog. We now extend that code and instead of having a single LED, we have two. One LED will indicate the current levels of PM2.5, and the other LED will indicate the current levels of PM10. To do this we need to connect &hellip; <a href=\"https:\/\/www.robertprice.co.uk\/robblog\/building-simple-air-quality-indicator\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Building a simple air quality indicator&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":2593,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[2,84],"tags":[86,91,97],"class_list":["post-2587","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev","category-hardware","tag-led","tag-nodemcu","tag-pollution"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Building a simple air quality indicator - Robert Price<\/title>\n<meta name=\"description\" content=\"Building a simple air quality indicator using a NodeMCU and the Clean Air Eastbourne API. Bicolour LEDs are used to indicate the levels of particulate matter in the air.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.robertprice.co.uk\/robblog\/building-simple-air-quality-indicator\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Building a simple air quality indicator - Robert Price\" \/>\n<meta property=\"og:description\" content=\"Building a simple air quality indicator using a NodeMCU and the Clean Air Eastbourne API. Bicolour LEDs are used to indicate the levels of particulate matter in the air.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.robertprice.co.uk\/robblog\/building-simple-air-quality-indicator\/\" \/>\n<meta property=\"og:site_name\" content=\"Robert Price\" \/>\n<meta property=\"article:published_time\" content=\"2018-02-06T07:50:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-02-06T07:52:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.robertprice.co.uk\/robblog\/assets\/pollutionstatus_box_header-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"rob\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"rob\" \/>\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:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/building-simple-air-quality-indicator\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/building-simple-air-quality-indicator\\\/\"},\"author\":{\"name\":\"rob\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#\\\/schema\\\/person\\\/fac6d5b076e0e14e1fb13e15b542a6c5\"},\"headline\":\"Building a simple air quality indicator\",\"datePublished\":\"2018-02-06T07:50:16+00:00\",\"dateModified\":\"2018-02-06T07:52:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/building-simple-air-quality-indicator\\\/\"},\"wordCount\":204,\"image\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/building-simple-air-quality-indicator\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/assets\\\/pollutionstatus_box_header-1.jpg\",\"keywords\":[\"LED\",\"NodeMCU\",\"pollution\"],\"articleSection\":[\"Dev\",\"Hardware\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/building-simple-air-quality-indicator\\\/\",\"url\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/building-simple-air-quality-indicator\\\/\",\"name\":\"Building a simple air quality indicator - Robert Price\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/building-simple-air-quality-indicator\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/building-simple-air-quality-indicator\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/assets\\\/pollutionstatus_box_header-1.jpg\",\"datePublished\":\"2018-02-06T07:50:16+00:00\",\"dateModified\":\"2018-02-06T07:52:26+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#\\\/schema\\\/person\\\/fac6d5b076e0e14e1fb13e15b542a6c5\"},\"description\":\"Building a simple air quality indicator using a NodeMCU and the Clean Air Eastbourne API. Bicolour LEDs are used to indicate the levels of particulate matter in the air.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/building-simple-air-quality-indicator\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/building-simple-air-quality-indicator\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/building-simple-air-quality-indicator\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/assets\\\/pollutionstatus_box_header-1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/assets\\\/pollutionstatus_box_header-1.jpg\",\"width\":1200,\"height\":600},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/building-simple-air-quality-indicator\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Building a simple air quality indicator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#website\",\"url\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/\",\"name\":\"Robert Price\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#\\\/schema\\\/person\\\/fac6d5b076e0e14e1fb13e15b542a6c5\",\"name\":\"rob\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g\",\"caption\":\"rob\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Building a simple air quality indicator - Robert Price","description":"Building a simple air quality indicator using a NodeMCU and the Clean Air Eastbourne API. Bicolour LEDs are used to indicate the levels of particulate matter in the air.","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:\/\/www.robertprice.co.uk\/robblog\/building-simple-air-quality-indicator\/","og_locale":"en_GB","og_type":"article","og_title":"Building a simple air quality indicator - Robert Price","og_description":"Building a simple air quality indicator using a NodeMCU and the Clean Air Eastbourne API. Bicolour LEDs are used to indicate the levels of particulate matter in the air.","og_url":"https:\/\/www.robertprice.co.uk\/robblog\/building-simple-air-quality-indicator\/","og_site_name":"Robert Price","article_published_time":"2018-02-06T07:50:16+00:00","article_modified_time":"2018-02-06T07:52:26+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.robertprice.co.uk\/robblog\/assets\/pollutionstatus_box_header-1.jpg","type":"image\/jpeg"}],"author":"rob","twitter_card":"summary_large_image","twitter_misc":{"Written by":"rob","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.robertprice.co.uk\/robblog\/building-simple-air-quality-indicator\/#article","isPartOf":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/building-simple-air-quality-indicator\/"},"author":{"name":"rob","@id":"https:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5"},"headline":"Building a simple air quality indicator","datePublished":"2018-02-06T07:50:16+00:00","dateModified":"2018-02-06T07:52:26+00:00","mainEntityOfPage":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/building-simple-air-quality-indicator\/"},"wordCount":204,"image":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/building-simple-air-quality-indicator\/#primaryimage"},"thumbnailUrl":"https:\/\/www.robertprice.co.uk\/robblog\/assets\/pollutionstatus_box_header-1.jpg","keywords":["LED","NodeMCU","pollution"],"articleSection":["Dev","Hardware"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.robertprice.co.uk\/robblog\/building-simple-air-quality-indicator\/","url":"https:\/\/www.robertprice.co.uk\/robblog\/building-simple-air-quality-indicator\/","name":"Building a simple air quality indicator - Robert Price","isPartOf":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/building-simple-air-quality-indicator\/#primaryimage"},"image":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/building-simple-air-quality-indicator\/#primaryimage"},"thumbnailUrl":"https:\/\/www.robertprice.co.uk\/robblog\/assets\/pollutionstatus_box_header-1.jpg","datePublished":"2018-02-06T07:50:16+00:00","dateModified":"2018-02-06T07:52:26+00:00","author":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5"},"description":"Building a simple air quality indicator using a NodeMCU and the Clean Air Eastbourne API. Bicolour LEDs are used to indicate the levels of particulate matter in the air.","breadcrumb":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/building-simple-air-quality-indicator\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.robertprice.co.uk\/robblog\/building-simple-air-quality-indicator\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.robertprice.co.uk\/robblog\/building-simple-air-quality-indicator\/#primaryimage","url":"https:\/\/www.robertprice.co.uk\/robblog\/assets\/pollutionstatus_box_header-1.jpg","contentUrl":"https:\/\/www.robertprice.co.uk\/robblog\/assets\/pollutionstatus_box_header-1.jpg","width":1200,"height":600},{"@type":"BreadcrumbList","@id":"https:\/\/www.robertprice.co.uk\/robblog\/building-simple-air-quality-indicator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.robertprice.co.uk\/robblog\/"},{"@type":"ListItem","position":2,"name":"Building a simple air quality indicator"}]},{"@type":"WebSite","@id":"https:\/\/www.robertprice.co.uk\/robblog\/#website","url":"https:\/\/www.robertprice.co.uk\/robblog\/","name":"Robert Price","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.robertprice.co.uk\/robblog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5","name":"rob","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g","caption":"rob"}}]}},"_links":{"self":[{"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/posts\/2587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/comments?post=2587"}],"version-history":[{"count":4,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/posts\/2587\/revisions"}],"predecessor-version":[{"id":2594,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/posts\/2587\/revisions\/2594"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/media\/2593"}],"wp:attachment":[{"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/media?parent=2587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/categories?post=2587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/tags?post=2587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}