Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. English
  3. Visualization
  4. Start a script if select a view or a widget .... deselection

NEWS

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    22
    1
    1.1k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.1k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    14
    1
    2.4k

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

Geplant Angeheftet Gesperrt Verschoben Visualization
1 Beiträge 1 Kommentatoren 333 Aufrufe 1 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • F Offline
    F Offline
    franzda
    schrieb am zuletzt editiert von
    #1

    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 Antwort Letzte Antwort
    0
    Antworten
    • In einem neuen Thema antworten
    Anmelden zum Antworten
    • Älteste zuerst
    • Neuste zuerst
    • Meiste Stimmen


    Support us

    ioBroker
    Community Adapters
    Donate

    946

    Online

    32.5k

    Benutzer

    81.6k

    Themen

    1.3m

    Beiträge
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
    ioBroker Community 2014-2025
    logo
    • Anmelden

    • Du hast noch kein Konto? Registrieren

    • Anmelden oder registrieren, um zu suchen
    • Erster Beitrag
      Letzter Beitrag
    0
    • Home
    • Aktuell
    • Tags
    • Ungelesen 0
    • Kategorien
    • Unreplied
    • Beliebt
    • GitHub
    • Docu
    • Hilfe