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 »

Hi all,

Since the original developer left the scene I decided to start looking after this app.
Happy to announce my first big update in the ToonStore with version 1.1.1.

Changelog:
1.1.1
- allow switch into dim state from the media screen

1.1.0
- taken over from Harmen who left the developer scene
- major rewrite of the internals of the app with a smaller footprint
- merged the functionality of the two tiles into one tile
- title of the song (from library or radio station) will be shown in dim state on the tile
- favourites screen now also contains a list of playlists to select (which will populate the queue)
- screen elements adjusted for the screen resolution of Toon 2
- various minor improvements, code cleanup ((almost) no warnings anymore in the console log)
- media screen has now fixed positions for the control buttons (not depending anymore on image size)
- screen elements are updated directly after selecting a track from the playlist
- play/pause buttons are only displayed after previous action has been completed
- tile and media screen are refreshed every 5 seconds during manual operations,
switching to every 20 seconds in dim state (to update current tracks on the tile)
- tile in dim state shows also if music is paused
- removed tiny thumbnails from the play queue list (saves memory)

Quite a lot of changes, hopefully seen as improvements by you as well.
Searching the media library is not possible yet (not sure if it support by the sonos-http-api).
At least you can make use of playlists now which hopefully compensates a bit.

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,

my probably last release for now (unless nice feature requests are pooring in :) ), release 1.1.2 is now available in the ToonStore.

Changelog 1.1.2
- zone selection dropbox replaced with separate zone selection screen to allow more status feedback
- menu screen is also redesigned now:
When having entered a valid ipadres/poortnr the media screen is shown directly if there is only one Sonos zone,
the zone selection screen is shown if more zones exist.
- fix of a bug in 1.1.1: when a new playlist was selected it was automatically applied to the first zone, not to the active one.
- various code improvements and gui improvements
- queue is cleared before switching to a radio station
- zone selection screen contains control buttons for all zones in one screen

Kind regardz,

Toonz
member of the Toon Software Collective
Martini7
Starting Member
Starting Member
Posts: 4
Joined: Wed Aug 14, 2019 9:51 am

Re: Toon app: Sonos Control

Post by Martini7 »

Hi Toonz,

I noticed that changing the volume does not affect all zones when playing in multiple zones at the same time (party mode like).
In fact only the 'master' zone (the one fetching the stream) is shown in the 'Room' overview and therefor I can also not update the volume of that room anymore.

I'm pretty new to the 'Toon app', but familiar with the node http api (I use it to control my sonos systems via Domoticz), so if you can guide me to the location on toon where the files are located I can have a look.

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

Re: Toon app: Sonos Control

Post by Toonz »

Hi, the app can be found in /qmf/qml/apps/sonos
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,

a new version is available in the ToonStore.

Changelog 1.1.3:
- the selected zone is now saved in the settings file and automatically selected again after a gui-restart
- settings file is moved to /mnt/data/tsc, the sonos controller ip address needs to be reconfigured once.
the old setting (ip address) is not copied to simplify the install scripts
- this release is for firmware 5 only, firmware 4 support has been dropped.

Kind regardz,

Toonz
member of the Toon Software Collective
yustmenl
Starting Member
Starting Member
Posts: 19
Joined: Tue May 24, 2011 9:44 pm

Re: Toon app: Sonos Control

Post by yustmenl »

since a while the IPadress in the settings is not beeing saved anymore.
After a reboor the ip adres is gone.

I thought it maybe be a problem of the old firmware and a new version of the app but after updating the firmware the problem stil exists.

any idea on this?
Xavier
Member
Member
Posts: 174
Joined: Wed Jan 16, 2019 1:40 am

Re: Toon app: Sonos Control

Post by Xavier »

Hi all,

Wondering if the Sonos http API is still needed?
Trying to install this on my Synology but can't get it running.

Any help is appriciated :)
Toon2 with 6.0.2 firmware TSC 2.1.7
Apps: Sonos, Calender, garbagecalender, webcam, doorcam, Onkyo, Domoticzboard, Solar and weather app.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Sonos Control

Post by Toonz »

Xavier wrote:Hi all,

Wondering if the Sonos http API is still needed?
Trying to install this on my Synology but can't get it running.

Any help is appriciated :)
yes, you still need that (have installed it on my raspberry Pi)
member of the Toon Software Collective
Xavier
Member
Member
Posts: 174
Joined: Wed Jan 16, 2019 1:40 am

Re: Toon app: Sonos Control

