Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. HowTo: Zusatz-Programme fuer jarvis v3

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    HowTo: Zusatz-Programme fuer jarvis v3

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MCU @CarstenDerGroße last edited by MCU

      @carstendergroße Auf welchen Post beziehst du Dich?
      (siehe auch 1 Post über Deinem, geht erst ab v3.1.x)
      https://mcuiobroker.gitbook.io/jarvis-infos/jarvis/system-effektprog./spotify-premium

      1 Reply Last reply Reply Quote 0
      • CarstenDerGroße
        CarstenDerGroße last edited by

        @mcu

        es geht sich um folgenden post: https://forum.iobroker.net/topic/49776/jarvis-v3-0-0-just-another-remarkable-vis/2621?_=1662578008726

        auf dem bild kann mein eine auswahl der playlist sehen (nicht tracklist) und genau das bekomme ich nicht hin 🙂

        M 1 Reply Last reply Reply Quote 0
        • M
          MCU @CarstenDerGroße last edited by

          @carstendergroße Ja, das ist ein etwas kompliziertes Programm, was ich mal geschrieben habe, aber noch nicht in die Doku mit aufgenommen habe. Bislang wollte man auch nur die TrackList haben, deswegen habe ich das nicht weiter verfolgt.

          CarstenDerGroße 1 Reply Last reply Reply Quote 0
          • CarstenDerGroße
            CarstenDerGroße @MCU last edited by

            @mcu ah ok 🙂 wäre es denn machbar das ganze zu veröffentlichen wenn du zeit hast?

            beste grüße

            Carsten

            M 1 Reply Last reply Reply Quote 0
            • M
              MCU @CarstenDerGroße last edited by

              @carstendergroße
              https://mcuiobroker.gitbook.io/jarvis-infos/jarvis/system-effektprog./spotify-premium/spotify-playlist

              CarstenDerGroße 1 Reply Last reply Reply Quote 0
              • CarstenDerGroße
                CarstenDerGroße @MCU last edited by

                @mcu

                Das ging ja schnell 🙂 danke dir.

                Habe es gerade eingebunden und es funktioniert auch fast alles auf anhieb. nur wenn ich das dropdown nutze sehe ich nur DefaultOn DefaultOff, und wenn ich auf hole playlist drücke kommt folgender scriptfehler:

                14:33:30.428	error	javascript.0 (462) at setDeviceIdState (script.js.Automatisierung.SpotifyPlaylist:500:57)
                14:33:30.428	error	javascript.0 (462) at jarvisSel (script.js.Automatisierung.SpotifyPlaylist:427:5)
                14:33:30.428	error	javascript.0 (462) at Object.<anonymous> (script.js.Automatisierung.SpotifyPlaylist:147:5)
                

                ich habe mal versucht ob ich den fehler finden kann mit meinem wenigen js kenntnissen aber das ist eindeutig zu hoch für mich ;D

                M 1 Reply Last reply Reply Quote 0
                • M
                  MCU @CarstenDerGroße last edited by MCU

                  @carstendergroße Zeig mal bitte Dein Script, die ersten 10 Zeilen. Und die Objekte in ioBroker.
                  Kann es sein, dass Dein Spotify in einer anderen Instanz als 0 läuft?
                  Bei der StateList habe ich in der Doku nochmal die IconButtonAction beschrieben.
                  Bei Hole PlayList muss es ein Taster sein!

                  CarstenDerGroße 1 Reply Last reply Reply Quote 0
                  • CarstenDerGroße
                    CarstenDerGroße @MCU last edited by

                    @mcu

                    // **********************
                    // spotifyPlaylist v1.0.0
                    // **********************
                    let ipAdress = '192.168.179.9'; // für simpleApi Zugriff anpassen
                    
                    let jarvisInstance              = '0'; // evtl anpassen
                    
                    let spotifyInst                 = '0'; // evtl anpassen
                    let jarvisDeviceIDPlayList      = '1946cb59-eb9d-4261-948f-01522a7c7454'; // anpassen
                    let playListsDP                 = 'spotify-premium.'+spotifyInst+'.html.playlists';
                    

                    b01adfc8-10ca-433f-af0c-6e00803da5ac-image.png

                    3c537bd8-3474-4043-b45e-23b16e3fc1b4-image.png

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      MCU @CarstenDerGroße last edited by MCU

                      @carstendergroße Zeig mal die Instanz als Objekte von Spotify-premium.
                      7e9b22bf-870f-44ec-bf2f-df8b488dd732-image.png
                      Taster geändert?

                      CarstenDerGroße 1 Reply Last reply Reply Quote 0
                      • CarstenDerGroße
                        CarstenDerGroße @MCU last edited by

                        @mcu
                        026a6852-4e75-42e5-8cec-ab667e418e62-image.png

                        taster?

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          MCU @CarstenDerGroße last edited by MCU

                          @carstendergroße Doku aktualisieren
                          https://mcuiobroker.gitbook.io/jarvis-infos/jarvis/system-effektprog./spotify-premium/spotify-playlist#statelist-playlist-auswaehlen
                          Hole PlayListe
                          a5a3e166-8f0c-4394-8c63-af9a799a5caa-image.png

                          Dann mal das Script neustarten und das Log von Anfang bis zum ersten PlayList holen.

                          CarstenDerGroße 1 Reply Last reply Reply Quote 0
                          • CarstenDerGroße
                            CarstenDerGroße @MCU last edited by

                            @mcu

                            taster ist geändert und das script neugestartet.

                            Log:https://pastebin.com/aYsvjcv4

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              MCU @CarstenDerGroße last edited by MCU

                              @carstendergroße Steht bei Dir in der Anzeige-Variante was drin?
                              a0d00745-3c0d-4c80-a1e2-9b907fb15ec0-image.png
                              Zeig mal. Hattest du da was eingetragen? Wenn ja, was denn?

                              CarstenDerGroße 1 Reply Last reply Reply Quote 0
                              • CarstenDerGroße
                                CarstenDerGroße @MCU last edited by

                                @mcu

                                da steht nichts drin. Im tutorial steht ja auch drin dass, das programm das selber macht.

                                47a5d886-d4af-4643-8e19-c09a1549d4f8-image.png

                                M 1 Reply Last reply Reply Quote 0
                                • M
                                  MCU @CarstenDerGroße last edited by MCU

                                  @carstendergroße
                                  Trag mal bitte das ab Zeile 455 ein

                                  if (logging){
                                    log("ElementValue: "+JSON.stringify(elementValue));
                                  }
                                  

                                  Dazwischen
                                  26453c40-2fa4-47bd-b7ab-4addd1d0d4bf-image.png

                                  Ergebnis im normalen LOG?
                                  In jarvis ist die Anzeige jetzt so?
                                  2a12f531-b01c-47d6-baec-a37f0c0f9de2-image.png

                                  Den Button Hole PlayLists drücken und das LOG (Script) sollte so aussehen, zeig mal Deins:

                                  15:12:53.559	info	javascript.0 (1702) script.js.JARVIS.Spotify.Playllist_anzeigen: registered 6 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                                  15:13:39.421	info	javascript.0 (1702) script.js.JARVIS.Spotify.Playllist_anzeigen: ElementValue: {"":"Keine Auswahl","Party":"Party","Party 2":"Party 2"}
                                  15:13:39.422	info	javascript.0 (1702) script.js.JARVIS.Spotify.Playllist_anzeigen: DevState: playlistSelect gefunden!
                                  15:13:39.423	info	javascript.0 (1702) script.js.JARVIS.Spotify.Playllist_anzeigen: Element gefunden: display mit Wert: ""
                                  15:13:39.439	info	javascript.0 (1702) script.js.JARVIS.Spotify.Playllist_anzeigen: Jarvis-Devices von Instanz 0 im angegebenen Device geändert!
                                  15:13:40.693	info	javascript.0 (1702) script.js.JARVIS.Spotify.Playllist_anzeigen: PlayListSelectDP: 31rnmz2skdboacl5oeqa62xst3tq-1N1tZbAjzXJuzFspXYpz4K,31rnmz2skdboacl5oeqa62xst3tq-6mEXCzcswfkRayEjab5RGb
                                  15:13:40.840	info	javascript.0 (1702) script.js.JARVIS.Spotify.Playllist_anzeigen: ElementValue: {"":"Keine Auswahl","Party":"Party","Party 2":"Party 2"}
                                  15:13:40.841	info	javascript.0 (1702) script.js.JARVIS.Spotify.Playllist_anzeigen: DevState: playlistSelect gefunden!
                                  15:13:40.842	info	javascript.0 (1702) script.js.JARVIS.Spotify.Playllist_anzeigen: Element gefunden: display mit Wert: {"":"Keine Auswahl","Party":"Party","Party 2":"Party 2"}
                                  15:13:40.854	info	javascript.0 (1702) script.js.JARVIS.Spotify.Playllist_anzeigen: Jarvis-Devices von Instanz 0 im angegebenen Device geändert!
                                  

                                  Nimm mal Version v1.0.2 vom Programm. (evtl. F5)
                                  https://mcuiobroker.gitbook.io/jarvis-infos/jarvis/system-effektprog./spotify-premium/spotify-playlist/javascript-playlist

                                  CarstenDerGroße 1 Reply Last reply Reply Quote 0
                                  • CarstenDerGroße
                                    CarstenDerGroße @MCU last edited by CarstenDerGroße

                                    @mcu

                                    sorry für die späte rückmeldung.

                                    Logoutput mit 1.02

                                    9.9.2022, 19:35:41.152	[info ]: javascript.0 (462) Stop script script.js.Automatisierung.SpotifyPlaylist
                                    9.9.2022, 19:35:41.908	[info ]: javascript.0 (462) Start javascript script.js.Automatisierung.SpotifyPlaylist
                                    9.9.2022, 19:35:41.910	[info ]: javascript.0 (462) script.js.Automatisierung.SpotifyPlaylist: registered 6 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                                    9.9.2022, 19:35:46.897	[info ]: javascript.0 (462) script.js.Automatisierung.SpotifyPlaylist: Anzahl Playlist in Spotify: 21 - {"1":"1","2022":"2022","":"Keine Auswahl","auto":"auto","J.B.O.":"J.B.O.","The Kelly Family":"The Kelly Family","The Kelly Family — 2":"The Kelly Family — 2","Bravo Hits":"Bravo Hits","Musik Auto":"Musik Auto","Mix":"Mix","Sommer":"Sommer","Einfach so":"Einfach so","Bums neu":"Bums neu","Fantasy dance":"Fantasy dance","Kellys":"Kellys","Da Tweekaz":"Da Tweekaz","Auto 2":"Auto 2","Auto":"Auto","Gamer":"Gamer","Neu":"Neu","Hardstyle Bangers":"Hardstyle Bangers","Aligatoah":"Aligatoah"}
                                    9.9.2022, 19:35:46.899	[info ]: javascript.0 (462) script.js.Automatisierung.SpotifyPlaylist: ElementValue: {"1":"1","2022":"2022","":"Keine Auswahl","auto":"auto","J.B.O.":"J.B.O.","The Kelly Family":"The Kelly Family","The Kelly Family — 2":"The Kelly Family — 2","Bravo Hits":"Bravo Hits","Musik Auto":"Musik Auto","Mix":"Mix","Sommer":"Sommer","Einfach so":"Einfach so","Bums neu":"Bums neu","Fantasy dance":"Fantasy dance","Kellys":"Kellys","Da Tweekaz":"Da Tweekaz","Auto 2":"Auto 2","Auto":"Auto","Gamer":"Gamer","Neu":"Neu","Hardstyle Bangers":"Hardstyle Bangers","Aligatoah":"Aligatoah"}
                                    9.9.2022, 19:35:46.899	[info ]: javascript.0 (462) script.js.Automatisierung.SpotifyPlaylist: DevState: playlistSelect gefunden!
                                    9.9.2022, 19:35:46.900	[error]: javascript.0 (462)     at setDeviceIdState (script.js.Automatisierung.SpotifyPlaylist:507:61)
                                    9.9.2022, 19:35:46.900	[error]: javascript.0 (462)     at jarvisSel (script.js.Automatisierung.SpotifyPlaylist:432:5)
                                    9.9.2022, 19:35:46.900	[error]: javascript.0 (462)     at Object.<anonymous> (script.js.Automatisierung.SpotifyPlaylist:150:9)
                                    

                                    gerade noch im browserlog nachgesehen:

                                    index-f8128eaf.js:8 StateList dd2ecb9c-2b11-495c-aa31-8066374b09d0 0_userdata.0.jarvis.spotify.playlistSelect is not a valid state (in handleStateChange) {name: 'Error', message: '0_userdata.0.jarvis.spotify.playlistSelect is not a valid state (in handleStateChange)', stack: 'Error: 0_userdata.0.jarvis.spotify.playlistSelect …at processImmediate (node:internal/timers:466:21)'}
                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      MCU @CarstenDerGroße last edited by MCU

                                      @carstendergroße Versuch mal bitte v1.0.4.

                                      CarstenDerGroße 1 Reply Last reply Reply Quote 0
                                      • CarstenDerGroße
                                        CarstenDerGroße @MCU last edited by

                                        @mcu

                                        leider selbes ergebnis

                                        20:25:09.760	info	javascript.0 (462) Start javascript script.js.Automatisierung.SpotifyPlaylist
                                        20:25:09.776	info	javascript.0 (462) script.js.Automatisierung.SpotifyPlaylist: registered 6 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                                        20:25:20.007	info	javascript.0 (462) script.js.Automatisierung.SpotifyPlaylist: Anzahl Playlist in Spotify: 21 - {"1":"1","2022":"2022","":"Keine Auswahl","auto":"auto","J.B.O.":"J.B.O.","The Kelly Family":"The Kelly Family","The Kelly Family — 2":"The Kelly Family — 2","Bravo Hits":"Bravo Hits","Musik Auto":"Musik Auto","Mix":"Mix","Sommer":"Sommer","Einfach so":"Einfach so","Bums neu":"Bums neu","Fantasy dance":"Fantasy dance","Kellys":"Kellys","Da Tweekaz":"Da Tweekaz","Auto 2":"Auto 2","Auto":"Auto","Gamer":"Gamer","Neu":"Neu","Hardstyle Bangers":"Hardstyle Bangers","Aligatoah":"Aligatoah"}
                                        20:25:20.009	info	javascript.0 (462) script.js.Automatisierung.SpotifyPlaylist: ElementValue: {"1":"1","2022":"2022","":"Keine Auswahl","auto":"auto","J.B.O.":"J.B.O.","The Kelly Family":"The Kelly Family","The Kelly Family — 2":"The Kelly Family — 2","Bravo Hits":"Bravo Hits","Musik Auto":"Musik Auto","Mix":"Mix","Sommer":"Sommer","Einfach so":"Einfach so","Bums neu":"Bums neu","Fantasy dance":"Fantasy dance","Kellys":"Kellys","Da Tweekaz":"Da Tweekaz","Auto 2":"Auto 2","Auto":"Auto","Gamer":"Gamer","Neu":"Neu","Hardstyle Bangers":"Hardstyle Bangers","Aligatoah":"Aligatoah"}
                                        20:25:20.009	info	javascript.0 (462) script.js.Automatisierung.SpotifyPlaylist: DevState: playlistSelect gefunden!
                                        20:25:20.009	error	javascript.0 (462) at setDeviceIdState (script.js.Automatisierung.SpotifyPlaylist:508:61)
                                        20:25:20.009	error	javascript.0 (462) at jarvisSel (script.js.Automatisierung.SpotifyPlaylist:433:5)
                                        20:25:20.010	error	javascript.0 (462) at Object.<anonymous> (script.js.Automatisierung.SpotifyPlaylist:151:9)
                                        

                                        Es kann sein das ich erst morgen wieder antworten kann da ich um 5 aufstehen muss

                                        M 1 Reply Last reply Reply Quote 0
                                        • M
                                          MCU @CarstenDerGroße last edited by MCU

                                          @carstendergroße
                                          Ok. Bis dann. Logging erweitert.

                                          Dann mal v1.0.5 bitte versuchen.

                                          CarstenDerGroße 1 Reply Last reply Reply Quote 0
                                          • CarstenDerGroße
                                            CarstenDerGroße @MCU last edited by

                                            @mcu

                                            nochmal vielen dank das du dir so viel zeit nimmst 🙂

                                            Hier kommen die neuen logs:

                                            10.9.2022, 15:23:36.032	[info ]: javascript.0 (463) Stop script script.js.Automatisierung.SpotifyPlaylist
                                            10.9.2022, 15:23:36.701	[info ]: javascript.0 (463) Start javascript script.js.Automatisierung.SpotifyPlaylist
                                            10.9.2022, 15:23:36.707	[info ]: javascript.0 (463) script.js.Automatisierung.SpotifyPlaylist: Script playListSpotify 1.0.5 gestartet!
                                            10.9.2022, 15:23:36.707	[info ]: javascript.0 (463) script.js.Automatisierung.SpotifyPlaylist: registered 6 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                                            10.9.2022, 15:23:44.678	[info ]: javascript.0 (463) script.js.Automatisierung.SpotifyPlaylist: Anzahl Playlist in Spotify: 21 - {"1":"1","2022":"2022","":"Keine Auswahl","auto":"auto","J.B.O.":"J.B.O.","The Kelly Family":"The Kelly Family","The Kelly Family — 2":"The Kelly Family — 2","Bravo Hits":"Bravo Hits","Musik Auto":"Musik Auto","Mix":"Mix","Sommer":"Sommer","Einfach so":"Einfach so","Bums neu":"Bums neu","Fantasy dance":"Fantasy dance","Kellys":"Kellys","Da Tweekaz":"Da Tweekaz","Auto 2":"Auto 2","Auto":"Auto","Gamer":"Gamer","Neu":"Neu","Hardstyle Bangers":"Hardstyle Bangers","Aligatoah":"Aligatoah"}
                                            10.9.2022, 15:23:44.678	[info ]: javascript.0 (463) script.js.Automatisierung.SpotifyPlaylist: JarviSel - SpotifyInstanz: 0
                                            10.9.2022, 15:23:44.680	[info ]: javascript.0 (463) script.js.Automatisierung.SpotifyPlaylist: ElementValue: {"1":"1","2022":"2022","":"Keine Auswahl","auto":"auto","J.B.O.":"J.B.O.","The Kelly Family":"The Kelly Family","The Kelly Family — 2":"The Kelly Family — 2","Bravo Hits":"Bravo Hits","Musik Auto":"Musik Auto","Mix":"Mix","Sommer":"Sommer","Einfach so":"Einfach so","Bums neu":"Bums neu","Fantasy dance":"Fantasy dance","Kellys":"Kellys","Da Tweekaz":"Da Tweekaz","Auto 2":"Auto 2","Auto":"Auto","Gamer":"Gamer","Neu":"Neu","Hardstyle Bangers":"Hardstyle Bangers","Aligatoah":"Aligatoah"}
                                            10.9.2022, 15:23:44.680	[info ]: javascript.0 (463) script.js.Automatisierung.SpotifyPlaylist: DevState: playlistSelect gefunden!
                                            10.9.2022, 15:23:44.680	[info ]: javascript.0 (463) script.js.Automatisierung.SpotifyPlaylist: KEY3: {"stateKey":"playlistSelect","showState":true,"state":"0_userdata.0.jarvis.spotify.playlistSelect"}
                                            10.9.2022, 15:23:44.727	[error]: javascript.0 (463)     at setDeviceIdState (script.js.Automatisierung.SpotifyPlaylist:524:61)
                                            10.9.2022, 15:23:44.727	[error]: javascript.0 (463)     at jarvisSel (script.js.Automatisierung.SpotifyPlaylist:442:5)
                                            10.9.2022, 15:23:44.727	[error]: javascript.0 (463)     at Object.<anonymous> (script.js.Automatisierung.SpotifyPlaylist:154:9)
                                            

                                            Ich habe zwischenzeitlich auch mein system komplett neugestartet also hängen kann nichts

                                            M 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            898
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            javascript
                                            30
                                            858
                                            152056
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo