Sonosscripte für die CCU2

diverse Zusatzsoftware

Moderator: Co-Administratoren

mazze
Beiträge: 167
Registriert: 24.03.2015, 20:41
Hat sich bedankt: 2 Mal
Danksagung erhalten: 1 Mal

Re: Sonosscripte für die CCU2

Beitrag von mazze » 22.09.2017, 18:31

jmaus hat geschrieben:
mazze hat geschrieben: sobald ich das als script mache kommt nichts raus, nur die Musik geht für den Zeitraum aus.

Code: Alles auswählen

string stdout;
string stderr;
system.Exec("wget -O /dev/null -q http://IP:PORT/wohnzimmer/say/Alarmanlage kann nicht Scharf gestellt werden Prüfe alle Türen und Fenster auf geschlossen/de-de/60",&stdout, &stderr);
Na so geht das ja auch nicht. Du hast du Leerzeichen in dem String drin, genauso wie umlaute. Die sollen/müssen alle entsprechend URL gerecht encoded werden. Auch solltest du alles um das http:// in einfache Anführungszeichen setzen. Ein guter test wäre hierbei einfach mal das wget Kommando so wie du es da aufrufst mal in einer SSH Sitzung auszuführen, dann wirst du sehen das es Probleme macht so wie du es angegeben hast.

Perfekt Fehler gefunden.

Danke

JJ-CCU2
Beiträge: 20
Registriert: 20.03.2015, 16:12
System: CCU

Re: Sonosscripte für die CCU2

Beitrag von JJ-CCU2 » 24.09.2017, 12:40

Heisst das, es gibt das Sonos http api nodesystem bereits für die CCU2 oder war das nur eine Idee?

mazze
Beiträge: 167
Registriert: 24.03.2015, 20:41
Hat sich bedankt: 2 Mal
Danksagung erhalten: 1 Mal

Re: Sonosscripte für die CCU2

Beitrag von mazze » 25.09.2017, 10:50

JJ-CCU2 hat geschrieben:Heisst das, es gibt das Sonos http api nodesystem bereits für die CCU2 oder war das nur eine Idee?
Gibt es noch nicht. Ich habe es auf einem raspberry insalliert

86bibo
Beiträge: 152
Registriert: 27.11.2013, 10:25

Re: Sonosscripte für die CCU2

Beitrag von 86bibo » 31.10.2017, 13:51

gibt es mittlerweile eine Version für die Sonos Integration in HM, an der noch weiter gearbeitet wird? Die TCL Variante hier scheint ja nun entgültig eingestellt zu sein (Trotzdem danke an die beiden Entwickler, die es schon so weit gebracht haben). Die nodejs Variante läuft nur über einen weiteren Rechner, welchen ich nicht einsetzen will (wird langsam einfach zu viel) und das HVL-Addon hat derzeit Probleme mit Berrymatic ("Virtuelles Device reagiert nicht"), sodass dies auch nicht wirklich nutzbar ist. Ich würde wirklich gern die Message-Funktion sowie aktionsgesteuerte Playlists oder Radiosender nutzen. Das ist derzeit nur eingeschränkt möglich, wobei schon extrem viel Grundlagenarbeit gemacht wurde und es für mein Empfinden nur noch das beigehen wäre. Ich wäre gern behilflich, aber meine Programmierkenntnisse sind leider bei Turbo Pascal und C++ in der Schulzeit stehen geblieben.

Alexxx2005
Beiträge: 252
Registriert: 17.12.2014, 18:56
Hat sich bedankt: 19 Mal
Danksagung erhalten: 3 Mal

Re: Sonosscripte für die CCU2

Beitrag von Alexxx2005 » 13.01.2018, 13:15

Hallo,

wie sieht der Code dann ohne Leerzeichen und Umlaute aus :lol:

VIele Grüße Alex
mazze hat geschrieben:
jmaus hat geschrieben:
mazze hat geschrieben: sobald ich das als script mache kommt nichts raus, nur die Musik geht für den Zeitraum aus.

Code: Alles auswählen

string stdout;
string stderr;
system.Exec("wget -O /dev/null -q http://IP:PORT/wohnzimmer/say/Alarmanlage kann nicht Scharf gestellt werden Prüfe alle Türen und Fenster auf geschlossen/de-de/60",&stdout, &stderr);
Na so geht das ja auch nicht. Du hast du Leerzeichen in dem String drin, genauso wie umlaute. Die sollen/müssen alle entsprechend URL gerecht encoded werden. Auch solltest du alles um das http:// in einfache Anführungszeichen setzen. Ein guter test wäre hierbei einfach mal das wget Kommando so wie du es da aufrufst mal in einer SSH Sitzung auszuführen, dann wirst du sehen das es Probleme macht so wie du es angegeben hast.

