GithubHelp home page GithubHelp logo

loxberry-sonos's People

Contributors

christiantf avatar jakob-gliwa avatar letrab avatar liver64 avatar michaelkastner avatar shaquille23 avatar svethi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

loxberry-sonos's Issues

ENH: Softstart

Was hälst du von einer Softstart-Funktion?

		case 'softstart':
				# If Pause or Stop
				$mode = $sonos->GetTransportInfo();
				if ( $mode == 2 || $mode == 3 )
				{
					$target_volume  = $sonos->GetVolume();
					$current_volume = 0;
					$sonos->SetVolume($current_volume);
					$sonos->Play();
					echo "State ".$mode." is Pause (2) or Stop (3). ";
					echo "Fade volume to $target_volume: ";
					ob_flush();
					flush();
					while ( $current_volume < $target_volume)
					{
							$current_volume = $sonos->GetVolume();
							$sonos->SetVolume($current_volume + 1);
     					echo "$current_volume > ";
							ob_flush();
							flush();
							usleep('500000');
					}
 					echo "done.";
				}
				else
				{
					echo "State ".$mode." is neither Pause (2) nor Stop (3). Request ignored. ";
				}
			break;      

Request: Add audioClip support (for possible doorbell chime)

audioClip is supported locally too: bencevans/node-sonos#530 .

As opposed to the cloud API : https://devdocs.sonos.com/reference/audioclip-loadaudioclip-playerid

