{"id":25167291,"url":"https://github.com/rilendorf/yamaha-node","last_synced_at":"2026-05-03T06:32:23.455Z","repository":{"id":140494231,"uuid":"465534505","full_name":"rilendorf/yamaha-node","owner":"rilendorf","description":"A nodejs implementation of a protocol used by YAMAHAs AV Controller Android app","archived":false,"fork":false,"pushed_at":"2022-04-07T19:45:57.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T11:53:46.457Z","etag":null,"topics":["libary","nodejs","yamaha-av-receiver"],"latest_commit_sha":null,"homepage":"","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/rilendorf.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-03T02:05:26.000Z","updated_at":"2024-08-18T09:24:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"22d896e1-8cdd-4686-9d2f-b01c72c0f0af","html_url":"https://github.com/rilendorf/yamaha-node","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"71256341a78adc67f27896f2530502349319179d"},"previous_names":["rilendorf/yamaha-node"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rilendorf/yamaha-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rilendorf%2Fyamaha-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rilendorf%2Fyamaha-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rilendorf%2Fyamaha-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rilendorf%2Fyamaha-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rilendorf","download_url":"https://codeload.github.com/rilendorf/yamaha-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rilendorf%2Fyamaha-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32560350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T03:21:47.309Z","status":"ssl_error","status_checked_at":"2026-05-03T03:21:43.884Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["libary","nodejs","yamaha-av-receiver"],"created_at":"2025-02-09T06:32:28.866Z","updated_at":"2026-05-03T06:32:23.440Z","avatar_url":"https://github.com/rilendorf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yamaha-node\n\nA implementation of some obscure-ish YAMAHA protocol, found in the \"AV Controller\" App for Android\n\n## How to use\n\n```js\n// import the library\nconst {Host} = require(\"./yamaha-node.js\")\n\n// create a Host object\nvar MyHost = new Host(\"\u003cip\u003e\")\n\n// list of all available \"features\" or functions\nMyHost.features\n\n// get a specific feature by its name\nMyHost.features.find(\"\u003cfeature name\u003e\")\n\n// get the state of a feature\nlet feature = MyHost.features.find(\"\u003cfeature name\u003e\")\n// do the request\nMyHost.getFeature(feature).then(data =\u003e {\n\t// you can (for all features) just use the default .toString() method to get a human friendly name for the feature\n\tconsole.log(data.toString())\n})\n\n// set the state of a feature\nfeature = MyHost.features.find(\"\u003cfeature name\u003e\")\n// do the request\nMyHost.setFeature(feature, \"\u003cstate\u003e\").then(res =\u003e { // state can be a string or number depending on what the feature is\n\tconsole.log(res) // if res === \"0\", then success all other values are unknown errors\n})\n```\n\nworking examples can be found in `test.js`\n\n## Documentation of the Definition format: (definition.json)\n\n```json\n{\n\t\"endpoint\": \"\u003crelative path\u003e\", // endpoint for all port requests\n\t\"features\": [\n\t\t{\n\t\t\t\"name\": \"\u003cname\u003e\", // the name of your feature\n\t\t\t\"type\": \"\u003ctype\u003e\", // type of input see \"types\" part of documentation\n\t\t\t\"values\": {},     // see \"types\"\n\t\t\t\"mult\": aN,       // see \"types\"\n\t\t\t\"setRequest\": {\n\t\t\t\t\"data\": \"\u003crequest body\u003e\" // the raw string send to the reciver, ${data} gets replaced with value\n\t\t\t},\n\t\t\t\"locationGet\": {\n\t\t\t\t\"location\": [],          // see \"location\"\n\t\t\t\t\"sReqId\": \"\u003crequest id\u003e\" // Request ID\n\t\t\t}\n\t\t}, \u003cetc\u003e\n\t]\n\n\t\"requests\": {\n\t\t\"\u003crequest id\u003e\": {\n\t\t\t\"cacheTime\": aN,         // time in ms a cache is valid\n\t\t\t\"data\": \"\u003crequest body\u003e\" // raw string send to the reciver\n\t\t}\n\t}\n}\n```\n\n### types\n\nPossible types are: \n\n- toggle\n  ```json\n  \"type\": \"toggle\",\n  \"values\": {\n  \t\"tName\": \"\u003cname when true\u003e\"\n      \"fName\": \"\u003cname when false\u003e\"\n  },\n  \"mult\": null\n  ```\n\n- range\n  ```json\n  \"type\": \"range\",\n  \"values\": {\n  \t\"max\": \u003cmaximal value\u003e,\n  \t\"min\": \u003cminimal value\u003e,\n  \t\"step\": \u003cleast significant unit,\n  \t\"avg\": \u003cdefault value\u003e\n   }\n  \"mult\": \u003cmultiplier\u003e\n  ```\n\n- input\n  ```json\n  \"type\": \"input\",\n  \"values\": [\n  \t{\n  \t\t\"tName\": \"\u003ctechnical name\u003e\",\n  \t\t\"fName\": \"\u003cfriendly name\u003e\",\n  \t\t\"desc\":  \"Description of input\"\n  \t}\n  ],\n  \"mult\": null\n  ```\n\n### location\n\nA array of elements usually separated by 0s\n\nfor example the power location looks like:\n\n```json\n[\"YAMAHA_AV\", \"Main_Zone\", 0, \"Basic_Status\", 0, \"Power_Control\", 0 \"Power\", 0]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frilendorf%2Fyamaha-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frilendorf%2Fyamaha-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frilendorf%2Fyamaha-node/lists"}