{"id":16948146,"url":"https://github.com/technicalpickles/sleepyq","last_synced_at":"2025-09-26T12:31:26.453Z","repository":{"id":52452956,"uuid":"65586816","full_name":"technicalpickles/sleepyq","owner":"technicalpickles","description":"SleepIQ API for Python","archived":false,"fork":false,"pushed_at":"2021-04-28T21:42:51.000Z","size":40,"stargazers_count":41,"open_issues_count":9,"forks_count":19,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-09-12T00:20:35.287Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/technicalpickles.png","metadata":{"files":{"readme":"README.rst","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":"2016-08-12T22:21:59.000Z","updated_at":"2025-05-27T14:10:12.000Z","dependencies_parsed_at":"2022-09-18T13:02:06.142Z","dependency_job_id":null,"html_url":"https://github.com/technicalpickles/sleepyq","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/technicalpickles/sleepyq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technicalpickles%2Fsleepyq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technicalpickles%2Fsleepyq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technicalpickles%2Fsleepyq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technicalpickles%2Fsleepyq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/technicalpickles","download_url":"https://codeload.github.com/technicalpickles/sleepyq/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technicalpickles%2Fsleepyq/sbom","scorecard":{"id":872072,"data":{"date":"2025-08-11","repo":{"name":"github.com/technicalpickles/sleepyq","commit":"cdbe7b79b3ca2390e2d8b36632b43e2c5d402b09"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":7,"reason":"Found 6/8 approved changesets -- score normalized to 7","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T04:35:24.160Z","repository_id":52452956,"created_at":"2025-08-24T04:35:24.160Z","updated_at":"2025-08-24T04:35:24.160Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277050661,"owners_count":25751825,"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","status":"online","status_checked_at":"2025-09-26T02:00:09.010Z","response_time":78,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-13T21:49:46.154Z","updated_at":"2025-09-26T12:31:26.150Z","avatar_url":"https://github.com/technicalpickles.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"==========\nSleepyq\n==========\n\nSleepyq is an library for accessing the SleepIQ API from Python. `SleepIQ \u003chttp://www.sleepnumber.com/sn/en/sleepiq-sleep-tracker\u003e`__ is an addon for `SleepNumber beds \u003chttp://www.sleepnumber.com/\u003e`__.\n\nTo install:\n\n.. code:: bash\n\n    python3 -m pip install sleepyq\n\nTo get started using the library, here's the full usage:\n\n    \u003e\u003e\u003e from sleepyq import Sleepyq\n    \u003e\u003e\u003e from pprint import pprint\n    \u003e\u003e\u003e\n    \u003e\u003e\u003e client = Sleepyq('your-login', 'your-password')\n    \u003e\u003e\u003e client.login()\n    \u003e\u003e\u003e pprint(client.sleepers())\n    \u003e\u003e\u003e pprint(client.beds())\n    \u003e\u003e\u003e pprint(client.bed_family_status())\n    \u003e\u003e\u003e client.set_light(lightNumber, setting, bedId='')\n    \u003e\u003e\u003e pprint(client.get_light(lightNumber, bedId=''))\n    \u003e\u003e\u003e client.preset(preset, side, bedId='', slowSpeed=False)\n    \u003e\u003e\u003e client.set_foundation_position(bedNumber, actuator, position, side, bedId='', slowSpeed=False)\n    \u003e\u003e\u003e client.set_foundation_massage(bedNumber, footSpeed, headSpeed, side, timer=0, mode=0, bedId='')\n    \u003e\u003e\u003e client.set_sleepnumber(side, sleepnumber, bedId='')\n    \u003e\u003e\u003e client.set_favsleepnumber(side, sleepnumber, bedId='')\n    \u003e\u003e\u003e pprint(client.get_favsleepnumber(bedId=''))\n    \u003e\u003e\u003e client.stop_motion(bedId='', side)\n    \u003e\u003e\u003e client.stop_pump(bedId='')\n    \u003e\u003e\u003e pprint(client.foundation_status(bedId=''))\n    \u003e\u003e\u003e pprint(client.foundation_system(bedId=''))\n    \u003e\u003e\u003e pprint(client.foundation_features(bedId=''))\n\nThe API is undocumented, so this library does not make much attempt to structure the data from the API into objects.\n\nDevelopment Notes\n-----------------\n\nThe SleepIQ API was `announced at CES 2016 \u003chttps://www.engadget.com/2016/01/04/sleep-numbers-new-bed-will-train-you-to-sleep-better/\u003e`__ but there has yet to be any public documentation.\n\nhttps://sleepiq.sleepnumber.com appears to use the SleepIQ API internally, and methods here were written based on observing use of the site with Chrome Developer Tools and by running the Android app through a proxy. There was also prior art at https://github.com/erichelgeson/sleepiq (the API has changed since then) and https://github.com/natecj/sleepiq-php\n\nThe first request to happen is to login. This returns a key (_k) that needs to be used on subsequent requests as a parameter. Subsequent requests also need to be part of the same 'session', since those calls expect some cookies to be set.\n\nTodo\n-----\n\n- Error check response for non-200 code, or errors returned as JSON\n- Explore API more. There are a few more API calls out there, like updating profile, modifying sleep for previous night, but they seem less immediately useful for automation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnicalpickles%2Fsleepyq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnicalpickles%2Fsleepyq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnicalpickles%2Fsleepyq/lists"}