NEWS
HowTo: Zusatz-Programme fuer jarvis v3
-
-
@carstendergroße Steht bei Dir in der Anzeige-Variante was drin?
Zeig mal. Hattest du da was eingetragen? Wenn ja, was denn? -
da steht nichts drin. Im tutorial steht ja auch drin dass, das programm das selber macht.
-
@carstendergroße
Trag mal bitte das ab Zeile 455 einif (logging){ log("ElementValue: "+JSON.stringify(elementValue)); }
Dazwischen
Ergebnis im normalen LOG?
In jarvis ist die Anzeige jetzt so?
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 -
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)'}
-
@carstendergroße Versuch mal bitte v1.0.4.
-
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
-
@carstendergroße
Ok. Bis dann. Logging erweitert.Dann mal v1.0.5 bitte versuchen.
-
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
-
@carstendergroße Trag mal bitte in jarvis in dem stateDP playlistSelect was in die Anzeigevariante.
{"default":""}
Und Speicher jarvis speichern und beenden.
Dann das Script neu starten.
Und dann bitte das Log schicken. -
@mcu said in HowTo: Zusatz-Programme fuer jarvis v3:
{"default":""}
jetzt gehts.
10.9.2022, 16:50:33.312 [info ]: javascript.0 (463) Stop script script.js.Automatisierung.SpotifyPlaylist 10.9.2022, 16:50:34.328 [info ]: javascript.0 (463) Start javascript script.js.Automatisierung.SpotifyPlaylist 10.9.2022, 16:50:34.333 [info ]: javascript.0 (463) script.js.Automatisierung.SpotifyPlaylist: Script playListSpotify 1.0.5 gestartet! 10.9.2022, 16:50:34.333 [info ]: javascript.0 (463) script.js.Automatisierung.SpotifyPlaylist: registered 6 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions 10.9.2022, 16:50:49.920 [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, 16:50:49.920 [info ]: javascript.0 (463) script.js.Automatisierung.SpotifyPlaylist: JarviSel - SpotifyInstanz: 0 10.9.2022, 16:50:49.921 [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, 16:50:49.921 [info ]: javascript.0 (463) script.js.Automatisierung.SpotifyPlaylist: DevState: playlistSelect gefunden! 10.9.2022, 16:50:49.921 [info ]: javascript.0 (463) script.js.Automatisierung.SpotifyPlaylist: KEY3: {"stateKey":"playlistSelect","showState":true,"state":"0_userdata.0.jarvis.spotify.playlistSelect","display":{"default":""}} 10.9.2022, 16:50:49.921 [info ]: javascript.0 (463) script.js.Automatisierung.SpotifyPlaylist: Element gefunden: display mit Wert: {"default":""} 10.9.2022, 16:50:49.921 [info ]: javascript.0 (463) script.js.Automatisierung.SpotifyPlaylist: KEY4: {"default":""} 10.9.2022, 16:50:49.921 [info ]: javascript.0 (463) script.js.Automatisierung.SpotifyPlaylist: KEY4 mit 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, 16:50:49.921 [info ]: javascript.0 (463) script.js.Automatisierung.SpotifyPlaylist: Jarvis-Devices von Instanz 0 im angegebenen Device geändert!
hab das eingetragen dann script neugestartet jarvis seite mit f5 neugeladen Hole Playlist ausgeführt und nochmal f5 dann waren die einträge da
-
@carstendergroße Bei Hole Playliste etwas warten . Der braucht einige Sekunden.
Wenn es jetzt eine Zeit funktioniert, dann das losging ausschalten. Sonst haut er das Log voll bei jeder Auswahl. -
@mcu alles klar vielen dank
-
@carstendergroße Und nur alle 5 Sekunden den Titel wechseln.
-
@lines
Switch zum anderen Thread! Verwirrt nur im jarvis-Thread.Brauche doch die Zeiten, damit ich sehen kann, wo er sich die Stunden holen kann.
minTime, maxTime, timetable-Date usw.
Für einen Tag (Montag) reicht.
breiter ziehenStundenzeiten sind bei Euch fest? Bitte anpassen und wieder reinstellen.
let stundenArrDef = [{'name':'1. Stunde','von':'07:50'}, {'name':'2. Stunde','von':'08:40'}, {'name':'1. Pause' ,'von':'09:25'}, {'name':'3. Stunde','von':'09:40'}, {'name':'4. Stunde','von':'10:30'}, {'name':'2. Pause' ,'von':'11:15'}, {'name':'5. Stunde','von':'11:30'}, {'name':'6. Stunde','von':'12:20'}, {'name':'3. Pause' ,'von':'13:05'}, {'name':'7. Stunde','von':'13:15'} //, // {'name':'8. Stunde','von':'14:00'}, // {'name':'9. Stunde','von':'14:40'}, // {'name':'4. Pause' ,'von':'15:20'}, // {'name':'10. Stunde','von':'15:35'}, // {'name':'11. Stunde','von':'16:15'} ]
Kann er immer nur 2 Tage in die Zukunft schauen (einstellungen?) ? Wie bekommt man dann seinen Wochenstundenplan?
Schau mal hier sind auch schon andere dran?
https://forum.iobroker.net/topic/51690/tester-neuer-adapter-webuntis/151cancelled
Was steht genau im Code? regular und cancelled oder noch andere?
-
@lines ? Einmal bitte die Daten.
-
httpDropDown
Man definiert in jarvis ganz normal sein DropDownListe mit den Werten, die man auswählen möchte.
Frage:
Wie ohne DP?
Meine 4 zu sendenden HTTP Befehle:
http://192.168.178.25/YamahaExtendedControl/v1/main/setInput?input=net_radio http://192.168.178.25/YamahaExtendedControl/v1/main/setInput?input=server http://192.168.178.25/YamahaExtendedControl/v1/main/setInput?input=tuner http://192.168.178.25/YamahaExtendedControl/v1/main/setInput?input=bluetooth
-
@sigi234 Das gehört nicht zu ioBroker Javascript, sondern in scripts von jarvis.
Da musstvdu dann einen Dummy DP nehmen.
-
@mcu sagte in HowTo: Zusatz-Programme fuer jarvis v3:
@sigi234 Das gehört nicht zu ioBroker Javascript, sondern in scripts von jarvis.
Da musstvdu dann einen Dummy DP nehmen.
-
@sigi234 Ja.