Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Selektor vs. Socketio getStates , getObjectView

    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

    Selektor vs. Socketio getStates , getObjectView

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

      Hallo,
      vielleicht hat jemand Erfahrungen mit schnellerem Auslesen über socket.

      Nutzt man in ioBroker javascript ein Selektor $('id-parameter')

      let dps = $('alexa2.0.Echo-Devices.*.online');
      console.log(dps);
      

      ist das Ergebnis innerhalb von ms da.
      Fragt man es über socketio mittels getStates oder getObjectView ab dauert es nahezu 10 Sekunden.

      Socket.getObjectView(design="system", 
      		search="state", 
      		params={"startkey": "alexa2.0.Echo-Devices.\u0000.online", "endkey": "alexa2.0.Echo-Devices.\u9999.online"}, ({ err, objects }) => {
      		console.log(objects);
      	});
      

      Kennt jemand einen schnelleren Weg, um den Selektor über Socketio abzubilden?

      Vielen Dank.

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

      Support us

      ioBroker
      Community Adapters
      Donate

      595
      Online

      31.8k
      Users

      80.0k
      Topics

      1.3m
      Posts

      1
      1
      167
      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