This project offers a robust Go library and CLI tool for seamless integration and control of Bose SoundTouch devices via their Web API. With features like complete API coverage, real-time event monitoring, and multiroom support, it simplifies device management across platforms, making it essential for Bose users.
The Bose SoundTouch API Client is a robust Go library and command-line interface (CLI) tool designed for efficient control and interaction with Bose SoundTouch devices through their Web API.
Use the CLI to quickly discover devices and control playback:
# Discover SoundTouch devices on the network
soundtouch-cli discover devices
# Control a device
soundtouch-cli --host 192.168.1.100 play start
soundtouch-cli --host 192.168.1.100 volume set --level 50
For library integration, interact with the SoundTouch devices programmatically:
package main
import (
"fmt"
"log"
"github.com/gesellix/bose-soundtouch/pkg/client"
)
func main() {
c := client.NewClient(&client.Config{
Host: "192.168.1.100",
Port: 8090,
})
// Get device information
info, err := c.GetDeviceInfo()
if err != nil {
log.Fatal(err)
}
fmt.Printf("Device: %s\n", info.Name)
// Control playback
c.Play()
}
This library supports a range of Bose SoundTouch-compatible devices, including:
Follow the extensive documentation for guides on various functionalities, troubleshooting, and advanced configurations. This project relies on the official Bose SoundTouch Web API documentation and is developed independently without affiliation to Bose Corporation.
No comments yet.
Sign in to be the first to comment.