Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. English
    3. Visualization
    4. Start a script if select a view or a widget .... deselection

    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

    Start a script if select a view or a widget .... deselection

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

      Hi
      In order not to put too much load on my Raspberry, I only want to run certain JavaScripts when a certain view or widget is selected.
      It makes no sense and not necessarily to run extensive scripts if they are not required at all at a time. If the view is selected then I would like a cyclic processing.

      In the widget script tab you could put an ioBroker object and script. But that doesn't work in the view or even widget-specifically, because the contents in the script tab are the same for all widgets.
      In addition, I still don't quite understand when the scripts are processed in the script tab or it is unclear how I can end the processing of the scripts again after deselecting the views.

      I've asked already a number of questions related to this. Already received several helpful reactions but do not see the functionalty clearly. And unfortunately I still haven't found a description of it.

      I didn't find any documentation for vis.setValue or vis.xxx either.

      Am I too demanding?

      have tested with the code bellow. But I'd be happy if I found a basic documentation

      if ("javascript.0.variables.test"){
      vis.setValue("javascript.0.variables.test", false);
      } 
      else {
      vis.setValue("javascript.0.variables.test", true);
      }
      
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Support us

      ioBroker
      Community Adapters
      Donate

      538
      Online

      31.8k
      Users

      80.0k
      Topics

      1.3m
      Posts

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