Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Script: Alexa Listen pflegen und Anzeigen

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Script: Alexa Listen pflegen und Anzeigen

    This topic has been deleted. Only users with topic management privileges can see it.
    • liv-in-sky
      liv-in-sky @Guest last edited by

      @Yetiberg

      bei mir

      smart25.gif

      1 Reply Last reply Reply Quote 0
      • liv-in-sky
        liv-in-sky @Guest last edited by

        @Yetiberg hast du das neuste script ?

        1 Reply Last reply Reply Quote 0
        • liv-in-sky
          liv-in-sky @Guest last edited by

          @Yetiberg ist das eine neuinstallation ? wenn nicht starte mal alexa2 instanz und javascriptinstanz neu

          1 Reply Last reply Reply Quote 0
          • liv-in-sky
            liv-in-sky @Guest last edited by

            @Yetiberg das ist überhaupt eine seltsame fehlermeldung - wie ist den die alexa2 instanz eingestellt

            Image 7.png

            1 Reply Last reply Reply Quote 0
            • ?
              A Former User last edited by

              @liv-in-sky
              Script ist das hier
              Beides durch reboot neugestartet und auch einzeln.
              Alexa Instanz wie bei Dir eingestellt. Alexa2 Adapter 3.1.2 (2020-03-18)

              liv-in-sky 1 Reply Last reply Reply Quote 0
              • liv-in-sky
                liv-in-sky @Guest last edited by liv-in-sky

                @Yetiberg

                wenn du mal eine neues listenelement anlegst (über alexa app oder mündlich) )und anschliessend in den alexa2.0.Lists ... ordner gehst - siehst du da den neuen eintrag ? und wenn ja, kannst du ihn dort auch löschen indem du #delete drückst ?

                auch mal mit 2 einträgen testen

                1 Reply Last reply Reply Quote 0
                • liv-in-sky
                  liv-in-sky @Guest last edited by liv-in-sky

                  @Yetiberg

                  @apollon77 (es geht um die Lists im alexa2 adapter)

                  ich habe mal einfach noch ein wenig weitergetestet -

                  ich habe jetzt auch ein ähnliches problem - bekomme zwar keine fehlermeldungen, aber der alexa2 adapter zeigt einträge an, die in der app nicht mehr vorhanden sind - ich kann auch nicht über direkte eingabe im datenpunkt arbeiten - also ein neues item erstellen!

                  irgendwas stimmt da nicht - ich kann daher den eintrag über das script auch nicht mehr löschen, da er nicht mehr existiert laut app aber noch in der instanz bzw objecten steht

                  vielleicht ist amazon überfordert ? oder hat was geändert

                  ich habe mal die instanz gestoppt und die list datenpunkte gelöscht - dann instanz neugestartet und jetzt ist der eintrag wieder weg - dann nochmal getestet und es funktioniert wieder

                  @apollon77 hast du da eine info - ob die listen im moment probleme haben ?

                  manchmal geht es manchmal nicht ?
                  im moment stehen drei einträge in der liste (in den objekten) in der app ist kein eintrag - diese einträge kann ich auch nicht mit #delete löschen - ich muss die datenpunkte löschen und die instanz neustarten

                  ? 1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @liv-in-sky last edited by

                    @liv-in-sky
                    @apollon77
                    Jepp, genauso ist es auch bei mir

                    liv-in-sky 1 Reply Last reply Reply Quote 0
                    • apollon77
                      apollon77 last edited by

                      keinen blassen schimmer ... GitHub Issue mit Debug Log? 🙂

                      1 Reply Last reply Reply Quote 0
                      • liv-in-sky
                        liv-in-sky @Guest last edited by

                        @Yetiberg

                        könntest du mal bitte die beiden scripte vom ersten post testen - du kannst alle settings wieder reinkopieren, da nur im code selbst was geändert wurde (aber nur, wenn du die version mit dem direkt-löschen in der zeile nutzt)

                        bei mir löscht er jetzt wieder alle aufeinmal - habe eine kleine zeitdifferenz eingebaut und lösche nicht alle auf einmal

                        smart26.gif

                        ? 1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User @liv-in-sky last edited by A Former User

                          @liv-in-sky
                          Beim ersten Test mit 4 Einträgen hat es geklappt.
                          Beim 2. Test mit 4 Einträgen hat er test2 wieder stehen gelassen.

                          
                          host.rockpro64	2020-03-28 11:09:08.502	warn	Objects 127.0.0.1:34930 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.adafbdd3-532d-4e13-99a2-cadb9a8dc4d7.version: Not exists
                          host.rockpro64	2020-03-28 11:09:08.502	warn	Objects 127.0.0.1:34930 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.adafbdd3-532d-4e13-99a2-cadb9a8dc4d7.value: Not exists
                          host.rockpro64	2020-03-28 11:09:08.502	warn	Objects 127.0.0.1:34930 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.adafbdd3-532d-4e13-99a2-cadb9a8dc4d7.updatedDateTime: Not exists
                          host.rockpro64	2020-03-28 11:09:08.502	warn	Objects 127.0.0.1:34930 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.adafbdd3-532d-4e13-99a2-cadb9a8dc4d7.shoppingListItem: Not exists
                          host.rockpro64	2020-03-28 11:09:08.501	warn	Objects 127.0.0.1:34930 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.adafbdd3-532d-4e13-99a2-cadb9a8dc4d7.listName: Not exists
                          host.rockpro64	2020-03-28 11:09:08.501	warn	Objects 127.0.0.1:34930 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.adafbdd3-532d-4e13-99a2-cadb9a8dc4d7.listId: Not exists
                          host.rockpro64	2020-03-28 11:09:08.486	warn	Objects 127.0.0.1:34930 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.adafbdd3-532d-4e13-99a2-cadb9a8dc4d7.index: Not exists
                          host.rockpro64	2020-03-28 11:09:08.486	warn	Objects 127.0.0.1:34930 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.adafbdd3-532d-4e13-99a2-cadb9a8dc4d7.id: Not exists
                          host.rockpro64	2020-03-28 11:09:08.486	warn	Objects 127.0.0.1:34930 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.adafbdd3-532d-4e13-99a2-cadb9a8dc4d7.createdDateTime: Not exists
                          host.rockpro64	2020-03-28 11:09:08.485	warn	Objects 127.0.0.1:34930 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.adafbdd3-532d-4e13-99a2-cadb9a8dc4d7.completed: Not exists
                          host.rockpro64	2020-03-28 11:09:08.485	warn	Objects 127.0.0.1:34930 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.adafbdd3-532d-4e13-99a2-cadb9a8dc4d7.#delete: Not exists
                          host.rockpro64	2020-03-28 11:09:08.484	warn	Objects 127.0.0.1:34930 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.adafbdd3-532d-4e13-99a2-cadb9a8dc4d7: Not exists
                          alexa2.0	2020-03-28 11:09:07.978	info	(3990) Deleting item "test3" from the list SHOPPING_LIST.
                          alexa2.0	2020-03-28 11:09:07.796	info	(3990) Deleting item "test2" from the list SHOPPING_LIST.
                          alexa2.0	2020-03-28 11:09:07.313	info	(3990) Deleting item "test" from the list SHOPPING_LIST.
                          alexa2.0	2020-03-28 11:09:07.064	info	(3990) Deleting item "test1" from the list SHOPPING_LIST.
                          alexa2.0	2020-03-28 11:08:49.237	info	(3990) Adding item "test3" ({"value":"test3"}) to the list SHOPPING_LIST.
                          alexa2.0	2020-03-28 11:08:41.841	info	(3990) Adding item "test2" ({"value":"test2"}) to the list SHOPPING_LIST.
                          alexa2.0	2020-03-28 11:08:34.971	info	(3990) Adding item "test1" ({"value":"test1"}) to the list SHOPPING_LIST.
                          alexa2.0	2020-03-28 11:08:28.322	info	(3990) Adding item "test" ({"value":"test"}) to the list SHOPPING_LIST.
                          
                          liv-in-sky 2 Replies Last reply Reply Quote 0
                          • liv-in-sky
                            liv-in-sky @Guest last edited by liv-in-sky

                            @Yetiberg ehrlich gesagt, ich weiß nicht mal was mit InMemDB gemeint ist

                            hab ich noch nie gehabt

                            ? 1 Reply Last reply Reply Quote 0
                            • ?
                              A Former User @liv-in-sky last edited by

                              @liv-in-sky Vermute das es eine art Datenbank für den alexa2 Adapter ist.
                              Und dann wird schneller gelöscht als der Adapter das macht und findet dann die Einträge nicht mehr.
                              Aber, das muss Dir keinen Kopf machen.
                              Wat nicht geht, das geht nicht 🙂

                              liv-in-sky 1 Reply Last reply Reply Quote 0
                              • liv-in-sky
                                liv-in-sky @Guest last edited by liv-in-sky

                                @Yetiberg ein bischen "kopf machen" muss sein - ein script, dass nicht funktioniert ist ja irgendwie sinnlos

                                kannst du das ganze mal testen, indem du über die app eingibst und wartest, bis du die items unter objekte-tab siehst und dann erst in der vis alles löscht

                                vielleicht hat das was mit caching zu tun -

                                ? 1 Reply Last reply Reply Quote 0
                                • liv-in-sky
                                  liv-in-sky @Guest last edited by

                                  @Yetiberg
                                  zum test:
                                  dazu kannst du das schedule runter stellen im script - sonst mußt du lange warten z.b. "*/20 * * * * *" alle 20 sek

                                  1 Reply Last reply Reply Quote 0
                                  • ?
                                    A Former User @liv-in-sky last edited by

                                    @liv-in-sky Die items werden sofort on the Fly angelegt.
                                    Das hatte ich schonmal beobachtet. Und jetzt wieder.
                                    Nun hat er den letzten test4 stehen lassen.
                                    Und neuer Fehler:

                                    host.rockpro64	2020-03-28 11:24:16.630	warn	Objects 127.0.0.1:56028 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.b1efb10e-ff48-49ba-bc5a-f63bdf30afce.version: Not exists
                                    host.rockpro64	2020-03-28 11:24:16.630	warn	Objects 127.0.0.1:56028 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.b1efb10e-ff48-49ba-bc5a-f63bdf30afce.value: Not exists
                                    host.rockpro64	2020-03-28 11:24:16.609	warn	Objects 127.0.0.1:56028 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.b1efb10e-ff48-49ba-bc5a-f63bdf30afce.updatedDateTime: Not exists
                                    host.rockpro64	2020-03-28 11:24:16.609	warn	Objects 127.0.0.1:56028 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.b1efb10e-ff48-49ba-bc5a-f63bdf30afce.shoppingListItem: Not exists
                                    host.rockpro64	2020-03-28 11:24:16.608	warn	Objects 127.0.0.1:56028 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.b1efb10e-ff48-49ba-bc5a-f63bdf30afce.listName: Not exists
                                    host.rockpro64	2020-03-28 11:24:16.607	warn	Objects 127.0.0.1:56028 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.b1efb10e-ff48-49ba-bc5a-f63bdf30afce.listId: Not exists
                                    host.rockpro64	2020-03-28 11:24:16.607	warn	Objects 127.0.0.1:56028 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.b1efb10e-ff48-49ba-bc5a-f63bdf30afce.index: Not exists
                                    host.rockpro64	2020-03-28 11:24:16.607	warn	Objects 127.0.0.1:56028 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.b1efb10e-ff48-49ba-bc5a-f63bdf30afce.id: Not exists
                                    host.rockpro64	2020-03-28 11:24:16.607	warn	Objects 127.0.0.1:56028 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.b1efb10e-ff48-49ba-bc5a-f63bdf30afce.createdDateTime: Not exists
                                    host.rockpro64	2020-03-28 11:24:16.606	warn	Objects 127.0.0.1:56028 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.b1efb10e-ff48-49ba-bc5a-f63bdf30afce.completed: Not exists
                                    host.rockpro64	2020-03-28 11:24:16.606	warn	Objects 127.0.0.1:56028 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.b1efb10e-ff48-49ba-bc5a-f63bdf30afce.#delete: Not exists
                                    host.rockpro64	2020-03-28 11:24:16.605	warn	Objects 127.0.0.1:56028 Error from InMemDB: Error: ERROR delObject alexa2.0.Lists.SHOPPING_LIST.items.b1efb10e-ff48-49ba-bc5a-f63bdf30afce: Not exists
                                    javascript.0	2020-03-28 11:24:16.466	warn	(3227) at Timer.processTimers (timers.js:223:10)
                                    javascript.0	2020-03-28 11:24:16.462	warn	(3227) at listOnTimeout (timers.js:263:5)
                                    javascript.0	2020-03-28 11:24:16.461	warn	(3227) at tryOnTimeout (timers.js:300:5)
                                    javascript.0	2020-03-28 11:24:16.461	warn	(3227) at ontimeout (timers.js:438:13)
                                    javascript.0	2020-03-28 11:24:16.460	warn	(3227) at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:2077:34)
                                    javascript.0	2020-03-28 11:24:16.460	warn	(3227) at Object.timer (script.js.Datenpunkte.Einkaufsliste1:434:4)
                                    javascript.0	2020-03-28 11:24:16.459	warn	(3227) at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1426:20)
                                    javascript.0	2020-03-28 11:24:16.455	warn	(3227) State "alexa2.0.Lists.SHOPPING_LIST.items.46b0cade-174a-4fed-95d5-b5c18318dddd.#delete" not found
                                    alexa2.0	2020-03-28 11:24:16.261	info	(17798) Deleting item "test" from the list SHOPPING_LIST.
                                    
                                    liv-in-sky apollon77 2 Replies Last reply Reply Quote 0
                                    • liv-in-sky
                                      liv-in-sky @Guest last edited by

                                      @Yetiberg

                                      schau doch mal ob dein cache deaktiviert ist - wir hatten das mal bei einem anderen problem auf true gesetzt - wenn es nix nutzt, kannst du immer noch zurücksetzen

                                      zitat:
                                      In der Datei (Pfade stimmen für Linux)
                                      /opt/iobroker/iobroker-data/iobroker.json
                                      die Option "noFileCache" auf true stellen und iobroker (nicht nur den Admin, sondern den kompletten Controller) neu starten.

                                      aber mit vorsicht ändern !!!

                                      ? 1 Reply Last reply Reply Quote 0
                                      • ?
                                        A Former User @liv-in-sky last edited by A Former User

                                        @liv-in-sky Nee, hat sich nichts geändert.
                                        Lässt immer ein item stehen und die gleichen InMemDB Fehler
                                        Wieder rückgängig gemacht.

                                        1 Reply Last reply Reply Quote 0
                                        • apollon77
                                          apollon77 @Guest last edited by apollon77

                                          @Yetiberg also der Fehler sollte in der aktuellsten Version im latest repo weg sein. Welche Version nutzt ihr? Ich glaube 3.1.2 wäre latest version.

                                          Und der fehle mit dem inMemDb kommt da es vorkam das er versucht hat die Objekte doppelt zu löschen. Das sollte gefixt sein. Also gelöscht wurde es bisher problemlos (er hat’s nur doppelt versucht und der zweite Befehl gab halt dann einen Fehler)

                                          ? liv-in-sky 2 Replies Last reply Reply Quote 0
                                          • ?
                                            A Former User @apollon77 last edited by A Former User

                                            @apollon77 3.1.2 habe ich installiert seit dem Du die Version rausgebracht hast.

                                            apollon77 liv-in-sky 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            821
                                            Online

                                            31.8k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            javascript template
                                            29
                                            409
                                            60779
                                            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