homematic-community / hm-sonos

A HomeMatic CCU Addon to control Sonos type Players (www.sonos.com)...
16 stars 6 forks source link

message function does not work #24

Open PatrickKalka-SeriousByte opened 11 months ago

PatrickKalka-SeriousByte commented 11 months ago

Tested with

CCU3 3.71.12 cux 2.10.1 sonosPlayer 2.9

I think, it might be the same Problem described here

https://github.com/homematic-community/hm-sonos/issues/1 and here https://github.com/homematic-community/hm-sonos/issues/21

# /usr/local/etc/config/addons/www/sonos2/sonos2.cgi Sonos_Roam message darthvader.mp3
couldn't open "sonos.log": read-only file system
    while executing
"open $flog $mode"
    (procedure "log" line 3)
    invoked from within
"log $str "w""
    (procedure "url-decode" line 10)
    invoked from within
"url-decode $response"
    (procedure "GetCurrentPlaylist" line 7)
    invoked from within
"GetCurrentPlaylist $array"
    (procedure "playMessage" line 22)
    invoked from within
"playMessage $args(message) $vol"
    ("message" arm line 10)
    invoked from within
"switch $action {
            message {
               if {[info exists args(message)]} {
                  set vol $Cfg::messagevolume
               ..."
    invoked from within
"if {[info exists args(zone)]} {
   if { ! [sonosCreate $args(zone)] } {
      set sonosArray(Zone) "Sonoszone '$args(zone)' nicht gefunden!\n"
   } el..."
    (file "/usr/local/etc/config/addons/www/sonos2/sonos2.cgi" line 90)
gent1974 commented 3 months ago

Gibt es hierfür schon eine Lösung? Wie muss der Pfad angeben werden, dass mp3 darein gespielt werden können? Wo muss sich der Ordner befinden? Danke für ein feedback!