This would also solve my old problem: #25
(For which I am using my own Node.JS based application for: https://github.com/Letrab/hassio-addons/tree/master/sonos-audioclip-tts . But it would be nice to be able to drop that, and use the functionality of Loxberry-Sonos here... )

What do you think? Would you have time to implement it? Or are you open to pull requests?

Thanks in advance!

No volume info, spotify playlists and albums do not work

Since the update to version 3.9.0, the data send via UDP about current volume of the zone always shows 0.
Volume

Also neither Spotify playlist nor album works for me. Could anybody share syntax for real playlist or album? I have tried /plugins/sonos4lox/index.php/?zone=DEINE_ZONE&action= spotify & playlisturi = 46V4B0kaRt7MHYCwt6BpmP & volume = 5 & user = stevie-gfc but it doesn´t work for me. It always clears queue and nothing is playing.

Any help?
Thank you

Ansage des Radiosenders bei 'nextradio' funktioniert nicht mehr

Die Ansage des Radiosenders bei 'nextradio' funktioniert nach Update auf 2.1.7.x nicht mehr, folgender Fehler tritt auf:
Logfile:
Warning: include_once(text2speech.php): failed to open stream: No such file or directory in /opt/loxberry/webfrontend/html/plugins/sonos4lox/Play_T2S.php on line 476

Warning: include_once(): Failed opening 'text2speech.php' for inclusion (include_path='.:/opt/loxberry/libs/phplib') in /opt/loxberry/webfrontend/html/plugins/sonos4lox/Play_T2S.php on line 476

Typo in do=scan

Bitte in der Sonos App sicherstellen das alle Zonen einzelen sind.

Players not shown after configuration

I use the plugin version 5.2.6. When I scan for players, they are shown and I can configure them. But after saving the configuration and the message that everything worked fine, there are no players shown. The log file displays the message: "ERROR: system/ms_inbound.php: There are no Sonos Players already fully configured, please check/complete your Plugin Config and save your config before downloading your Template!".

In earlier attempts the log files displayed the message: "/bin/push_loxone.php: The configuration file could not be loaded, the file may be disrupted. We have to abort :-("

Can anybody help what is the problem?

Fehler: syntax error, unexpected '=' in /opt/loxberry/config/plugins/sonos4lox/player.cfg on line 12

Beim Ausführen einer Syntax wird folgender Fehler angezeigt:
**Warning: syntax error, unexpected '=' in /opt/loxberry/config/plugins/sonos4lox/player.cfg on line 12
in /opt/loxberry/webfrontend/html/plugins/sonos4lox/Sonos.php on line 72

Warning: Invalid argument supplied for foreach() in /opt/loxberry/webfrontend/html/plugins/sonos4lox/Sonos.php on line 76

Notice: Undefined variable: sonosnet in /opt/loxberry/webfrontend/html/plugins/sonos4lox/Sonos.php on line 79

Warning: Invalid argument supplied for foreach() in /opt/loxberry/webfrontend/html/plugins/sonos4lox/Sonos.php on line 91

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/PHPSonos.php on line 2735

Warning: fsockopen(): unable to connect to :1400 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /opt/loxberry/webfrontend/html/plugins/sonos4lox/syst**

Wie kann man den Fehler beheben?

Problem beim Scannen der Player

Guten Abend,
bekomme das Sonos Plugin leider nicht zum Laufen.

Situation 1 - Raspi3 mit Loxberry 1.2.1.5 & Sonos Plugin 3.4.4
Sonos Plugin lässt sich öffnen jedoch bekomme ich beim Scannen der Zonen die Meldung "The temporary scan file 'tmp_player.json' could not be opened!".

Im Log steht folgendes:

OK: 19:52:43 Sonos Plugin has been successfully loaded. 19:53:14 Read main settings from sonos.ini for language: de 19:53:14 The Sonos config file has been loaded 19:53:14 The Sonos player file has been loaded 19:53:14 Loxone Miniserver(s) has been detected 19:53:15 0 Radio Stations has been loaded. 19:53:15 0 Sonos players has been loaded. 19:53:15 Scan request for Sonos Zones has been executed. 19:53:15 SSDP-Service is up and running 19:53:17 Read main settings from sonos.ini for language: de 19:53:17 The Sonos config file has been loaded 19:53:17 The Sonos player file has been loaded 19:53:17 Loxone Miniserver(s) has been detected 19:53:18 0 Radio Stations has been loaded. 19:53:18 0 Sonos players has been loaded. [18-Jun-2018 19:53:18 Europe/Berlin] INFO: PHP-> Initial network scan (MULTICAST) for supported Sonos devices in your network will be executed. [18-Jun-2018 19:53:19 Europe/Berlin] PHP Fatal error: Uncaught RuntimeException: No devices found on the current network in /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/vendor/duncan3dc/sonos/src/Network.php:270 Stack trace: #0 /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/network.php(30): duncan3dc\Sonos\Network->getSpeakers() #1 {main} thrown in /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/vendor/duncan3dc/sonos/src/Network.php on line 270 ERROR: 19:53:19 File: tmp_player.json could not be opened! Please execute Scan Zones again. 19:53:19 List of available Miniserver(s) has been successful loaded 19:53:19 List of MP3 files has been successful loaded OK: 19:53:19 Sonos Plugin has been successfully loaded. 19:53:21 Read main settings from sonos.ini for language: de 19:53:21 The Sonos config file has been loaded 19:53:21 The Sonos player file has been loaded 19:53:21 Loxone Miniserver(s) has been detected 19:53:21 0 Radio Stations has been loaded. 19:53:21 0 Sonos players has been loaded. 19:53:21 Read main settings from sonos.ini for language: de 19:53:21 The Sonos config file has been loaded 19:53:21 The Sonos player file has been loaded 19:53:21 Loxone Miniserver(s) has been detected 19:53:21 0 Radio Stations has been loaded. 19:53:21 0 Sonos players has been loaded. [18-Jun-2018 19:53:21 Europe/Berlin] INFO: PHP-> Initial network scan (MULTICAST) for supported Sonos devices in your network will be executed. [18-Jun-2018 19:53:21 Europe/Berlin] INFO: PHP-> Initial network scan (MULTICAST) for supported Sonos devices in your network will be executed. [18-Jun-2018 19:53:22 Europe/Berlin] PHP Fatal error: Uncaught RuntimeException: No devices found on the current network in /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/vendor/duncan3dc/sonos/src/Network.php:270 Stack trace: #0 /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/network.php(30): duncan3dc\Sonos\Network->getSpeakers() #1 {main} thrown in /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/vendor/duncan3dc/sonos/src/Network.php on line 270 [18-Jun-2018 19:53:22 Europe/Berlin] PHP Fatal error: Uncaught RuntimeException: No devices found on the current network in /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/vendor/duncan3dc/sonos/src/Network.php:270 Stack trace: #0 /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/network.php(30): duncan3dc\Sonos\Network->getSpeakers() #1 {main} thrown in /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/vendor/duncan3dc/sonos/src/Network.php on line 270 ERROR: 19:53:22 File: tmp_player.json could not be opened! Please execute Scan Zones again. 19:53:23 List of available Miniserver(s) has been successful loaded 19:53:23 List of MP3 files has been successful loaded OK: 19:53:23 Sonos Plugin has been successfully loaded. ERROR: 19:53:22 File: tmp_player.json could not be opened! Please execute Scan Zones again. 19:53:23 List of available Miniserver(s) has been successful loaded 19:53:23 List of MP3 files has been successful loaded OK: 19:53:23 Sonos Plugin has been successfully loaded.

Situation 2 - Loxberry 1.0.3. & Sonos Plugin 3.4.4 (wurde getestet weil auf der Pluginübersicht der Status bei 1.0.3 mit "Stable" gekennzeichnet ist.

Die Installation lief meines Erachtens ohne Fehlermeldungen durch.
Beim Öffnen des Plugins über die Weboberfläche bekomme ich folgende Meldung angezeigt:

Can't locate LoxBerry/Storage.pm in @INC (you may need to install the LoxBerry::Storage module) (@INC contains: /opt/loxberry/libs/perllib /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/arm-linux-gnueabihf/perl5/5.24 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base) at /opt/loxberry/webfrontend/htmlauth/plugins/sonos4lox/index.cgi line 25. BEGIN failed--compilation aborted at /opt/loxberry/webfrontend/htmlauth/plugins/sonos4lox/index.cgi line 25.

Bitte um Hilfe und bedanke mich im Voraus
LG

Use second adapter to scan for sonos systems

I have a loxberry with 2 nics to separate the sonos from the "control" network.
in ifconfig i have to interfaces

  1. 192.168.1.0/24 with default gateway (default adapter of loxberry)
  2. 192.168.2.0/24 no default gateway (this is the range of the sonos)
    the plugin only scans the network 192.168.1.0/24 (multicasts)

is it possible to add a funktion to use the second adapter as well

Please save your Config first!! error during UDP_Sonos.XML file creation

Dear,

I'm configuring TTS setting in loxberry for Sonos4lox.
I'm unable to retrieve the UDP_Sonos.XML file due to error 'Please save your Config first!!'.
This is done so I have no idea how to continue:
afbeelding

afbeelding

Can you guide me on how to solve this? Am I missing something or is there a bug?

Br,
Ben

Can't play mp3

When i try to play a mp3 as described on loxwiki i get the following error:

x-file-cifs://LOXBERRY/sonos_tts/mp3/3_Ding-noise.mp3
&lt;DIDL-Lite xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:upnp=&quot;urn:schemas-upnp-org:metadata-1-0/upnp/&quot; xmlns:r=&quot;urn:schemas-rinconnetworks-com:metadata-1-0/&quot; xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/&quot;&gt;&lt;item id=&quot;//LOXBERRY/sonos_tts/mp3/3_Ding-noise.mp3&quot; parentID=&quot; restricted=&quot;true&quot;&gt;&lt;dc:title&gt;/dc:title&gt;&lt;upnp:class&gt;object.item.audioItem.musicTrack&lt;/upnp:class&gt;&lt;desc id=&quot;cdudn&quot; nameSpace=&quot;urn:schemas-rinconnetworks-com:metadata-1-0/&quot;&gt;RINCON_AssociatedZPUDN&lt;/desc&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;
0
1



[fp] => Resource id #28
[errno] => 0
[errstr] => 
[ret] => HTTP/1.1 200 OK 
CONTENT-LENGTH: 380 
CONTENT-TYPE: text/xml; charset="utf-8" 
EXT: 
Server: Linux UPnP/1.0 Sonos/66.4-23300 (ZPS21) 
Connection: close 

1
)

[path] => /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/Tracks.php
[message] => Deprecated (8192): Function fgetss() is deprecated in [/opt/loxberry/webfrontend/html/plugins/sonos4lox/system/Tracks.php, line 793]
)
17:21:14.182 ERROR: The audio file could not be played! Please check folder permission or if file exists

