{"id":13341699,"url":"https://github.com/evanxd/air-quality-widget","last_synced_at":"2026-02-23T18:33:04.597Z","repository":{"id":150628525,"uuid":"84626747","full_name":"evanxd/air-quality-widget","owner":"evanxd","description":"A Web widget to visually show real-time air quality data.","archived":false,"fork":false,"pushed_at":"2017-03-20T08:04:41.000Z","size":449,"stargazers_count":3,"open_issues_count":6,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-04T18:48:29.963Z","etag":null,"topics":["air-quality","air-quality-data","air-quality-sensor","d3-js","internet-of-things","open-data","paho-mqtt","web-of-things"],"latest_commit_sha":null,"homepage":"http://evanxd.io/air-quality-widget","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evanxd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-03-11T05:36:31.000Z","updated_at":"2024-11-05T16:49:57.000Z","dependencies_parsed_at":"2023-05-06T09:32:28.819Z","dependency_job_id":null,"html_url":"https://github.com/evanxd/air-quality-widget","commit_stats":{"total_commits":55,"total_committers":2,"mean_commits":27.5,"dds":0.4545454545454546,"last_synced_commit":"63151861e5a280e2541c324bbec273863bca42c2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/evanxd/air-quality-widget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanxd%2Fair-quality-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanxd%2Fair-quality-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanxd%2Fair-quality-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanxd%2Fair-quality-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evanxd","download_url":"https://codeload.github.com/evanxd/air-quality-widget/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanxd%2Fair-quality-widget/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29750591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["air-quality","air-quality-data","air-quality-sensor","d3-js","internet-of-things","open-data","paho-mqtt","web-of-things"],"created_at":"2024-07-29T19:25:43.346Z","updated_at":"2026-02-23T18:33:04.570Z","avatar_url":"https://github.com/evanxd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Air Quality Widget\nA Web widget to visually show real-time air quality data. It depends on two libraries, [D3.js][d3-js] ([Liquid Fill Gauge][liquid-fill-gauge]) to show data visually and [Paho][paho] to get data from a MQTT server.\n\nGo to the [widget demonstration page][demo] to see the visualized real-world air quality data. If the value on the widget always keeps zero, it means no one uploads air quality data to the MQTT broker/topic. And you can follow the [instruction][air-quality-monitoring-station] to setup one and show the data visually with the widget.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://evanxd.io/air-quality-widget/\"\u003e\u003cimg src=\"./images/demo.gif\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## How-to\nThis is a iframe-based widget. You can simply embed it into your web page with the below one line HTML code.\n```html\n\u003ciframe src=\"http://evanxd.io/air-quality-widget/widget.html?mqtt=broker.mqtt-dashboard.com\u0026port=8000\u0026topic=topic\" frameborder=\"0\" scrolling=\"no\"\u003e\u003c/iframe\u003e\n```\n\nThis is its URL search parameters to receive air quality data from a specific MQTT server or topic.\n- Required\n  - `topic`\n    - A MQTT topic you receive the data from, the default value is `topic`.\n- Optional\n  - `mqtt`\n    - A MQTT server address, the default value is `broker.mqtt-dashboard.com`.\n  - `port`\n    - A MQTT server port, the default value is `8000`.\n  - `mode`\n    - The widget mode you want to use, the default value is `average`.\n      - `average` means show the one-minute average data.\n      - `real-time` means show the real-time data at a moment.\n\nThe air quality data format/example on the MQTT broker topic is\n```json\n{ \"pm1_0\": 26, \"pm2_5\": 36, \"pm10_0\": 38 }\n```\nPlease make sure you have same format data to use the widget, or just flash the [air-quality-monitoring-station][air-quality-monitoring-station] firmware into your device to do so.\n\n[d3-js]: https://d3js.org/\n[liquid-fill-gauge]: http://bl.ocks.org/brattonc/5e5ce9beee483220e2f6\n[paho]: http://www.eclipse.org/paho\n[demo]: http://evanxd.io/air-quality-widget\n[air-quality-monitoring-station]: https://github.com/evanxd/air-quality-monitoring-station\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanxd%2Fair-quality-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevanxd%2Fair-quality-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanxd%2Fair-quality-widget/lists"}