Toon app: Sonos Control

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Sonos Control

Post by Toonz »

good catch, the data is saved at the wrong location. Will create a new version soon.
For now, manually create/edit the file /mnt/data/tsc/sonos.userSettings.json
content:

Code: Select all

{"path":"192.168.2.35:5005","showSonosIcon":"true","sonosName":"Keuken"}
replace path with your own ip address/port. sonosName is the name of the room you want to see after restart of the gui (typically the last one selected)
member of the Toon Software Collective
yjb
Member
Member
Posts: 211
Joined: Fri Apr 17, 2009 1:15 pm
Location: Venhuizen, Netherlands

Re: Toon app: Sonos Control

Post by yjb »

Thanks, that works!
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Sonos Control

Post by Toonz »

hi all,

version 1.1.5 is available in ToonStore 5.
Changelog:
- fix the bug in the settings screen via the Toon menu. It didn't save the data at the correct location and didn't show the current settings.

to be honest I completely overlooked this screen when making the earlier update to store the settings in the sonos.userSettings.json file.

Kind regardz,

Toonz
member of the Toon Software Collective
yjb
Member
Member
Posts: 211
Joined: Fri Apr 17, 2009 1:15 pm
Location: Venhuizen, Netherlands

Re: Toon app: Sonos Control

Post by yjb »

Thanks, that works.
Hannesmsi
Starting Member
Starting Member
Posts: 1
Joined: Wed Jan 22, 2020 8:25 pm

Re: Toon app: Sonos Control

Post by Hannesmsi »

Hi all,

Is there maybe someone who has created (or knows howto create) an simulair app for Denon HEOS and Toon?
I would be great, if we could control and play music by using the Toon(2).

kind regards,
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Sonos Control

Post by Toonz »

The Toon is not talking directly to the Sonos speakers but to a "sonos-http-api" running somewhere in your network (in my case a raspberry Pi).
You need a similar type of 'bridge' in order to use the HEOS protocol (basically a telnet session over port 1255 I believe) via http.
Pure coincidentally PostNL just delivered my new receiver (Marantx NR1710 receiver) which supports HEOS as well. So maybe, a big maybe I will spend some time on this this year.
At the moment it is very low on my to-do list
member of the Toon Software Collective
ErikM1972
Starting Member
Starting Member
Posts: 4
Joined: Sat Dec 14, 2019 2:10 pm

Re: Toon app: Sonos Control

Post by ErikM1972 »

How can i get this to work with a raspberry in my network?

Tried a few things, but not getting Sonos to work on Toon2

Erik
TerrorSource
Administrator
Administrator
Posts: 494
Joined: Thu May 04, 2017 9:28 pm

Re: Toon app: Sonos Control

Post by TerrorSource »

ErikM1972 wrote:How can i get this to work with a raspberry in my network?

Tried a few things, but not getting Sonos to work on Toon2

Erik
You need the "Sonos-http-api" for this.
Found on GitHub: https://github.com/jishi/node-sonos-http-api

My personal notes for installation:
https://github.com/jishi/node-sonos-htt ... s-http-api

NodeJS + NPM:
wget https://nodejs.org/dist/latest-v8.x/nod ... v7l.tar.gz
tar -xzf node-v8.17.0-linux-armv7l.tar.gz
cd node-v8.17.0-linux-armv7l/
sudo cp -R * /usr/local/

INSTALL
sudo git clone https://github.com/jishi/node-sonos-http-api.git
cd node-sonos-http-api
sudo npm install --production
sudo npm start

START API ON PI POWERUP
sudo npm install -g pm2
sudo pm2 startup
sudo pm2 start server.js -x --name "sonos-http-api"
sudo pm2 dump
sudo reboot
ErikM1972
Starting Member
Starting Member
Posts: 4
Joined: Sat Dec 14, 2019 2:10 pm

Re: Toon app: Sonos Control

Post by ErikM1972 »

I get this when i try to install on the Pi : wget https://nodejs.org/dist/latest-v8.x/nod ... v7l.tar.gz
--2020-03-13 17:55:20-- https://nodejs.org/dist/latest-v8.x/nod
Resolving nodejs.org (nodejs.org)... 104.20.22.46, 104.20.23.46, 2606:4700:10::6814:172e, ...
Connecting to nodejs.org (nodejs.org)|104.20.22.46|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-03-13 17:55:20 ERROR 404: Not Found.