the command i used:
http://192.168.1.250/plugins/sonos4lox/index.php/?zone=slaapkamer&action=track&file=//loxberry/sonos_tts/mp3/3_Ding-noise.mp3

I uploaded my own track and that isn't working either

Thanks!

voluemup und volumedown funktionieren nicht mehr

Seit dem Update auf die Version 3.9.0 funktionieren bei mir die Aktionen volumeup, volumedown und getvolume nicht mehr.

Die Aktionen volumeup und volumedown setzen die Lautstärke immer auf die Standard-Lautstärke (bei mir 10). Wenn ich die Lautstärke explizit auf einen festen Wert setze, funktioniert es.

Die Aktion getvolume liefert bei mir immer den Wert 0 zurück.

Nach einem Downgrade auf die Version 3.8.4 funktioniert wieder alles wie gewünscht.

libcurl3 / libcurl4

14.07.2020 13:51:58 INFO: Command: APT_LISTCHANGES_FRONTEND=none DEBIAN_FRONTEND=noninteractive /usr/bin/apt-get --no-install-recommends -q -y --allow-unauthenticated --fix-broken --reinstall --allow-downgrades --allow-remove-essential --allow-change-held-packages install  libjson-perl libapache2-mod-php sox task-spooler  lame curl  libcurl3 libcurl4 php-soap php-cli
Reading package lists...
Building dependency tree...
Reading state information...
Package libcurl3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libcurl4

