{"id":16133106,"url":"https://github.com/aschuma/air-sensor","last_synced_at":"2026-02-23T00:43:24.846Z","repository":{"id":29024080,"uuid":"120031949","full_name":"aschuma/air-sensor","owner":"aschuma","description":" air-sensor node module - looks up particulate-matter sensors of the luftdaten network (https://sensor.community/)","archived":false,"fork":false,"pushed_at":"2024-11-12T16:45:22.000Z","size":260,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-02T04:43:22.154Z","etag":null,"topics":["air-quality","airrohr","feinstaub","feinstaubalarm","feinstaubsensor","luftdaten","particulate-matter","pm10","sensor-data"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aschuma.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-02T21:14:01.000Z","updated_at":"2022-07-08T17:21:18.000Z","dependencies_parsed_at":"2022-07-09T11:00:28.868Z","dependency_job_id":null,"html_url":"https://github.com/aschuma/air-sensor","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschuma%2Fair-sensor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschuma%2Fair-sensor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschuma%2Fair-sensor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschuma%2Fair-sensor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aschuma","download_url":"https://codeload.github.com/aschuma/air-sensor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230523779,"owners_count":18239438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","airrohr","feinstaub","feinstaubalarm","feinstaubsensor","luftdaten","particulate-matter","pm10","sensor-data"],"created_at":"2024-10-09T22:37:03.574Z","updated_at":"2026-02-23T00:43:24.800Z","avatar_url":"https://github.com/aschuma.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# air-sensor \n\n[![version](https://img.shields.io/npm/v/air-sensor.svg?style=flat-square)](http://npm.im/air-sensor)\n[![downloads](https://img.shields.io/npm/dm/air-sensor.svg?style=flat-square)](http://npm-stat.com/charts.html?package=air-sensor\u0026from=2018-01-04)\n[![MIT License](https://img.shields.io/npm/l/air-sensor.svg?style=flat-square)](http://opensource.org/licenses/MIT)\n\nLooks up a single particulate-matter sensors of the [luftdaten network](http://luftdaten.info/en/home-en). \nYou may zoom in the [map](http://maps.luftdaten.info/#2/0.0/0.0) to obtain the id of a sensor next to you. \n\n```\nvar sensor = require(\"air-sensor\");\n\nvar sensorId = 9322;\nsensor.lookup( sensorId ).then( \n   data =\u003e console.log( data ) \n);\n```\n\nIn case the sensor is a PM sensor the subsequent structure is returned: \n```\n{ \n   id: 9322,\n   type: 'PM'\n   location: { \n      longitude: 9.228, \n      latitude: 48.804\n   },\n   PM10: 6.4,\n   PM2_5: 5.9,\n   timestamp: '2018-02-04 14:38:08' \n}\n```\n\n\nIn case the sensor is a temperature (celsius) sensor the subsequent structure is returned: \n```\n{ \n   id: 9322,\n   type: 'temperature',\n   location: { \n      longitude: 9.228, \n      latitude: 48.804\n   },\n   temperature: 1.9,\n   humidity: 85.7,\n   timestamp: '2018-02-04 14:38:08' \n}\n```\n\nThere is also a method returning a 24h average value. The output format remains the same as above.\n\n```\nvar sensor = require(\"air-sensor\");\n\nvar sensorId = 9322;\nsensor.lookup24hAvg( sensorId ).then( \n   data =\u003e console.log( data ) \n);\n```\n\nIn addition its also possible to fetch all current sensor data of an area. This will return an array of objects having the same structure as above.\n\n```\nvar sensor = require(\"air-sensor\");\n \nvar latitude = 49.1355;\nvar longitude = 9.228;\nvar distance = 1.1;\n\nsensor.lookupArea(latitude,longitude,distance).then(\n   data =\u003e console.log( data ) \n);\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faschuma%2Fair-sensor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faschuma%2Fair-sensor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faschuma%2Fair-sensor/lists"}