Perfekt Fehler gefunden.

Danke

schneidy76
Beiträge: 340
Registriert: 18.11.2016, 22:36
Wohnort: ziemlich weit unten
Hat sich bedankt: 1 Mal
Danksagung erhalten: 1 Mal

Re: Sonosscripte für die CCU2

Beitrag von schneidy76 » 13.01.2018, 19:56

Leerzeichen sind Für alles andere gibt es Google und URL Endcoder
https://www.urlencoder.org
und statt gibt es Vg Torsten
Raspberry Matic RP3, iobroker & Node-Red auf orangePi
HM Lan GW
--- HM-RF, HmIP-RF und knx Komponenten ---
Visualisierung auf Android 10" Tablett

schneidy76
Beiträge: 340
Registriert: 18.11.2016, 22:36
Wohnort: ziemlich weit unten
Hat sich bedankt: 1 Mal
Danksagung erhalten: 1 Mal

Re: Sonosscripte für die CCU2

Beitrag von schneidy76 » 14.01.2018, 11:18

Hi,
ich habe den node sonos http API nach Anleitung hier installiert:

Code: Alles auswählen

cd /home/pi
wget https://github.com/jishi/node-sonos-http-api/archive/master.zip
unzip master.zip
cd node-sonos-http-api-master
cd /home/pi/node-sonos-http-api-master
npm install --production
npm start &
Die Ausgabe in Putty war folgende:

Code: Alles auswählen