E: Package 'libcurl3' has no installation candidate
Use of uninitialized value in concatenation (.) or string at /opt/loxberry/sbin/plugininstall.pl line 1825.
14.07.2020 13:52:00 WARNING: (Some) Packages could not be installed.

Installierst du beide wegen der Abwärtskompatibilität?
Ansonsten könnte libcurl3 ja raus.

Jingle MP3

Wenn kein "Dateiname für Jingle MP3" gewählt ist, kommt ein Syntax-Error bei "playgong=yes"

Dropdown mit allen MP3's des Ordners und vordefinierte File würde den Fehler aushebeln.

BTW: Geiles Plugin ;-)

Playback restore when playing music from Spotify not working

Hi,

First of all, massive thank you for your work on this plugin!!

Since my last update (to 3.9.3, do not know anymore where I came from), the playback restore is not working after playing a gong mp3.

/plugins/sonos4lox/index.php/?zone=kitchen&action=say&member=hallway,woonkamer,bedroom&messageid=2&volume=70

It only does not work (at first sight) when playing music started from the Spotify app and only for one speaker (kitchen, Sonos Play5 Gen2). The gong sound is played correctly, but Spotify does not resume playback afterwards.

See error log: https://pastebin.com/q78exhSB
See working log just before: https://pastebin.com/fr3kUdye

As you could see in the log Master Zone kitchen has been added back to group. is not shown in case of the error. As well the volume of this speaker is not restored (still at 70, the gong volume).

I do see a warning, but it appears in both cases:
[message] => Warning (2): count(): Parameter must be an array or an object that implements Countable in [/opt/loxberry/webfrontend/html/plugins/sonos4lox/Play_T2S.php, line 253] )

Thanks already. Happy to help debugging.

softstop cut off after 17 seconds

Softstop funktioniert nicht, wenn die Musik vorher relativ laut war.
Dein sleep 17 Sekunden reicht nicht.
Bei mir braucht er von 100% auf 0 % etwa 80 Sekunden.

Scan Players -> tmp_player.json could not be opend

I get the following log when I scan for players.

