{"id":15011275,"url":"https://github.com/ent8r/wifiradio","last_synced_at":"2026-03-08T04:31:50.507Z","repository":{"id":60190240,"uuid":"109611666","full_name":"ENT8R/wifiradio","owner":"ENT8R","description":"📻 Node.js module for controlling WiFi-radios","archived":false,"fork":false,"pushed_at":"2023-08-19T12:46:00.000Z","size":1316,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-02T11:31:57.126Z","etag":null,"topics":["api","frontier-silicon","fsapi","home-automation","iot","node-js","nodejs","radio","wifi-radio","wifiradio"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ENT8R.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":"2017-11-05T20:01:24.000Z","updated_at":"2023-08-30T13:49:59.000Z","dependencies_parsed_at":"2022-09-26T14:00:24.655Z","dependency_job_id":null,"html_url":"https://github.com/ENT8R/wifiradio","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ENT8R%2Fwifiradio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ENT8R%2Fwifiradio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ENT8R%2Fwifiradio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ENT8R%2Fwifiradio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ENT8R","download_url":"https://codeload.github.com/ENT8R/wifiradio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239011409,"owners_count":19567661,"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":["api","frontier-silicon","fsapi","home-automation","iot","node-js","nodejs","radio","wifi-radio","wifiradio"],"created_at":"2024-09-24T19:40:06.289Z","updated_at":"2026-03-08T04:31:50.457Z","avatar_url":"https://github.com/ENT8R.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WiFi-Radio\n\n![test](https://github.com/ENT8R/wifiradio/actions/workflows/test.yml/badge.svg?branch=master) [![version](http://img.shields.io/npm/v/wifiradio.svg)](https://www.npmjs.org/package/wifiradio) [![downloads](https://img.shields.io/npm/dm/wifiradio.svg)](https://www.npmjs.org/package/wifiradio)\n\nNodeJS module for controlling WiFi-radios\n\n## Installation\n\n```\nnpm install wifiradio --save\n```\n\n## Usage\n\n```javascript\nconst Wifiradio = require('wifiradio');\n\nconst ip = '192.168.178.27'; // Change this to the ip adress of your radio\nconst pin = '1234'; // This is the default PIN for the radio. (Works in most cases)\n\nconst radio = new Wifiradio(ip, pin);\n\nradio.setPower(1).then(() =\u003e {\n  radio.getPower().then(result =\u003e {\n    console.log(`Power: ${result}`);\n  });\n});\n\nradio.getMute().then(result =\u003e {\n  console.log(`Mute: ${result}`);\n});\n\nradio.getText().then(result =\u003e {\n  console.log(`Text: ${result}`);\n});\n\nradio.getMode().then(result =\u003e {\n  console.log(`Mode: ${result}`);\n});\n```\n\n## Features\n\nThis page lists all commands that are directly accessible with the use of this library. These commands only provide a very simple high-level access to the features of your radio.\n\n:warning: For more advanced use cases I suggest that you may take a look at [this very extensive list of possible commands](https://github.com/flammy/fsapi/blob/master/FSAPI.md) and don't use the functions listed below but rather access the API via the following function for direct access:\n\n#### Direct Access\n```javascript\nradio.get('sys.sleep').then(console.log);\nradio.get('netRemote.sys.sleep').then(console.log);\n\nradio.set('sys.sleep', 60).then(console.log);\n\nradio.get('sys.info.friendlyname').then(console.log);\nradio.set('sys.audio.volume', 5).then(console.log);\n```\n\n---\n\n### Power\n\n```javascript\n// Turn on\nradio.setPower(1);\n\n// Turn off\nradio.setPower(0);\n\n// Get whether the radio is on or off (returns 0 or 1)\nradio.getPower().then(console.log);\n```\n\n### Mute\n\n```javascript\n// Mute on\nradio.setMute(1);\n\n// Mute off\nradio.setMute(0);\n\n// Get whether the radio is mute or not (returns 0 or 1)\nradio.getMute().then(console.log);\n```\n\n### Volume\n\n```javascript\n// Set volume (value from 1-20)\nradio.setVolume(10);\n\n// Get the current volume (returns a value from 1-20)\nradio.getVolume().then(console.log);\n```\n\n### Modes\n\n```javascript\n// Set a mode\nradio.setMode(2);\n\n// Get the current playing mode\nradio.getMode().then(console.log);\n```\n\n### Display\n\n```javascript\n// Get the first line of the display\nradio.getName().then(console.log);\n\n// Get the second line of the display\nradio.getText().then(console.log);\n```\n\n## Contributing\n\nThere are many more requests that could be done by this module. If you think that something is missing just open an issue for that or make a pull request. If you need some help, you can have a look [here](https://github.com/flammy/fsapi/blob/master/FSAPI.md) for some further requests.\n\n## License\n\n[GPL-3.0](https://github.com/ENT8R/wifiradio/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fent8r%2Fwifiradio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fent8r%2Fwifiradio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fent8r%2Fwifiradio/lists"}