Page 4 of 5

Re: Toon app: Sonos Control

Posted: Wed Dec 18, 2019 11:32 pm
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)

Re: Toon app: Sonos Control

Posted: Thu Dec 19, 2019 11:09 am
by yjb
Thanks, that works!

Re: Toon app: Sonos Control

Posted: Thu Dec 19, 2019 11:18 pm
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

Re: Toon app: Sonos Control

Posted: Fri Dec 20, 2019 11:21 am
by yjb
Thanks, that works.

Re: Toon app: Sonos Control

Posted: Wed Jan 22, 2020 9:37 pm
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,

Re: Toon app: Sonos Control

Posted: Thu Jan 23, 2020 9:07 pm
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

Re: Toon app: Sonos Control

Posted: Fri Mar 13, 2020 6:57 pm
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

Re: Toon app: Sonos Control

Posted: Fri Mar 13, 2020 7:46 pm
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

Re: Toon app: Sonos Control

Posted: Fri Mar 13, 2020 8:17 pm
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

Re: Toon app: Sonos Control

Posted: Fri Mar 13, 2020 8:20 pm
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

Re: Toon app: Sonos Control

Posted: Fri Mar 13, 2020 8:52 pm
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

Re: Toon app: Sonos Control

Posted: Fri Mar 27, 2020 10:48 pm
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

Re: Toon app: Sonos Control

Posted: Thu Apr 30, 2020 11:54 am
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

Re: Toon app: Sonos Control

Posted: Thu Apr 15, 2021 11:37 pm
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

Re: Toon app: Sonos Control

Posted: Sun Dec 12, 2021 1:38 pm
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