Grab the Docker Compose from here, and give it a whirl.
-
You need to find the IP of your Sonos device (e.g. from the Sonos mobile app
About My System
), and put this in thelog-sonos-to-kafka.sh
file and then execute it:./log-sonos-to-kafka.sh
-
Launch ksqlDB CLI:
docker exec -it ksqldb-cli bash -c 'echo -e "\n\n⏳ Waiting for ksqlDB to be available before launching CLI\n"; while : ; do curl_status=$(curl -s -o /dev/null -w %{http_code} http://ksqldb-server:8088/info) ; echo -e $(date) " ksqlDB server listener HTTP state: " $curl_status " (waiting for 200)" ; if [ $curl_status -eq 200 ] ; then break ; fi ; sleep 5 ; done ; ksql http://ksqldb-server:8088'
Then run through the article as shown, and enjoy!
You’ll find Grafana at http://localhost:3000 (login admin
/admin
) and Chronograf at http://localhost:8888/.