NodeJS module for controlling WiFi-radios
npm install wifiradio --save
const Wifiradio = ;const ip = '192.168.178.27'; // Change this to the ip adress of your radioconst pin = '1234'; // This is the default PIN for the radio. (Works in most cases)const radio = ip pin;radio;radio;radio;radio;
This 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.
⚠️ For more advanced use cases I suggest that you may take a look at this very extensive list of possible commands and don't use the functions listed below but rather access the API via the following function for direct access:
// Turn onradio;// Turn offradio;// Get whether the radio is on or off (returns 0 or 1)radio;
// Mute onradio;// Mute offradio;// Get whether the radio is mute or not (returns 0 or 1)radio;
// Set volume (value from 1-20)radio;// Get the current volume (returns a value from 1-20)radio;
// Set a moderadio;// Get the current playing moderadio;
// Get the first line of the displayradio;// Get the second line of the displayradio;
There 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 for some further requests.