Post by Xavier »

I just got it fixed!

Small manual for Synology users WITHOUT DOCKER!
1. Install on Toon the Sonos app
2. Login on Synology with Putty (SSH) as admin
3. Enter command: "sudo su-" (you will become root)
4. Go to folder /volume1/homes/admin/
5. Enter command: git clone https://github.com/jishi/node-sonos-http-api.git
6. Enter command: cd node-sonos-http-api
7. Enter command: sudo npm install --production
8. Open WinSCP and navigate to folder /volume1/homes/admin/node-sonos-http-api/
9. Open settings.js file
10. Enter the IP-address of your Synology NAS! (NOT Sonos' IP!) in row 19 of the script
11. ADJUST PORT!! to for example 5010 Since Synology uses 5005 itself
12. Save file (make sure it is saved on your Synology)
13. Enter command: node server.js
14. On Toon go to Sonos app
15. Go to Sonos "Instellingen"
16. Enter Synology IP-address (same as you entered in the settings.js file!)
17. Enter correct port (same as you entered in the settings.js file!), in the example 5010

When everything done ok you will be able to see your Sonos device.

Good luck!
Toon2 with 6.0.2 firmware TSC 2.1.7
Apps: Sonos, Calender, garbagecalender, webcam, doorcam, Onkyo, Domoticzboard, Solar and weather app.
yustmenl
Starting Member
Starting Member
Posts: 19
Joined: Tue May 24, 2011 9:44 pm

Re: Toon app: Sonos Control

Post by yustmenl »

Xavier wrote:Hi all,

Wondering if the Sonos http API is still needed?
Trying to install this on my Synology but can't get it running.

Any help is appriciated :)
I installed a docker image on my synology and it runs very good, i don’t know the exact name but it’s something with home automation in name of the docker image
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Sonos Control

Post by Toonz »

Martini7 wrote:Hi Toonz,

I noticed that changing the volume does not affect all zones when playing in multiple zones at the same time (party mode like).
In fact only the 'master' zone (the one fetching the stream) is shown in the 'Room' overview and therefor I can also not update the volume of that room anymore.

I'm pretty new to the 'Toon app', but familiar with the node http api (I use it to control my sonos systems via Domoticz), so if you can guide me to the location on toon where the files are located I can have a look.

Thanks,
Martin
Hi, I took a look and you are right. I am now always setting the 'volume' parameter but if the speaker is part of a group I should set the 'groupvolume' parameter.
Couple of changes needed: identify a group while reading the Sonos status, change the volume commands based on this and change the screens to show it is a group (maybe with its members)
Something for a next release to implement, shouldn't be too difficult.
Just very busy at work these weeks and all the other stuff in december months.....



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.1.4 is available in the ToonStore 5.
Changelog:
- added support for speakergroups (shown as 'Grp zonename'). Volume settings will apply to all speakers in the group.

Kind regardz,

Toonz
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 »

Hi there.

Im a new user to the Toon2 and also a user of Sonos. I'm not able to get Sonos working on my Toon. I tried every IP adress of the speakers, but no respons.

My setup is : 1 soundbar, connected by UTP. 2 play 1 speakers connected to the soundbar in the app. Second room has 2 play 3 speakers. Also these 2 speakers are connected to the soundbar. So the soundbar has created a Sonos wifi network.

Erik

PS : Using the latest appstore and Sonos app
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Sonos Control

Post by Toonz »

Toon cannot talk to the Sonos speakers directly.
It communicates with the speakers via the 'Sonos HTTP API' .
This is a piece of software you need to install somewhere in your network, usually this is done on a raspberry Pi or Synology NAS for example.
I have it running on a raspberry Pi without any issues. I only need to restart the service (or the raspberry Pi) once after installing new Sonos speakers in the house.

google.nl/search?q=sonos+http+api&i ... e=&oe=

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 »

HI,

It seems that setting the ip address does not survive a reboot of the toon. After a reboot I will need to enter the ip address again before the sonos app is operational again.

I more or less expect it to find a settings file here:

Code: Select all

ls -1 /mnt/data/tsc
buienradar.userSettings.json
calendar.userSettings.json
fileinfo.userSettings.json
toonstore.userSettings.json
tscSettings.savedThermstates.json
tscSettings.userSettings.json
wastecollection.userSettings.json
Any idea?
Last edited by yjb on Thu Dec 19, 2019 11:04 am, edited 1 time in total.
Post Reply

Return to “Toon Apps”