OK: 20:19:33 Sonos Plugin has been successfully loaded.
20:19:35 Read main settings from sonos.ini for language: de
20:19:35 The Sonos config file has been loaded
20:19:35 The Sonos player file has been loaded
20:19:35 Loxone Miniserver(s) has been detected
20:19:37 0 Radio Stations has been loaded.
20:19:37 0 Sonos players has been loaded.
20:19:35 Read main settings from sonos.ini for language: de
20:19:35 The Sonos config file has been loaded
20:19:35 The Sonos player file has been loaded
20:19:35 Loxone Miniserver(s) has been detected
20:19:37 0 Radio Stations has been loaded.
20:19:37 0 Sonos players has been loaded.
[07-Sep-2018 20:19:37 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined method LBLog::newLog() in /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/logging.php:23
Stack trace:
#0 /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/network.php(27): LOGGING('Initial network...', 5)
#1 {main}
thrown in /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/logging.php on line 23
[07-Sep-2018 20:19:37 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined method LBLog::newLog() in /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/logging.php:23
Stack trace:
#0 /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/network.php(27): LOGGING('Initial network...', 5)
#1 {main}
thrown in /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/logging.php on line 23
ERROR: 20:19:37 File: tmp_player.json could not be opened! Please execute Scan Zones again.
20:19:37 List of available Miniserver(s) has been successful loaded
20:19:37 List of MP3 files has been successful loaded
OK: 20:19:37 Sonos Plugin has been successfully loaded.
ERROR: 20:19:37 File: tmp_player.json could not be opened! Please execute Scan Zones again.
20:19:37 List of available Miniserver(s) has been successful loaded
20:19:37 List of MP3 files has been successful loaded
OK: 20:19:37 Sonos Plugin has been successfully loaded.

Update warning after updating to 4.1.0

Just FYI:

Upgrade from v4.0.4 to v4.1.0

LoxBerry v2.2.1.2

Don't know whether it's critical or not:

28.02.2022 04:23:36 INFO: Installing cronjob files.
'/opt/loxberry/data/system/tmp/uploads/WGgaqZxivp/LoxBerry-Sonos-4.1.0/cron/cron.01min' -> '/opt/loxberry/system/cron/cron.01min/Sonos'
28.02.2022 04:23:36 INFO: Setting file permissions: /bin/chmod -Rv 755 /opt/loxberry/system/cron/cron.01min
mode of '/opt/loxberry/system/cron/cron.01min' retained as 0755 (rwxr-xr-x)
mode of '/opt/loxberry/system/cron/cron.01min/.dummy' retained as 0755 (rwxr-xr-x)
mode of '/opt/loxberry/system/cron/cron.01min/Sonos' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x)
neither symbolic link '/opt/loxberry/system/cron/cron.01min/sonos4lox' nor referent has been changed
28.02.2022 04:23:36 OK: File permissions set successfully.
28.02.2022 04:23:36 INFO: Setting file ownership: /bin/chown -Rv loxberry.loxberry /opt/loxberry/system/cron/cron.01min
ownership of '/opt/loxberry/system/cron/cron.01min/.dummy' retained as loxberry:loxberry
ownership of '/opt/loxberry/system/cron/cron.01min/Sonos' retained as loxberry:loxberry
ownership of '/opt/loxberry/system/cron/cron.01min/sonos4lox' retained as loxberry:loxberry
ownership of '/opt/loxberry/system/cron/cron.01min' retained as loxberry:loxberry
28.02.2022 04:23:36 OK: File ownership set successfully.
'/opt/loxberry/data/system/tmp/uploads/WGgaqZxivp/LoxBerry-Sonos-4.1.0/cron/cron.hourly' -> '/opt/loxberry/system/cron/cron.hourly/Sonos'
cp: cannot create regular file '/opt/loxberry/system/cron/cron.hourly/Sonos': Permission denied
28.02.2022 04:23:36 INFO: Setting file permissions: /bin/chmod -Rv 755 /opt/loxberry/system/cron/cron.hourly
mode of '/opt/loxberry/system/cron/cron.hourly' retained as 0755 (rwxr-xr-x)
mode of '/opt/loxberry/system/cron/cron.hourly/01-setdatetime' retained as 0755 (rwxr-xr-x)
neither symbolic link '/opt/loxberry/system/cron/cron.hourly/99-weather4lox_cronjob' nor referent has been changed
mode of '/opt/loxberry/system/cron/cron.hourly/02-log_maint' retained as 0755 (rwxr-xr-x)
mode of '/opt/loxberry/system/cron/cron.hourly/.dummy' retained as 0755 (rwxr-xr-x)
28.02.2022 04:23:36 OK: File permissions set successfully.
28.02.2022 04:23:36 INFO: Setting file ownership: /bin/chown -Rv loxberry.loxberry /opt/loxberry/system/cron/cron.hourly
changed ownership of '/opt/loxberry/system/cron/cron.hourly/01-setdatetime' from root:root to loxberry:loxberry
changed ownership of '/opt/loxberry/system/cron/cron.hourly/99-weather4lox_cronjob' from root:root to loxberry:loxberry
changed ownership of '/opt/loxberry/system/cron/cron.hourly/02-log_maint' from root:root to loxberry:loxberry
changed ownership of '/opt/loxberry/system/cron/cron.hourly/.dummy' from root:root to loxberry:loxberry
changed ownership of '/opt/loxberry/system/cron/cron.hourly' from root:root to loxberry:loxberry
28.02.2022 04:23:37 OK: File ownership set successfully.
'/opt/loxberry/data/system/tmp/uploads/WGgaqZxivp/LoxBerry-Sonos-4.1.0/cron/cron.daily' -> '/opt/loxberry/system/cron/cron.daily/Sonos'
28.02.2022 04:23:37 INFO: Setting file permissions: /bin/chmod -Rv 755 /opt/loxberry/system/cron/cron.daily
mode of '/opt/loxberry/system/cron/cron.daily' retained as 0755 (rwxr-xr-x)
neither symbolic link '/opt/loxberry/system/cron/cron.daily/loxberryupdate_cron' nor referent has been changed
neither symbolic link '/opt/loxberry/system/cron/cron.daily/02-pluginsupdate' nor referent has been changed
mode of '/opt/loxberry/system/cron/cron.daily/01-log_maint' retained as 0755 (rwxr-xr-x)
mode of '/opt/loxberry/system/cron/cron.daily/01-lighttpd' retained as 0755 (rwxr-xr-x)
mode of '/opt/loxberry/system/cron/cron.daily/.dummy' retained as 0755 (rwxr-xr-x)
mode of '/opt/loxberry/system/cron/cron.daily/Sonos' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x)
mode of '/opt/loxberry/system/cron/cron.daily/03-healthcheck' retained as 0755 (rwxr-xr-x)
28.02.2022 04:23:37 OK: File permissions set successfully.
28.02.2022 04:23:37 INFO: Setting file ownership: /bin/chown -Rv loxberry.loxberry /opt/loxberry/system/cron/cron.daily
ownership of '/opt/loxberry/system/cron/cron.daily/loxberryupdate_cron' retained as loxberry:loxberry
ownership of '/opt/loxberry/system/cron/cron.daily/02-pluginsupdate' retained as loxberry:loxberry
ownership of '/opt/loxberry/system/cron/cron.daily/01-log_maint' retained as loxberry:loxberry
ownership of '/opt/loxberry/system/cron/cron.daily/01-lighttpd' retained as loxberry:loxberry
ownership of '/opt/loxberry/system/cron/cron.daily/.dummy' retained as loxberry:loxberry
ownership of '/opt/loxberry/system/cron/cron.daily/Sonos' retained as loxberry:loxberry
ownership of '/opt/loxberry/system/cron/cron.daily/03-healthcheck' retained as loxberry:loxberry
ownership of '/opt/loxberry/system/cron/cron.daily' retained as loxberry:loxberry
Use of uninitialized value in concatenation (.) or string at /opt/loxberry/sbin/plugininstall.pl line 1774.
28.02.2022 04:23:37 OK: File ownership set successfully.
28.02.2022 04:23:37 ERROR: Not all file(s) could be installed successfully.
28.02.2022 04:23:39 INFO: Installing data files.

