- Install
arduino-cli
- Have an instance of my fork of
node-sonos-http-api
running and accessible - Have an Arduino MKR IoT Carrier + Arduino MKR WiFi 1010
-
Install libraries with
./run.sh -c install
-
Create
Sonos/Secrets.h
#define WIFI_SSID "WiFi SSID" #define WIFI_PASSWORD "WiFi Password"
-
Edit
Sonos/SonosConfig.h
#define SONOS_ROOM "Office" #define SONOS_SERVER "192.168.4.30" #define SONOS_PORT 5005
-
Find board
fqbn
andport
witharduino-cli board list
-
Run
./run.sh -b $FQBN -p $PORT -d ALL
The device will go to sleep after SLEEP
ms (see Utils.h) if the player state has not changed.
You can also trigger sleep/wake manually by a Tap Hold
action on Button 0
.
The player buttons will lock (indicated by the controls turning red) after LOCK
ms (see Utils.h) if no commands have been initiated from the player buttons.
You can also trigger lock/unlock manually by a Tap Hold
action on Button 4
.
- Tap: Previous Track
- Double Tap: First Track
- Hold: Previous Room
- Tap: Volume -1
- Double Tap: Volume -5
- Hold: Toggle Mute
- Tap: Toggle Play/Pause
- Double Tap: Toggle Shuffle
- Hold: Toggle Repeat All/One/None
- Tap: Volume +1
- Double Tap: Volume +5
- Hold: Toggle Mute
- Tap: Next Track
- Double Tap:
- Hold: Next Room