Toon app: Sonos Control

Forum about forum-provided applications on Toon

Moderators: marcelr, Toonz, TheHogNL, TerrorSource

Re: Toon app: Sonos Control

Postby Toonz » Wed Dec 18, 2019 10:32 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1517
Joined: December 2016

Re: Toon app: Sonos Control

Postby yjb » Thu Dec 19, 2019 10:09 am

Thanks, that works!
yjb
Member
Member
 
Posts: 201
Joined: April 2009
Location: Venhuizen, Netherlands

Re: Toon app: Sonos Control

Postby Toonz » Thu Dec 19, 2019 10:18 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1517
Joined: December 2016

Re: Toon app: Sonos Control

Postby yjb » Fri Dec 20, 2019 10:21 am

Thanks, that works.
yjb
Member
Member
 
Posts: 201
Joined: April 2009
Location: Venhuizen, Netherlands

Re: Toon app: Sonos Control

Postby Hannesmsi » Wed Jan 22, 2020 8:37 pm

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,
Hannesmsi
Starting Member
Starting Member
 
Posts: 1
Joined: January 2020

Re: Toon app: Sonos Control

Postby Toonz » Thu Jan 23, 2020 8:07 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1517
Joined: December 2016

Re: Toon app: Sonos Control

Postby ErikM1972 » Fri Mar 13, 2020 5:57 pm

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
ErikM1972
Starting Member
Starting Member
 
Posts: 4
Joined: December 2019

Re: Toon app: Sonos Control

Postby TerrorSource » Fri Mar 13, 2020 6:46 pm

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
TerrorSource
Member
Member
 
Posts: 436
Joined: May 2017

Re: Toon app: Sonos Control

Postby ErikM1972 » Fri Mar 13, 2020 7:17 pm

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
ErikM1972
Starting Member
Starting Member
 
Posts: 4
Joined: December 2019

Re: Toon app: Sonos Control

Postby TerrorSource » Fri Mar 13, 2020 7:20 pm

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
TerrorSource
Member
Member
 
Posts: 436
Joined: May 2017

Re: Toon app: Sonos Control

Postby ErikM1972 » Fri Mar 13, 2020 7:52 pm

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
ErikM1972
Starting Member
Starting Member
 
Posts: 4
Joined: December 2019

Re: Toon app: Sonos Control

Postby Toonz » Fri Mar 27, 2020 9:48 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1517
Joined: December 2016

Re: Toon app: Sonos Control

Postby Toonz » Thu Apr 30, 2020 10:54 am

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1517
Joined: December 2016

Previous

Return to Toon Apps

Who is online

Users browsing this forum: No registered users and 1 guest

cron