Manuel reste

Hello,

I use this plugin in order to play a specific mp3 file that is on my server everytime someone's ringing at my door.
However, if there happens to be a day when I have a lot of visitors, the plugin seems to remember the previous dingdongs and therefore when the fifth person for example is at the front door, I get to hear the jingle 5 times in a row.

Now I've seen in the logfiles that the plugin is doing a daily cleanup around 4-5am. Is there a command I could use to get this 'clean' done so that the plugin does not remember how many times the bell was used.

Thanks!

test von befehlen schlägt fehl

nach testen von
http://192.168.178.65/plugins/sonos4lox/index.php?zone=K&#220CHE&action=sendmessage&text=hallo.%20dies%20ist%20ein%20test&volume=20
bekomme ich als rückmeldung

Warning: syntax error, unexpected '=' in /opt/loxberry/config/plugins/sonos4lox//player.cfg on line 6 in /opt/loxberry/webfrontend/html/plugins/sonos4lox/sonos2.php on line 51

Warning: Invalid argument supplied for foreach() in /opt/loxberry/webfrontend/html/plugins/sonos4lox/sonos2.php on line 54

Notice: Undefined variable: sonosnet in /opt/loxberry/webfrontend/html/plugins/sonos4lox/sonos2.php on line 57



Warning:  Invalid argument supplied for foreach() in /opt/loxberry/webfrontend/html/plugins/sonos4lox/sonos2.php on line 123



Notice:  Undefined variable: handle in /opt/loxberry/webfrontend/html/plugins/sonos4lox/sonos2.php on line 135



Warning:  fclose() expects parameter 1 to be resource, null given in /opt/loxberry/webfrontend/html/plugins/sonos4lox/sonos2.php on line 135




Notice:  Undefined variable: sonoszone in /opt/loxberry/webfrontend/html/plugins/sonos4lox/sonos2.php on line 229



Warning:  fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/PHPSonos.php on line 2633



Warning:  fsockopen(): unable to connect to :1400 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/PHPSonos.php on line 2633



Fatal error:  Uncaught exception 'Exception' with message 'Error opening socket: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)' in /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/PHPSonos.php:2635
Stack trace:
#0 /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/PHPSonos.php(1449): PHPSonos->sendPacket('POST /MediaRend...')
#1 /opt/loxberry/webfrontend/html/plugins/sonos4lox/sonos2.php(230): PHPSonos->GetVolume()
#2 /opt/loxberry/webfrontend/html/plugins/sonos4lox/index.php(7): require_once('/opt/loxberry/w...')
#3 {main}
  thrown in /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/PHPSonos.php on line 2635

Sonos Era not being detected

Hi,

maybe you already know, but the new Sonos speakers seems not to be detected.
I've got the Era 100 and it won't show up.

If I could assist with some data or something else please let me know.

Regards

push_loxone.php causes 100% cpu utilization

Hi,

I observed a pretty strange behaviour. Since recently, the process push_loxone.php utilises 100% of 2 to 4 cpu cores of my loxberry. This heavy load results in a high temperature of the Raspberry (this is how i found the issue):

image

Plugin version: 4.1.0

Unfortunately, restarting the Loxberry is only helpful in the short term. After a couple of hours, the issue returns.

I cannot assure that this issue only occurred after upgrading to 4.1.0. Before, I did not monitor my Loxberry, however, the Loxberry never had any temperature issues.

Further information:

  • Upgrade to 4.1.0 at 28.02.2022 04:24, first temperature alarm which I noticed at 01.03.2022 04:41:08
  • I use outgoing data transmission via UDP
  • MQTT plugin is also installed, but not used for Sonos events

Cannot scan after upgrade to loxberry 3.0

Hello,

Was using your plugin without problems, started a fresh install for loxberry 3.0.
When iscan for player i get following errors:
No valid data has been received after scanning for Players, we abort here.
Invalid do parameter:

Error by install

Hello,
when I install the Plugin Sonos4Loxone (LoxBerry-Sonos-3.4.4.zip) I have an error, please see the TXT File below.
Loxone4Sonos_Error.txt
Loxberry Version 1.0.2
Install as virtual Maschine of QNAP
What can I do?

Thank you :)

Fehler bei der Installtion

Die Installation des Plugin meldet an zwei Stellen:

Package libcurl3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libcurl4

E: Package 'libcurl3' has no installation candidate

Und damit dann am Ende
APT install: (Some) Packages could not be installed.

After update to v3.9.0, sendmessage is not working anymore

After I updated to v3.9.0 the following call is not working anymore

http://192.168.1.55/plugins/sonos4lox/index.php?zone=mobil&action=sendmessage&messageid=666&volume=40

Before the update I had no issues.

The log starts with this

array_key_exists() expects parameter 2 to be array, null given

/opt/loxberry/webfrontend/html/plugins/sonos4lox/Sonos.php:194

So the logging seems not work as expected as $sonoszone is null.

Not sure where $sonoszone comes from or how to fix this for testing. Have to dig into or maybe you have already an idea. :)

playradiofavorites

Hello

In my setup, i add and remove member with the action addmember/removemember:
/plugins/sonos4lox/index.php?zone=buero&action=addmember&member=dusche
/plugins/sonos4lox/index.php?zone=buero&action=removemember&member=dusche

This works well.

When i use the action=playradiofavorites on this group/zone, only the master "buero" changes the playlist and the other members builds their own zone with the "old" playlist:
/plugins/sonos4lox/index.php/?zone=buero&action=playradiofavorites

Regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.