root@ioBroker-RasPi:~# cd /home/pi
root@ioBroker-RasPi:/home/pi# unzip master.zip
Archive:  master.zip
e73ef7d1a387c2547235cf3b4fe0e7682ac13a67
   creating: node-sonos-http-api-master/
  inflating: node-sonos-http-api-master/.eslintrc
  inflating: node-sonos-http-api-master/.gitattributes
  inflating: node-sonos-http-api-master/.gitignore
  inflating: node-sonos-http-api-master/ISSUE_TEMPLATE.md
  inflating: node-sonos-http-api-master/LICENSE.md
  inflating: node-sonos-http-api-master/README.md
   creating: node-sonos-http-api-master/lib/
   creating: node-sonos-http-api-master/lib/actions/
  inflating: node-sonos-http-api-master/lib/actions/amazonMusic.js
  inflating: node-sonos-http-api-master/lib/actions/appleMusic.js
  inflating: node-sonos-http-api-master/lib/actions/clearqueue.js
  inflating: node-sonos-http-api-master/lib/actions/clip.js
  inflating: node-sonos-http-api-master/lib/actions/clipall.js
  inflating: node-sonos-http-api-master/lib/actions/clippreset.js
  inflating: node-sonos-http-api-master/lib/actions/equalizer.js
  inflating: node-sonos-http-api-master/lib/actions/favorite.js
  inflating: node-sonos-http-api-master/lib/actions/favorites.js
  inflating: node-sonos-http-api-master/lib/actions/group.js
  inflating: node-sonos-http-api-master/lib/actions/linein.js
  inflating: node-sonos-http-api-master/lib/actions/lockvolumes.js
  inflating: node-sonos-http-api-master/lib/actions/musicSearch.js
  inflating: node-sonos-http-api-master/lib/actions/mute.js
  inflating: node-sonos-http-api-master/lib/actions/nextprevious.js
  inflating: node-sonos-http-api-master/lib/actions/pandora.js
  inflating: node-sonos-http-api-master/lib/actions/pauseall.js
  inflating: node-sonos-http-api-master/lib/actions/playlist.js
  inflating: node-sonos-http-api-master/lib/actions/playlists.js
  inflating: node-sonos-http-api-master/lib/actions/playmode.js
  inflating: node-sonos-http-api-master/lib/actions/playpause.js
  inflating: node-sonos-http-api-master/lib/actions/preset.js
  inflating: node-sonos-http-api-master/lib/actions/queue.js
  inflating: node-sonos-http-api-master/lib/actions/reindex.js
  inflating: node-sonos-http-api-master/lib/actions/say.js
  inflating: node-sonos-http-api-master/lib/actions/sayall.js
  inflating: node-sonos-http-api-master/lib/actions/saypreset.js
  inflating: node-sonos-http-api-master/lib/actions/seek.js
  inflating: node-sonos-http-api-master/lib/actions/services.js
  inflating: node-sonos-http-api-master/lib/actions/setavtransporturi.js
  inflating: node-sonos-http-api-master/lib/actions/siriusXM.js
  inflating: node-sonos-http-api-master/lib/actions/sleep.js
  inflating: node-sonos-http-api-master/lib/actions/spotify.js
  inflating: node-sonos-http-api-master/lib/actions/state.js
  inflating: node-sonos-http-api-master/lib/actions/sub.js
  inflating: node-sonos-http-api-master/lib/actions/tunein.js
  inflating: node-sonos-http-api-master/lib/actions/volume.js
  inflating: node-sonos-http-api-master/lib/actions/zones.js
   creating: node-sonos-http-api-master/lib/helpers/
  inflating: node-sonos-http-api-master/lib/helpers/all-player-announcement.js
  inflating: node-sonos-http-api-master/lib/helpers/file-duration.js
  inflating: node-sonos-http-api-master/lib/helpers/is-radio-or-line-in.js
  inflating: node-sonos-http-api-master/lib/helpers/preset-announcement.js
  inflating: node-sonos-http-api-master/lib/helpers/require-dir.js
  inflating: node-sonos-http-api-master/lib/helpers/single-player-announcement.j                                                                                                             s
  inflating: node-sonos-http-api-master/lib/helpers/try-download-tts.js
  inflating: node-sonos-http-api-master/lib/helpers/try-load-json.js
   creating: node-sonos-http-api-master/lib/music_services/
  inflating: node-sonos-http-api-master/lib/music_services/appleDef.js
  inflating: node-sonos-http-api-master/lib/music_services/deezerDef.js
  inflating: node-sonos-http-api-master/lib/music_services/libraryDef.js
  inflating: node-sonos-http-api-master/lib/music_services/spotifyDef.js
  inflating: node-sonos-http-api-master/lib/presets-loader.js
  inflating: node-sonos-http-api-master/lib/sirius-channels.json
  inflating: node-sonos-http-api-master/lib/sonos-http-api.js
   creating: node-sonos-http-api-master/lib/tts-providers/
  inflating: node-sonos-http-api-master/lib/tts-providers/aws-polly.js
   creating: node-sonos-http-api-master/lib/tts-providers/default/
  inflating: node-sonos-http-api-master/lib/tts-providers/default/google.js
  inflating: node-sonos-http-api-master/lib/tts-providers/mac-os.js
  inflating: node-sonos-http-api-master/lib/tts-providers/microsoft.js
  inflating: node-sonos-http-api-master/lib/tts-providers/voicerss.js
  inflating: node-sonos-http-api-master/package-lock.json
  inflating: node-sonos-http-api-master/package.json
   creating: node-sonos-http-api-master/presets/
  inflating: node-sonos-http-api-master/presets/example.json
  inflating: node-sonos-http-api-master/server.js
  inflating: node-sonos-http-api-master/settings.js
   creating: node-sonos-http-api-master/static/
   creating: node-sonos-http-api-master/static/clips/
  inflating: node-sonos-http-api-master/static/clips/sample_clip.mp3
   creating: node-sonos-http-api-master/static/docs/
   creating: node-sonos-http-api-master/static/docs/css/
  inflating: node-sonos-http-api-master/static/docs/css/reset.css
  inflating: node-sonos-http-api-master/static/docs/css/screen.css
   creating: node-sonos-http-api-master/static/docs/images/
  inflating: node-sonos-http-api-master/static/docs/images/explorer_icons.png
 extracting: node-sonos-http-api-master/static/docs/images/logo_small.png
 extracting: node-sonos-http-api-master/static/docs/images/pet_store_api.png
  inflating: node-sonos-http-api-master/static/docs/images/throbber.gif
 extracting: node-sonos-http-api-master/static/docs/images/wordnik_api.png
  inflating: node-sonos-http-api-master/static/docs/index.html
   creating: node-sonos-http-api-master/static/docs/lib/
  inflating: node-sonos-http-api-master/static/docs/lib/backbone-min.js
  inflating: node-sonos-http-api-master/static/docs/lib/handlebars-1.0.0.js
  inflating: node-sonos-http-api-master/static/docs/lib/highlight.7.3.pack.js
  inflating: node-sonos-http-api-master/static/docs/lib/jquery-1.8.0.min.js
  inflating: node-sonos-http-api-master/static/docs/lib/jquery.ba-bbq.min.js
  inflating: node-sonos-http-api-master/static/docs/lib/jquery.slideto.min.js
  inflating: node-sonos-http-api-master/static/docs/lib/jquery.wiggle.min.js
  inflating: node-sonos-http-api-master/static/docs/lib/shred.bundle.js
   creating: node-sonos-http-api-master/static/docs/lib/shred/
  inflating: node-sonos-http-api-master/static/docs/lib/shred/content.js
  inflating: node-sonos-http-api-master/static/docs/lib/swagger-client.js
  inflating: node-sonos-http-api-master/static/docs/lib/swagger-oauth.js
  inflating: node-sonos-http-api-master/static/docs/lib/swagger.js
  inflating: node-sonos-http-api-master/static/docs/lib/underscore-min.js
  inflating: node-sonos-http-api-master/static/docs/o2c.html
  inflating: node-sonos-http-api-master/static/docs/spec.js
  inflating: node-sonos-http-api-master/static/docs/swagger-ui.js
  inflating: node-sonos-http-api-master/static/docs/swagger-ui.min.js
  inflating: node-sonos-http-api-master/static/index.html
  inflating: node-sonos-http-api-master/static/missing_api_key.mp3
  inflating: node-sonos-http-api-master/static/sonos-icon.png
  inflating: node-sonos-http-api-master/test_endpoint.js
root@ioBroker-RasPi:/home/pi# cd node-sonos-http-api-master
root@ioBroker-RasPi:/home/pi/node-sonos-http-api-master# npm install --productio                                                                                                             n
sonos-http-api@1.6.0 /home/pi/node-sonos-http-api-master
├─┬ anesidora@1.2.1
│ ├─┬ request@2.83.0
│ │ ├── aws-sign2@0.7.0
│ │ ├── aws4@1.6.0
│ │ ├── caseless@0.12.0
│ │ ├─┬ combined-stream@1.0.5
│ │ │ └── delayed-stream@1.0.0
│ │ ├── extend@3.0.1
│ │ ├── forever-agent@0.6.1
│ │ ├─┬ form-data@2.3.1
│ │ │ └── asynckit@0.4.0
│ │ ├─┬ har-validator@5.0.3
│ │ │ ├─┬ ajv@5.5.2
│ │ │ │ ├── co@4.6.0
│ │ │ │ ├── fast-deep-equal@1.0.0
│ │ │ │ ├── fast-json-stable-stringify@2.0.0
│ │ │ │ └── json-schema-traverse@0.3.1
│ │ │ └── har-schema@2.0.0
│ │ ├─┬ hawk@6.0.2
│ │ │ ├── boom@4.3.1
│ │ │ ├─┬ cryptiles@3.1.2
│ │ │ │ └── boom@5.2.0
│ │ │ ├── hoek@4.2.0
│ │ │ └── sntp@2.1.0
│ │ ├─┬ http-signature@1.2.0
│ │ │ ├── assert-plus@1.0.0
│ │ │ ├─┬ jsprim@1.4.1
│ │ │ │ ├── extsprintf@1.3.0
│ │ │ │ ├── json-schema@0.2.3
│ │ │ │ └─┬ verror@1.10.0
│ │ │ │   └── core-util-is@1.0.2
│ │ │ └─┬ sshpk@1.13.1
│ │ │   ├── asn1@0.2.3
│ │ │   ├── bcrypt-pbkdf@1.0.1
│ │ │   ├── dashdash@1.14.1
│ │ │   ├── ecc-jsbn@0.1.1
│ │ │   ├── getpass@0.1.7
│ │ │   ├── jsbn@0.1.1
│ │ │   └── tweetnacl@0.14.5
│ │ ├── is-typedarray@1.0.0
│ │ ├── isstream@0.1.2
│ │ ├── json-stringify-safe@5.0.1
│ │ ├─┬ mime-types@2.1.17
│ │ │ └── mime-db@1.30.0
│ │ ├── oauth-sign@0.8.2
│ │ ├── performance-now@2.1.0
│ │ ├── qs@6.5.1
│ │ ├── safe-buffer@5.1.1
│ │ ├── stringstream@0.0.5
│ │ ├─┬ tough-cookie@2.3.3
│ │ │ └── punycode@1.4.1
│ │ └── tunnel-agent@0.6.0
│ └── underscore@1.8.3
├─┬ aws-sdk@2.181.0
│ ├─┬ buffer@4.9.1
│ │ ├── base64-js@1.2.1
│ │ ├── ieee754@1.1.8
│ │ └── isarray@1.0.0
│ ├─┬ create-hash@1.1.3
│ │ ├── cipher-base@1.0.4
│ │ ├── inherits@2.0.3
│ │ ├─┬ ripemd160@2.0.1
│ │ │ └── hash-base@2.0.2
│ │ └── sha.js@2.4.9
│ ├── create-hmac@1.1.6
│ ├── events@1.1.1
│ ├── jmespath@0.15.0
│ ├── querystring@0.2.0
│ ├── sax@1.2.1
│ ├─┬ url@0.10.3
│ │ └── punycode@1.3.2
│ ├── uuid@3.1.0
│ ├── xml2js@0.4.17
│ └─┬ xmlbuilder@4.2.1
│   └── lodash@4.17.4
├── basic-auth@1.1.0
├── fuse.js@2.7.4
├── html-entities@1.2.1
├── json5@0.5.1
├── mime@1.6.0
├─┬ music-metadata@0.8.7
│ ├── es6-promise@4.2.2
│ ├─┬ fs-extra@4.0.3
│ │ ├── graceful-fs@4.1.11
│ │ ├── jsonfile@4.0.0
│ │ └── universalify@0.1.1
│ ├─┬ save@2.3.2
│ │ ├── async@2.6.0
│ │ ├─┬ event-stream@3.3.4
│ │ │ ├── duplexer@0.1.1
│ │ │ ├── from@0.1.7
│ │ │ ├── map-stream@0.1.0
│ │ │ ├── pause-stream@0.0.11
│ │ │ ├── split@0.3.3
│ │ │ ├── stream-combiner@0.0.4
│ │ │ └── through@2.3.8
│ │ ├── lodash.assign@4.2.0
│ │ └── mingo@1.3.3
│ ├─┬ strtok3@1.3.2
│ │ └── @types/es6-promise@0.0.33
│ ├── then-read-stream@1.0.4
│ └── token-types@0.9.2
├─┬ node-static@0.7.10
│ ├── colors@1.1.2
│ └─┬ optimist@0.6.1
│   ├── minimist@0.0.10
│   └── wordwrap@0.0.3
├─┬ request-promise@1.0.2
│ ├── bluebird@2.11.0
│ ├─┬ cls-bluebird@1.1.3
│ │ ├── is-bluebird@1.0.2
│ │ └── shimmer@1.2.0
│ └── lodash@3.10.1
├─┬ sonos-discovery@1.6.0
│ ├── html-entities@1.0.10
│ └─┬ xml-flow@1.0.2
│   └── sax@1.2.4
└── wav-file-info@0.0.8