--2020-03-13 17:55:20-- http://.../
Resolving ... (...)... failed: Name or service not known.
wget: unable to resolve host address ‘...’
--2020-03-13 17:55:20-- http://v7l.tar.gz/
Resolving v7l.tar.gz (v7l.tar.gz)... failed: Name or service not known.
wget: unable to resolve host address ‘v7l.tar.gz’

But when i do the INSTALL, i see my Sonos appearing on my Toon2, seems to be working, thx

Erik
TerrorSource
Administrator
Administrator
Posts: 494
Joined: Thu May 04, 2017 9:28 pm

Re: Toon app: Sonos Control

Post by TerrorSource »

ErikM1972 wrote:I get this when i try to install on the Pi : wget https://nodejs.org/dist/latest-v8.x/nod ... v7l.tar.gz
--2020-03-13 17:55:20-- https://nodejs.org/dist/latest-v8.x/nod
Resolving nodejs.org (nodejs.org)... 104.20.22.46, 104.20.23.46, 2606:4700:10::6814:172e, ...
Connecting to nodejs.org (nodejs.org)|104.20.22.46|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-03-13 17:55:20 ERROR 404: Not Found.

--2020-03-13 17:55:20-- http://.../
Resolving ... (...)... failed: Name or service not known.
wget: unable to resolve host address ‘...’
--2020-03-13 17:55:20-- http://v7l.tar.gz/
Resolving v7l.tar.gz (v7l.tar.gz)... failed: Name or service not known.
wget: unable to resolve host address ‘v7l.tar.gz’

But when i do the INSTALL, i see my Sonos appearing on my Toon2, seems to be working, thx

Erik
Was just my personal notes :) I've also posted a link to the manual on github in my previous post. That might help
ErikM1972
Starting Member
Starting Member
Posts: 4
Joined: Sat Dec 14, 2019 2:10 pm

Re: Toon app: Sonos Control

Post by ErikM1972 »

Almost working. Problem is Node 10. I need an older version like 8, but wont install, when i check version, i get 10 again. Because of that, Sonos only works on my Toon2, if my terminal session is open. When i use the option to start API on startup, its not working, Where do i go wrong?

Erik
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Sonos Control

Post by Toonz »

Hi all,

I just published a new version (1.2.1) in ToonStore.
This release adds the option the send a text message to a Sonos room using the Google TTS (Text to Speech) service in Dutch language.
Music which is being played will be paused and continue after the message is completely played.
Messages, volume setting and selected room will be stored or future use.
Note that when you select to play the message in all Sonos rooms, it will be played room by room sequentially.
It can take a while before the notification shows up on Toon that the message has been played successfully.

Changelog:
1.2.1
- added volume settings for audio messages
1.2.0
- added option to play text messages on Sonos speakers (Text-To-Speech)
accessible via button 'Audiobericht' on the favourites screen

Kind regardz,

Toonz
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Sonos Control

Post by Toonz »

Hi all,

Version 1.2.2 is available in the ToonStore.
Changelog:
- prevent sending a new audio message before the previous one has completed (to avoid losing the info of the audio track being played earlier)
- significant code cleanup to remove numerous warnings written to the qt logfile/console

Kind regardz,

Toonz
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Sonos Control

Post by Toonz »

Hi all,

The next public version 1.2.6 is now available in the ToonStore.
This version will bring the full integration with the Voetbal app in the ToonStore (thanks to oepi-loepi for the changes in the voetbal app).
First configure one or more favourite teams in the Voetbal app.
Then go to the Toon menu and enter the Sonos settings.
Enable the option to play soccer game updates and select the zone (speaker) on which you want the messages to be played.
The volume on which the messages are played is the same as the volume configured in the screen 'Audio berichten" in the sonos app.

You will hear a message when a game with one of your favourite teams starts, when a goal is scored and when the game ends. This done via the sonos-http-api functionality using the Google text-to-speech service.
These messages are triggered by the voetbal app so you must have that one installed obviously.
If you listen to music during a match, the music track will continue after the message has been played.

Examples:
"De voetbalwedstrijd tussen Heracles en FC Utrecht is begonnen."
"De nieuwe tussenstand bij Heracles tegen FC Utrecht is nu 1 tegen 0"
"De voetbalwedstrijd tussen Heacles en FC Utrecht is geeindigd in 1 tegen 0"

Kind regards,

Toonz
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Sonos Control

Post by Toonz »

Hi all,

version 1.2.8 is available in the ToonStore.
changelog:
- small bugfix: the title or artist of the previous track was shown if the current track didn't have a title of artists mp3 tag.

Kind regardz,

Toonz
member of the Toon Software Collective
Post Reply

Return to “Toon Apps”