{"id":19358548,"url":"https://github.com/auchenberg/dyson-purelink","last_synced_at":"2025-04-23T11:32:04.056Z","repository":{"id":22569262,"uuid":"96708845","full_name":"auchenberg/dyson-purelink","owner":"auchenberg","description":"Control Dyson PureLink fan/purifier devices from JavaScript","archived":false,"fork":false,"pushed_at":"2022-12-11T18:28:37.000Z","size":88,"stargazers_count":38,"open_issues_count":6,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-14T12:15:34.722Z","etag":null,"topics":["dyson","iot","library","purelink"],"latest_commit_sha":null,"homepage":null,"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/auchenberg.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}},"created_at":"2017-07-09T20:15:46.000Z","updated_at":"2022-08-11T07:58:22.000Z","dependencies_parsed_at":"2023-01-11T21:40:53.616Z","dependency_job_id":null,"html_url":"https://github.com/auchenberg/dyson-purelink","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auchenberg%2Fdyson-purelink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auchenberg%2Fdyson-purelink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auchenberg%2Fdyson-purelink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auchenberg%2Fdyson-purelink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/auchenberg","download_url":"https://codeload.github.com/auchenberg/dyson-purelink/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223922080,"owners_count":17225636,"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":["dyson","iot","library","purelink"],"created_at":"2024-11-10T07:12:15.879Z","updated_at":"2024-11-10T07:12:16.482Z","avatar_url":"https://github.com/auchenberg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dyson-purelink\n\nControl Dyson PureLink fan/purifier devices from JavaScript. Discovers local devices on your WIFI via Bonjour/mDNS, logs into the Dyson Cloud to grab the device credentials and connects to the devices via MQTT.\n\nTested with the follow devices:\n- Dyson Pure Cool Link Air Purifier \u0026 Fan Tower (1st Gen. filter)\n\n## Install\n```\nnpm install dyson-purelink\n```\n\n## Use\n\n```javascript\nvar DysonPureLink = require('dyson-purelink')\n\nvar pureLink = new DysonPureLink(\"\u003cyour dyson cloud email\u003e\", \"\u003cyour password\u003e\", \"\u003cyour country\u003e\");\n\npureLink.getDevices().then(async devices =\u003e {\n\n    if(!Array.isArray(devices) || devices.length === 0) {\n        console.log('No devices found')\n        return\n    }\n    // Get status\n    console.log('getTemperature', await devices[0].getTemperature());\n    console.log('getAirQuality', await devices[0].getAirQuality());\n    console.log('getRelativeHumidity', await devices[0].getRelativeHumidity());\n    console.log('getFanStatus', await devices[0].getFanStatus());\n    console.log('getFanSpeed', await devices[0].getFanSpeed());\n    console.log('getRotationStatus', await devices[0].getRotationStatus());\n    console.log('getAutoOnStatus', await devices[0].getAutoOnStatus());\n\n    // Actions\n    await devices[0].turnOn();\n    console.log('setRotation', await devices[0].setRotation(true));\n    console.log('setFanSpeed', await devices[0].setFanSpeed(100));\n\n    await pureLink.disconnect();\n}).catch(err =\u003e console.error(err))\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauchenberg%2Fdyson-purelink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fauchenberg%2Fdyson-purelink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauchenberg%2Fdyson-purelink/lists"}