root@ioBroker-RasPi:/home/pi/node-sonos-http-api-master# npm start &
[1] 1737

> sonos-http-api@1.6.0 start /home/pi/node-sonos-http-api-master
> node server.js

2018-01-14T09:49:21.997Z INFO Could not find file /home/pi/node-sonos-http-api-master/settings.json
2018-01-14T09:49:22.481Z INFO Presets loaded: { example:
   { players:
      [ { roomName: 'Bathroom', volume: 10 },
        { roomName: 'Kitchen', volume: 10 },
        { roomName: 'Office', volume: 10 },
        { roomName: 'Bedroom', volume: 10 },
        { roomName: 'TV Room', volume: 15 } ],
     playMode: { shuffle: true, repeat: 'all', crossfade: false },
     pauseOthers: false } }
2018-01-14T09:49:28.650Z INFO http server listening on 0.0.0.0 port 5005
in die rtc.local habe ich auch den Startpfad eingetragen

Code: Alles auswählen

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi

sudo node /home/pi/node-sonos-http-api-master/server.js

exit 0
Es sollte alles so passen, aber heute Morgen ging keine Ausgabe mehr.
Erst nach einem Neustart des PI
Habe ich was vergessen?

VG Torsten
Raspberry Matic RP3, iobroker & Node-Red auf orangePi
HM Lan GW
--- HM-RF, HmIP-RF und knx Komponenten ---
Visualisierung auf Android 10" Tablett

schneidy76
Beiträge: 340
Registriert: 18.11.2016, 22:36
Wohnort: ziemlich weit unten
Hat sich bedankt: 1 Mal
Danksagung erhalten: 1 Mal

