{"id":115997,"date":"2020-01-16T17:42:35","date_gmt":"2020-01-16T17:42:35","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/air-quality-data-from-foobot\/"},"modified":"2026-07-28T16:24:27","modified_gmt":"2026-07-28T16:24:27","slug":"air-quality-data-from-foobot","status":"publish","type":"plugin","link":"https:\/\/hi.wordpress.org\/plugins\/air-quality-data-from-foobot\/","author":4553283,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.3.0","stable_tag":"1.3.0","tested":"7.0.2","requires":"5.3","requires_php":"5.2.4","requires_plugins":null,"header_name":"Air Quality Data from Foobot","header_author":"Bain Design","header_description":"Call your air quality data via the Foobot API.","assets_banners_color":"506c88","last_updated":"2026-07-28 16:24:27","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/bain.design\/","header_plugin_uri":"https:\/\/foobot.bain.design","header_author_uri":"http:\/\/bain.design","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1729,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.2":{"tag":"1.2","author":"markcbain","date":"2024-02-27 18:07:54"},"1.2.1":{"tag":"1.2.1","author":"markcbain","date":"2024-02-28 17:17:04"},"1.3.0":{"tag":"1.3.0","author":"markcbain","date":"2026-07-28 16:24:27"}},"upgrade_notice":{"1.3.0":"<ul>\n<li>Adds CI\/testing infrastructure and WordPress Coding Standards reformatting; no functional changes.<\/li>\n<\/ul>","1.2.1":"<ul>\n<li>Fix database error<\/li>\n<\/ul>","1.2":"<ul>\n<li>Display data timestamp in WordPress format<\/li>\n<li>Use system fonts<\/li>\n<li>Force temp to show decimals<\/li>\n<\/ul>","1.0":"<ul>\n<li>Initial plugin version<\/li>\n<\/ul>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3626208,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3626208,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3626208,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500-rtl.png":{"filename":"banner-1544x500-rtl.png","revision":3626208,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3626208,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250-rtl.png":{"filename":"banner-772x250-rtl.png","revision":3626208,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3626208,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.2","1.2.1","1.3.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3626208,"resolution":"1","location":"assets","locale":"","width":1778,"height":843}},"screenshots":{"1":"The data table."}},"plugin_section":[],"plugin_tags":[5775,168224,180829,4074,154824],"plugin_category":[52],"plugin_contributors":[180830],"plugin_business_model":[],"class_list":["post-115997","plugin","type-plugin","status-publish","hentry","plugin_tags-air","plugin_tags-air-quality","plugin_tags-foobot","plugin_tags-monitor","plugin_tags-pollution","plugin_category-performance","plugin_contributors-markcbain","plugin_committers-markcbain"],"banners":{"banner":"https:\/\/ps.w.org\/air-quality-data-from-foobot\/assets\/banner-772x250.png?rev=3626208","banner_2x":"https:\/\/ps.w.org\/air-quality-data-from-foobot\/assets\/banner-1544x500.png?rev=3626208","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/air-quality-data-from-foobot\/assets\/icon.svg?rev=3626208","icon":"https:\/\/ps.w.org\/air-quality-data-from-foobot\/assets\/icon.svg?rev=3626208","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/air-quality-data-from-foobot\/assets\/screenshot-1.png?rev=3626208","caption":"The data table."}],"raw_content":"<!--section=description-->\n<p>This plugin lets you show the data from one or more <a href=\"\/\/foobot.io\/\" title=\"Visit the Foobot website\">Foobot Air Quality Monitors<\/a> on your WordPress site.Apart from a Foobot device, you will need to <a href=\"https:\/\/api.foobot.io\/apidoc\/index.html\" title=\"request a Foobot API key\">request an API key<\/a> from the Foobot API website.<\/p>\n\n<h3>Credits<\/h3>\n\n<p>Icon made by <a href=\"https:\/\/www.flaticon.com\/authors\/vitaly-gorbachev\">Vitaly Gorbachev<\/a> from <a href=\"https:\/\/www.flaticon.com\">www.flaticon.com<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download the plugin .zip archive and unpack it. <\/li>\n<li>Locate the plugin file and upload to your website Plugins folder.<\/li>\n<li>Log into WordPress and activate the plugin. <\/li>\n<li>Once the plugin is activated, go to <code>Settings &gt; Foobot API<\/code> and add your Foobot API username and API key (<a href=\"https:\/\/api.foobot.io\/apidoc\/index.html\" title=\"Foobot API\">Get your Foobot API key here<\/a>).<\/li>\n<li>Use the shortcode <code>[foobot-show-data device=\"foo\"]<\/code>, where <code>foo<\/code> is your device name, to show the world your AQ data!<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"do%20i%20need%20to%20have%20a%20foobot%20device%20to%20use%20this%20plugin\"><h3>Do I need to have a Foobot device to use this plugin<\/h3><\/dt>\n<dd><p>No, but you do need access to one via the Foobot API in order to display data on your site.<\/p><\/dd>\n<dt id=\"can%20you%20sell%20me%20a%20foobot%20air%20quality%20monitor%3F\"><h3>Can you sell me a Foobot Air Quality Monitor?<\/h3><\/dt>\n<dd><p>Sorry, no. I need both of mine for testing purposes.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>Add a list of devices found on your Foobot account to the settings page, each with a ready-to-copy shortcode<\/li>\n<li>Add a \"Test Connection\" button and a \"Last data received\" indicator to the settings page<\/li>\n<li>Add an option to show a device's latest reading in the WordPress admin bar, with the full sensor breakdown and last-updated time on hover<\/li>\n<li>Mask the saved API key on the settings screen instead of showing it in full<\/li>\n<li>Fix stored\/reflected XSS: escape device name and Foobot API-derived sensor values before output<\/li>\n<li>Fix fatal error on PHP 8+ when no device data exists yet (e.g. fresh install with no API key configured)<\/li>\n<li>Fix uninstall.php referencing an undefined constant, which silently skipped cleanup on uninstall<\/li>\n<li>Stop sending the API key in the request URL query string (it's already sent via header)<\/li>\n<li>Sanitize the API credentials setting on save, not just when displayed<\/li>\n<li>Fix an ORDER BY bug that could return a stale device\/reading instead of the most recent one<\/li>\n<li>Add PHPUnit test suite and WordPress Coding Standards linting<\/li>\n<li>Add GitHub Actions CI (tests on every push\/PR) and tag-triggered WordPress.org deploy<\/li>\n<li>Reformat codebase to WordPress Coding Standards<\/li>\n<li>Confirm compatibility with WordPress 7.0<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Fix database error<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Display data timestamp in WordPress format<\/li>\n<li>Use system fonts<\/li>\n<li>Force temp to show decimals<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Add credits and assets for plugin repo<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial plugin version<\/li>\n<\/ul>","raw_excerpt":"Display the Air Quality Data from multiple Foobot devices via a shortcode.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/115997","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=115997"}],"author":[{"embeddable":true,"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/markcbain"}],"wp:attachment":[{"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=115997"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=115997"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=115997"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=115997"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=115997"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=115997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}