Re: Sonosscripte für die CCU2

Beitrag von schneidy76 » 17.01.2018, 18:18

hier mal das log

Code: Alles auswählen

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using npm@3.10.10
3 info using node@v6.12.3
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle sonos-http-api@1.6.0~prestart: sonos-http-api@1.6.0
6 silly lifecycle sonos-http-api@1.6.0~prestart: no script for prestart, continuing
7 info lifecycle sonos-http-api@1.6.0~start: sonos-http-api@1.6.0
8 verbose lifecycle sonos-http-api@1.6.0~start: unsafe-perm in lifecycle true
9 verbose lifecycle sonos-http-api@1.6.0~start: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/pi/node-sonos-http-api-master/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
10 verbose lifecycle sonos-http-api@1.6.0~start: CWD: /home/pi/node-sonos-http-api-master
11 silly lifecycle sonos-http-api@1.6.0~start: Args: [ '-c', 'node server.js' ]
12 silly lifecycle sonos-http-api@1.6.0~start: Returned: code: 1  signal: null
13 info lifecycle sonos-http-api@1.6.0~start: Failed to exec start script
14 verbose stack Error: sonos-http-api@1.6.0 start: `node server.js`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:920:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
15 verbose pkgid sonos-http-api@1.6.0
16 verbose cwd /home/pi/node-sonos-http-api-master
17 error Linux 4.9.35-v7+
18 error argv "/usr/bin/node" "/usr/bin/npm" "start"
19 error node v6.12.3
20 error npm  v3.10.10
21 error code ELIFECYCLE
22 error sonos-http-api@1.6.0 start: `node server.js`
22 error Exit status 1
23 error Failed at the sonos-http-api@1.6.0 start script 'node server.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the sonos-http-api package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     node server.js
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs sonos-http-api
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls sonos-http-api
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
Raspberry Matic RP3, iobroker & Node-Red auf orangePi
HM Lan GW
--- HM-RF, HmIP-RF und knx Komponenten ---
Visualisierung auf Android 10" Tablett

tobiman64
Beiträge: 9
Registriert: 30.01.2018, 23:55

Re: Sonosscripte für die CCU2

Beitrag von tobiman64 » 31.01.2018, 00:35

Hallo Zusammen,
ich habe auch bereits Einiges ausprobiert um meine Sonos Komponenten mittels Homematic zu automatisieren.
Dabei habe ich auch die letzten Monate auf das Sonos Addon hier gesetzt und bin sehr traurig gewesen, das nicht alles funktioniert und es nicht mehr weiter entwickelt wird.
Vor ein paar Tagen habe ich hier eine sehr ausführliche Beschreibung gefunden, über die mir schon bekannte Sonos Api, mit der man alle Sonos Lautsprecher über Homematic bedienen kann. ACHTUNG: Beschreibung besteht aus 3 Teilen.
Bisher habe ich mich da nicht dran getraut, aber mit Hilfe der wirklich ausführlichen Beschreibung ist es mir, auch als Raspberry Einsteiger möglich gewesen, das Ganze umzusetzen.
Es funktioniert wirklich Alles was ich mir immer gewünscht habe. Ich kann Playlisten oder Favoriten abspielen, kann Gruppen bilden und auflösen und sogar Sprachausgaben machen. Ich bin sehr glücklich, endlich habe ich meine Lösung gefunden.
Grüße
Tobi

schneidy76
Beiträge: 340
Registriert: 18.11.2016, 22:36
Wohnort: ziemlich weit unten
Hat sich bedankt: 1 Mal
Danksagung erhalten: 1 Mal

Re: Sonosscripte für die CCU2

Beitrag von schneidy76 » 31.01.2018, 18:02

Hilfe:
Seit neuesten funktioniert die Decodierung der Steuerzeichen bei mir nicht mehr:

Code: Alles auswählen

string stdout;
string stderr;
system.Exec("wget -O /dev/null -q http://192.168.0.153:5005/Wohnzimmer/say/Es%20regnet%20wir%20sollten%20die%20Dach%20fenster%20schlie%C3%9Fen%0D%0A!/de-de/60",&stdout, &stderr);
Eigentlich sollte es doch passen??? :?: :roll:

VG Torsten
Raspberry Matic RP3, iobroker & Node-Red auf orangePi
HM Lan GW
--- HM-RF, HmIP-RF und knx Komponenten ---
Visualisierung auf Android 10" Tablett

Antworten

Zurück zu „Sonstige Addons“